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
Share on other sites

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  :D

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.