acidglitter Posted August 28, 2007 Share Posted August 28, 2007 At the top of my page I have <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> so it shouldn't be in quirks mode. I have my content and navigation put into <div>s. The stylesheet for them looks like this #con { width:650px;margin-left:140px;top:0; color:#636363;text-align:justify; border:solid 4px #70D7D6;background:url(img/layout/gah.gif) repeat-x; padding-top:20px;background-color:#FFFFFF; } #nav { width:140px;float:left;top:105px;left:0; background-color:#70D7D6;padding:4px; } It looks perfect in Firefox, but in IE7 the content shows up 140px to the right, but the top is where the bottom of the navigation is. I can't figure out why thats happening... ??? Quote Link to comment Share on other sites More sharing options...
moberemk Posted August 28, 2007 Share Posted August 28, 2007 The explanation is somewhat confusing; could you post some screenshots of the phenomena? Quote Link to comment Share on other sites More sharing options...
acidglitter Posted August 28, 2007 Author Share Posted August 28, 2007 Quote Link to comment Share on other sites More sharing options...
spamoom Posted August 28, 2007 Share Posted August 28, 2007 ok try clear: left; Quote Link to comment Share on other sites More sharing options...
moberemk Posted August 28, 2007 Share Posted August 28, 2007 No, that won't help anything. The problem is that, if the two columns were to be put side-by-side, then you would have something too wide for the width your container element specifies, right? Do either of your boxes use padding? if not, try making the main content just a few pixels narrower. If you do, though, then you'll have to look up the Holly Hack online. Quote Link to comment Share on other sites More sharing options...
acidglitter Posted August 29, 2007 Author Share Posted August 29, 2007 That was probably the problem. I forgot that IE is weird about padding sometimes. But I ended up giving up and going back to tables but I'll keep that in mind next time I try. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.