From: Mike [EMAIL-REMOVED]>
Here's one way you can try that seems to work in Moz and IE, and validates as well. For your
"headings" in your HTML try the following construction -
<h3>1) Trail number one</h3>
<span class="vitals">MILEAGE: xx</span>
<span class="vitals">SURFACE: xxxxxxxxxxx</span>
CSS for this is as follows -
padding: 0 0 0 7px;
border: 1px solid;
margin: 0 0 0 1em;
Nothing else changes. There is a new div surrounding your heading and the paragraphs-now-spans. The
div is given a specific width in ems so that it forces a scrollbar if the text size is changed. This
way the spans won't wrap.
Heading is left block, but given a width. If you have trail names that are longer than 12em, you'll
need to adjust the width of the <h3> (and possibly other things, as well). The heading is then
floated, so that the rest of the div content can come up beside it. The spans are inline by default,
and have the same basic properties the paragraphs did. However, using the spans eliminated vertical
alignment differences that the paragraphs had.
I'm sure that there are other ways to do this, but this one works, and is valid.
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/