Accessibility

CSS Advisor

An Example of Three Pixel Jog

by Siddis on October 23, 2008
Edited by: sfegette on November 24, 2009
Avg Rating 4.0 (3)   |   Log in to rate post.

Tagged with Explorer 6.0 , Explorer 5.0 , Position , Explorer 7.0 , Text , Explorer 5.5 , Float

Problem

When anonymous line boxes (boxes that contain inline content) are adjacent to a float, a 3px gap appears... (From Dreamweaver)

Solution

Add the class described in the body of this post to the head of your document. Just a comment to your tree-pixel-jog solution, which works fine. Thank you.

Detailed description

Add the class like this (in the "head" section):

<!--[if IE]>
<style type="text/css">
 .mybuggyelement { zoom: 1;}
</style>
<![endif]-->
<style type="text/css">
<!--

<style type="text/css">

    other styles

</style>

The "div" with the problem is coded like this:

<div class="mybuggyelement" id="mainPart"> ..... </div>

Look at http://lostablones.es/Links/links.html for the fix in action. Use "view source" if you like.

That's all.

 

 




Text ID: THREE_PIXEL_JOG_EXAMPLE



Comments (2)

To add a comment, please Log in.




It's a winner

I was creating a tabbed panel. I had to apply this hack to the class of my ul statement. After that it worked.

Works great!

This worked perfectly - thanks for sharing this solution!





CSS Advisor home
Submit a post

rss

CSS ADVISOR RSS FEEDS
Recent: POSTS | COMMENTS | EDITS


Browsers
Internet Explorer (45)
Mozilla/Firefox (16)
Opera (7)
Safari (13)
CSS Properties
Background (6)
Border (3)
Color (1)
Float (15)
Font (1)
Margin (6)
Padding (4)
Position (15)
Text (13)
Width/Height (9)