I've been thinking about float-ing a span versus float-ing a div,
and the same for absolute positioning. When what is floated or
positioned is a short chunk of text, I don't see any _visual_
difference between the two.
What I want to do is float (or position) a revision date at the
right margin of a line that also has some text left justified. I
tried earlier to do this and failed utterly in MSIE 4. But I was
using span not div, and having recently come across[color=blue]
> http://www.blooberry.com/indexdot/cs...sify/float.htm[/color]
and[color=blue]
> http://www.blooberry.com/indexdot/cs...y/position.htm[/color]
I see that MSIE4 is known not to work for inline elements with these
properties.
I understand of course that something containing other blocks needs
to be a div, but if it's just text does it matter?
--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/
and the same for absolute positioning. When what is floated or
positioned is a short chunk of text, I don't see any _visual_
difference between the two.
What I want to do is float (or position) a revision date at the
right margin of a line that also has some text left justified. I
tried earlier to do this and failed utterly in MSIE 4. But I was
using span not div, and having recently come across[color=blue]
> http://www.blooberry.com/indexdot/cs...sify/float.htm[/color]
and[color=blue]
> http://www.blooberry.com/indexdot/cs...y/position.htm[/color]
I see that MSIE4 is known not to work for inline elements with these
properties.
I understand of course that something containing other blocks needs
to be a div, but if it's just text does it matter?
--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/
Comment