Float Property Not Working (Specialization)
Posted: Tue Nov 30, 2010 8:52 pm
I'm specializing DITA to allow for a multi-column task list. I'd like for the eventual output to look like:
In HTML I'd use CSS that looked something like this:
In my Oxygen CSS file, however, the floats don't seem to be working. Here's what I currently have:
In the output, each element is pushed to the next line (as if the float is being ignored). Do floats not work in the editor? If not, is there another way to get this output? I've also tried making the elements display inline, but I haven't found a way to make the columns line up correctly using this method.
Thanks for any help,
Brian
Code: Select all
1) Motherboard Tech Remove
L Store
2) Power Supply Tech Test
Code: Select all
div { clear: both; }
span.first { display: block; width: 100px; float: left; }
span.second{ display: block; width: 100px; float: left; text-align: center; }
span.third{ display: block; width: 75px; float: left; text-align: right;}
Code: Select all
*[class~="procedure/proccommand"] {
font-weight: bold;
display: block;
font-family: Verdana;
font-size: 1.1em;
padding-left: 1em;
color: green;
float: left;
}
*[class~="procedure/proccrewmember"] {
display: block;
text-transform: uppercase;
font-weight: bold;
font-family: Verdana;
font-size: 1.1em;
float: left;
width: 50px;
}
*[class~="procedure/procresponse"] {
display: block;
font-weight: bold;
font-family: Verdana;
font-size: 1.1em;
float: left;
width: 100px;
text-align: center;
}
Thanks for any help,
Brian