CSS float/align problem - IE5/Win
-
Hi, I'm trying to rewrite this site of mine using CSS instead of tables for tha layout. I'm trying to start off with the top lighter-green header bar. Here is my test site. And here is some of the CSS in question: #headerL { background: #99ff99; float: left; padding: 0px; font-weight: bold; } #headerR { text-align: right; background: #99ffCC; margin: 0; padding: 5px; font-weight: normal; } Does anyone know why the first line in the text example does not align:right in IE5 like it should? I've tried it the opposite way, floating the right-hand side instead, and it will still align the text the wrong way. Either way works fine in Mozilla. Any ideas? Jeff Sand jsand42 at earthlink dot net
-
Hi, I'm trying to rewrite this site of mine using CSS instead of tables for tha layout. I'm trying to start off with the top lighter-green header bar. Here is my test site. And here is some of the CSS in question: #headerL { background: #99ff99; float: left; padding: 0px; font-weight: bold; } #headerR { text-align: right; background: #99ffCC; margin: 0; padding: 5px; font-weight: normal; } Does anyone know why the first line in the text example does not align:right in IE5 like it should? I've tried it the opposite way, floating the right-hand side instead, and it will still align the text the wrong way. Either way works fine in Mozilla. Any ideas? Jeff Sand jsand42 at earthlink dot net
I don't know what you're seeing, but I get a right-aligned header in IE6. There are three lines, all right-aligned: ...foo foo \n Next \n next. Given the source lines: theshroom.com - Blitzen foo foo
Next
next that's exactly what I'd expect to see. A question, though - was it your intent to nest ainside a
? [EDIT] Oops - forgot to check the 'Do not treat <'s as HTML tags' checkbox the first time :-O [/EDIT] "Your village called -
They're missing their idiot."