Guest_imported
New member
- Jan 1, 1970
- 0
I have an issue with mozilla and coloured lines using a table and a spacer gif.
Say you do a grey line like this:
<table border="0" cellpadding="0" cellspacing="0" width="50%">
<tr>
<td bgcolor="#cccccc"><img src=" width="1" height="1" border="0" alt="" /></td>
</tr>
</table>
If you do not set a doctype or one without a url like this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
it works fine, however, as soon as you add a
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
Mozilla displays a rectangle rather than a line, although the code is valid xHTML.
You can see the problem at: for example.
Can anyone tell me why mozilla does that and how to counteract?
cheers
Chris
Say you do a grey line like this:
<table border="0" cellpadding="0" cellspacing="0" width="50%">
<tr>
<td bgcolor="#cccccc"><img src=" width="1" height="1" border="0" alt="" /></td>
</tr>
</table>
If you do not set a doctype or one without a url like this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
it works fine, however, as soon as you add a
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
Mozilla displays a rectangle rather than a line, although the code is valid xHTML.
You can see the problem at: for example.
Can anyone tell me why mozilla does that and how to counteract?
cheers
Chris