I’m working on a layout issue across browsers. I’m asking if anyone wants to suggest an alternative approach to get more flexibility to control the position of elements in my layout across various platforms and browsers. I’ve run out of ideas.
Here is an test example of the content layout,
<div id="intro">
<div class="col_3_two">
<p><span>Is nary optimum something Thurs </span>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.</p>
</div>
<div class="col_3_three">
<p id="pTwo">Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.</p>
</div>
</div>
The focus here is the span element. This selects the text I want to change for the CSS, and if the page displays without CSS, the text simply displays normally.
Ideally the goal is to have the span flush to the right side of the second column and extend to a variable length into the first column. Something like this.
<---SSSSSSSSSPAN BBBBBBB
AAAAAAAA BBBBBBB
AAAAAAAA BBBBBBB
AAAAAAAA BBBBBBB
AAAAAAAA BBBBBBB
AAAAAAAA BBBBBBB
The CSS I’m using has column 2 and 3 as floats left. Then the span is positioned relative in the enclosing P tag for column one (AAA). The span also has the text-align right property. The P tag for column two (BBB) is positioned relative wo adjust the baseline to align with column one (AAA). (You can imagine this when you read the above html if you understand my div syntax: col_3_[one, two, three] is my three column class for each individual column.)
It looks swell on Firefox, but Chrome for some reason pulls some of the next line (AAA) up. Safari and Opera and everything on XP send the last word of the SPAN down into the first line of the second column (AAA).
I would like to hear other suggestions to get the first span to behave, align right, keep the span to one line and keep the words of the next line (AAA) from going up into the span area.
Chris