css based pg ok in IE7 not in IE6

March 24, 2009 at 01:23:42
Specs: Windows XP SP2
please see http://dreamtech.awardspace.co.uk/ in IE 7 or firefox 3.0.6 - it displays fine. but in IE6, the 2 columns on the page display one below the other. i assume its something to do with the css. can you help me?
the css files are http://dreamtech.awardspace.co.uk/s... and http://dreamtech.awardspace.co.uk/l...

also the page had a line <?xml version="1.0" encoding="utf-8"?> right at the top which i had to remove because it showed the error "Parse error: syntax error, unexpected T_STRING in /home/www/dreamtech.awardspace.co.uk/index.html on line 1" when i hosted it on awardspace. does this have any impact on my problem. if i remove this line, do i have to add some other line to my code to make it proper.
thanks for your time and efforts.

See More: css based pg ok in IE7 not in IE6

Report •

March 24, 2009 at 09:16:57
Hi, have you tried setting a width to your floated items, namely:


Unless the item that you are floating is an image, it's a good practice to define the width on floated items or the results could be inconsistent. The reason why you don't need to set a width on image floats is because an image has an implicit associated width.

If you don't set a width with your float, your layout can vary from browser to browser.

Report •

April 8, 2009 at 01:37:42
thank you for your help. the problem was in style.css. i changed the line #page3 #content .col_1 .indent { padding:0 60px 0 28px;} to #page3 #content .col_1 .indent { padding:0 25px 0 25px;} and it worked fine

Report •

Related Solutions

Ask Question