Problem with 1px cells in Mozilla

liunx

Guest
I have this page i'm developing with a couple of 1px spacers. both horizontal and vertical. They show up fine in Opera and IE but in Mozilla, it has the space, its just the bgcolor is ignored and its just transparent so you can see the background of the page.<br />
<br />
<br />
<table width="846" height="113" cellpadding="0" cellspacing="0"><br />
<tr><br />
<td height="1" width="846" bgcolor="686868"></td> //this<br />
</tr><br />
<tr><br />
<td><img src=http://www.webdeveloper.com/forum/archive/index.php/"images/header.jpg"></td><br />
</tr><br />
<tr><br />
<td height="1" width="846" bgcolor="686868"></td>//and this<br />
</tr><br />
</table><br />
<br />
is there something wrond with my <td> tags?<!--content-->You really ought to use css to define the width, height, and background-color.<!--content-->I never used CSS much before. Can you give me an example of how i'd do this with CSS?<!--content--><style type="text/css"><br />
<!--<br />
td<br />
{<br />
background-color:#000000;<br />
width:123px;<br />
height:1px;<br />
}<br />
--><br />
</style><br />
try that<!--content-->Hmmm, that didn't exaclty work. I do just copy and paste it in place of the <td> tag, don't i? I feel like such a newbie. I'm guessnig i need to put it in a stylesheet or something i have no idea how to do.<!--content-->Put it in the head tag and just have <td><!--content-->Why use tables at all? Oh, and what you want looks like something I typed up (<!-- m --><a class="postlink" href="http://www.matts-website.net/geek/wdhr.html">http://www.matts-website.net/geek/wdhr.html</a><!-- m -->) last week.<!--content-->
 
Back
Top