NN 4 doesn't support the height attribute in the <td> tag (as far as I recall). If you are looking for a cross browser solution that degrades nicely, you are better off using an image to do the job.
Even using an image there are several solutions!
- You can use an image the exact width and height of the line.
- You can use a 1x1 pixel image (of the colour you want the line to be) and then set the width and height attributes of the img tag to be the exact width and height of the line.
- You could use a 1x1 pixel transparent gif, set the width and height attributes of the img tag to be the exact width and height of the line, and then define a background colour on the td tag.
- You could use the
Netscape only tag to force the width and height of the td (and use a background image in the td as above) -- IE will ignore the spacer tag, so leave in the height attribute for the td.
You're better off using an image for your dynamic lines. Create a 1 pixel x 1 pixel GIF in the color of your choice. In your img tag, you can specify the desired height & width.
FYI - less than 1% of all users worldwide use NN4+, and this number is getting smaller each month. If you don't have to satisfy a specific client, I wouldn't bother trying to support it in your code.
There's always a better way. The fun is trying to find it!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.