Forum Moderators: not2easy
The .BodyContainer style displays exactly how I want it in both IE and Mozilla (with a 1 px border) the .BodySectionBox displays a 1px border in IE (which I want) but it displays about a 4-5 px border in Mozilla.
The .BodySectionBox sits inside the .BodyContainer box if that means anything.
Any ideas?
Below are my styles
.BodyContainer {
float: right;
width: 783px;
height: 100%;
border:solid;
border-width: 1px 1px 1px 1px;
border-color:#000000;
background-color: #EBF4F5;
color: #000000;
padding: 5px;
margin-top: 10px;
margin-bottom: 10px;
}
.BodySectionBox {
color: #000000;
background-color: #FDFDEC;
border-width: 1px 1px 1px 1px;
border: solid;
border-color: #000000;
padding: 5px;
margin-top: 5px;
margin-bottom: 5px;
}
.BodySectionBox {
...
border-width: 1px 1px 1px 1px;
border: solid;
border-color: #000000;
...
}
border: solid 1px #000000;
The default border color is the text color (most likely black), the default style is none, and, importantly, the default width is medium (which is several pixels wide).
What happens with your code is:
You could use "border-style" to set the border style. However, the best and most concise way would just to put:
border: solid 1px #000000;