williamZanelli Posted June 8, 2009 Share Posted June 8, 2009 Hi guys, I;ve built a website, in FF3, it works perfectly In IE7, some margins, seem to be totally ignored for some reason See this code, #pagination_block{ margin: 2px 2px 2px 2px; padding: 2px 2px 2px 2px; background:#FF0000; } In FF3 its 100%.. in IE7 the margin is totally ignored.. could someone tell me what i;ve done wrong? Thanks Will Link to comment https://forums.phpfreaks.com/topic/161424-problem-with-alignmentie7/ Share on other sites More sharing options...
sKunKbad Posted June 9, 2009 Share Posted June 9, 2009 You probably need to declare a float property, such as float:left; or float:none; You also probably need to declare a width, either absolute or relative. Link to comment https://forums.phpfreaks.com/topic/161424-problem-with-alignmentie7/#findComment-851982 Share on other sites More sharing options...
scott.stephan Posted June 9, 2009 Share Posted June 9, 2009 Welcome to the dungeon! The point in time in which your beautiful website gets slaughtered by IE. Alas! There are a couple things that could be at work here. As above: Watch your floats and clears. Also, if I remember correctly, IE has a little habit of ignoring bottom margins in IE7. If you want a bottom margin, you either had to add a wrapper class or set the margin in the parent element. Something to follow up on, at least. Link to comment https://forums.phpfreaks.com/topic/161424-problem-with-alignmentie7/#findComment-851999 Share on other sites More sharing options...
scott.stephan Posted June 9, 2009 Share Posted June 9, 2009 Also, yes, you will need a width. Firefox might assume "100%", IE may not and, hence, has nothing to lay margins on. Try: width=100% Link to comment https://forums.phpfreaks.com/topic/161424-problem-with-alignmentie7/#findComment-852001 Share on other sites More sharing options...
williamZanelli Posted June 9, 2009 Author Share Posted June 9, 2009 Hi guys, Thanks for the messages. I've managed to solve my problem with your advice Is there a website/tutorial that can provide me with info, on the "anomolies" with IE? This always trips me up.. :-( Link to comment https://forums.phpfreaks.com/topic/161424-problem-with-alignmentie7/#findComment-852390 Share on other sites More sharing options...
scott.stephan Posted June 10, 2009 Share Posted June 10, 2009 Will, This was really helpful for me: http://ask.metafilter.com/100059/Help-me-understand-what-I-need-to-make-my-website-compliant-with-IE Link to comment https://forums.phpfreaks.com/topic/161424-problem-with-alignmentie7/#findComment-853274 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.