HighDots Forums  

IE6 out by 1 pixel?

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss IE6 out by 1 pixel? in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Phil Le Sueur
 
Posts: n/a

Default IE6 out by 1 pixel? - 10-07-2003 , 09:53 AM






Hi,

In the following example, I have two relatively positioned blue boxes with a
smaller white box absolutely positioned in each corner to create a cross
effect. The first cross is 45 x 45 pixels. The second is 46 x 46. When
viewed using NN7 and Opera7 everything looks as it should. When viewed using
IE6, the even width and height cross displays ok but the one with odd widths
and heights has the bottom and right hand white boxes positioned 1 pixel out
leaving a thin blue border. Is this a known bug?

HTML:

<div class="odd">
<div class="topl"></div>
<div class="topr"></div>
<div class="botl"></div>
<div class="botr"></div>
</div>
<p></p>
<div class="even">
<div class="topl"></div>
<div class="topr"></div>
<div class="botl"></div>
<div class="botr"></div>
</div>

STYLE:

..odd, .even{
position: relative;
background-color: blue;
}

..odd {
width: 45px;
height: 45px;
}

..even {
width: 46px;
height: 46px;
}

..topl, .topr, .botl, .botr {
width: 15px;
height:15px;
position: absolute;
font-size: 0px;
background-color: white;
}

..topl {
left: 0px;
top: 0px;
}

..topr {
right: 0px;
top: 0px;
}

..botl {
bottom: 0px;
left: 0px;
}

..botr {
bottom: 0px;
right: 0px;
}




Thanks

Phil



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.