I am still learning CSS and have hit a problem.
The following code renders ok in IE6 but in Firefox, the border does not surround the printed text and the container div is not coloured.
Could anyone suggest a cure/cause?
This is part of a larger problem where IE6 and Firefox render the page differently but this is the section which is causing the problem.
Keith
The following code renders ok in IE6 but in Firefox, the border does not surround the printed text and the container div is not coloured.
Could anyone suggest a cure/cause?
This is part of a larger problem where IE6 and Firefox render the page differently but this is the section which is causing the problem.
Code:
Stylesheet
.testcon{
width:240px;
background-color:#abcdef;
border-width: 2px;
border-style: solid;
border-color: #666666;
}
.testdiv{
width:100px;
margin:5px;
float:left;
background-color:#345678;
}
Code:
HTML creation
Fills div-testcon with 2 vertical rows of 10 div-testdiv
print "<div class='testcon'>";
for($x=0; $x<20; ++$x){
print "<div class='testdiv'>This is the content</div>";
}
print "</div>";
Keith