Hi,
I'm trying to put an image into a table header via a css-style:
th.order1 {
background-image: url(asc.png) top right no-repeat padding-right: 5px;
}
asc.png is 16x16 pixels.
Unfortunately I only get a white background for the TH, when I ally the
style, no image is visible.
The header is about 100 pixel wide and 20 pixel high.
What is wrong here?
Thank you
Harris Kosmidhs - 30 Mar 2007 13:42 GMT
> Hi,
>
[quoted text clipped - 13 lines]
>
> Thank you
I think you must replace background-image with background
Though I'm not sure...
Chris Seidel - 30 Mar 2007 14:23 GMT
> I think you must replace background-image with background
Did not help :(
Kerim Ellentoft - 30 Mar 2007 17:49 GMT
"Chris Seidel" <cseidel@arcor.de> skrev :
>Unfortunately I only get a white background for the TH, when I ally the
>style, no image is visible.
You can't have padding-right with a background-image.
Andy Dingley - 30 Mar 2007 18:04 GMT
> th.order1 {
> background-image: url(asc.png) top right no-repeat padding-right: 5px;
> }
Syntax is broken. You're using the wrong property name and you're also
missing a semi-colon to separate the two rules.
th.order1 {
background: url(asc.png) top right no-repeat;
padding-right: 5px;
}