Torbjørn Pettersen wrote:
Quote:
I've got a table where I want some of the cells to use
a background image. The cells have variable height, so
I am using an image with a rather small height to fill up
the background of the cells, thus making I look like one
high image in there.
When validating it, I get this error:
there is no attribute "BACKGROUND"
The validators also tell me there are no "HEIGHT" or
"TOPMARGIN" attributes. Where did they go? And
what to use now? |
CSS:
<style type="text/css">
table{
margin-top: 10px;
}
td{
background-image:url(image.gif);
background-repeat:repeat-y;
height:30%;
}
</style>
</head>
http://www.w3.org/TR/REC-CSS2/colors...und-properties Quote:
grumble>Why on Earth do they have to remove the
stuff that ::I:: use to make things nice and tidy?</grumble |
Using CSS (especially in seperate stylesheets) will only
make things tidier and nicer :-)
Quote:
And then there is the "ALT" attribute.... Do I really have
to use that on ::all:: my images? |
alt="" if the image really doesn't need a description
(thinking of decorative gifs here)
Quote:
Well, time to call it an evening anyway........ |
Same side of the planet as where I am :-)
--
Els
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -