Jump to content

3 pixel error in IE


fierdor

Recommended Posts

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!

Link to comment
https://forums.phpfreaks.com/topic/204365-3-pixel-error-in-ie/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.