Forum Moderators: not2easy
.testclass{
position:absolute;
width:158px;
top:105px;
left:3px;
border:1px solid #FE682A;
}
.testclass{
-moz-box-sizing: border-box;
box-sizing: border-box;
display: block;
position:absolute;
width:158px;
top:105px;
left:3px;
border:1px solid #FE682A;
}
Ps. display: block; added just to see about the border thing, no need for it otherwise.
Jordan
Some good info on the models is here (WebFX) [webfx.eae.net] and here (ppk [click cancel at the confirm prompt]) [xs4all.nl].
Tantek Çelik also has a 'box model hack [tantek.com]' that is helpful.
I really wish they'd just pick one model (whichever one it is) and stick to it, lol. ;)
Jordan
btw..
body,margin {
margin:0;
padding:0;
}
The 3px text jog bug, which I just wrote about in another post is an IE Bug however there was one version of Opera (7?) that rendered floats similarly to IE.. but this is not a float it's an absolutely positioned element, so I don't think it is this anyway!
I understand about the box-model rendering codes that Jordan gave, that's handy. I usually use IE Conditional comments to feed the different width to IE if required, but either way the borders should also render .. I'm stumped without a bit more code as I think as it must be something else..
can you post the rest of the page with CSS?
Suzy
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
<style>
.column{
background-color : 000000;
border : 1px solid FE682A;
color:ffffff;
}
</style>
</head>
<body>
<div class="column">
some text
</div>
</body>
</html>
[edited by: korkus2000 at 1:32 pm (utc) on Nov. 2, 2003]