Hi all , this is my fist post in this cool forum ?
I have a problem with some thiing
[code=html]<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”>
<html>
<head>
<meta http-equiv=”content-type” content=”text/html; charset=windows-1250″>
<meta name=”generator” content=”PSPad editor, www.pspad.com”>
<title></title>
<style type=”text/css”>
#test{
border:3px solid black;
width:100px;
height:100px;
background:red;
}
</style>
</head>
<body onload=”alert(document.getElementById(‘test’).offsetWidth)”>
<div id=”test”>
</div>
</body>
</html>
this code create a 100*100 div element with a 3px border
In IE and Opera the border is inset so the total width is 100 but in Firefox the border is outset and the total width is 106
This gives some problems in layouts
They look good on Firefox and bad in IE or look good in Firefox and look bad in IE
Anyone know how i would solve this? I havent found any css declaration for set the border inset or outset ?