Jump to content

Off by a pixal in FF versus IE...


cgm225

Recommended Posts

If you look at the last photo in the gallery I coded (see here), I got it to be displayed to the left by adding some large right sided padding. However, when you compare the location of that last image in FF and IE, it is exactly where I want it in FF, but in IE 6 the image is still ~1px misaligned to the right.

 

Any ideas on how to correct this?

 

Thank you all in advance!

 

Also see here for browser shots.

Link to comment
Share on other sites

You can use some css to target IE6 only and correct the misalignment.

 

If this is the only problem IE6 is giving you, just use the famous * html hack to provide IE6 with a margin value that produces the same alignment as that which you have achieved in FF.

 

/*everything apart from IE6 will use this value*/
#myelement {margin-left:200px;}
/*but the hack below will mean that only IE6 sees and uses the margin value of 201px*/
* html #myelement {margin-left:201px;}

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.