Hello All.
I have a weird observation regarding the CSS float style for span.
Allow me to share details before asking my question:
Screen resolution: 1024x768 (I know my monitor is outdated; it can't display higher than this)
Link:
http://www.w3schools.com/js/tryit.as...style_cssfloat
Text entered in the left side:
-
<html>
-
<body>
-
-
<span>This is some text. This is some text.</span><span style="float:right;">Some more text on the right</span>
-
</body>
-
</html>
-
For some reason, Firefox (3.0.1 on WinXP SP3) and IE (6 on WinXP SP3) display the right span on a different line. However, Google chrome (3.0.195.25) displays it in the same line as I want it to. There is a note on the w3schools page saying if the text needs more space, it will occupy the next line. But in my case I am sure that the text is not needing more space (I tried creating borders and confirm that the text does not overlap). Even then it shifts down :-(.
Can someone help me with this ? My intent is to display both span elements on the same line.
Thanks in advance,
Parag Doke