fierdor Posted June 10, 2010 Share Posted June 10, 2010 I am getting this error in IE 6 where there is an additional margin of 3 pixels on the left..I have googled enough links..But all of them refer to a "float:" property..I am not using any float..But still am getting the error..My CSS looks like this: #sidemenu { width: 150px; height: 500px; position:relative; left: 68px; padding: 0; margin: 0; } The reason why there is a "left:" is that I want to align it to the div which is on top of this and centrally aligned in the page..Basically I want to align the left edges of both this divs..Is there a more elegant way? So basically 2 questions: 1. the 3px problem in IE for the above mentioned div 2. alignment of 2 divs vertically. I am sorry if they are too basic..I tried googling but am not getting anything relevant...I have just started of with CSS Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/204365-3-pixel-error-in-ie/ Share on other sites More sharing options...
fierdor Posted June 10, 2010 Author Share Posted June 10, 2010 Ok I solved it with a bit of logic.. So if anyone is interested..I just put all the divs in one wrapper div and removed all the positioning tags in the inner divs and just centered the wrapper div.. So both problems got solved Quote Link to comment https://forums.phpfreaks.com/topic/204365-3-pixel-error-in-ie/#findComment-1070288 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.