By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,879 Members | 1,809 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,879 IT Pros & Developers. It's quick & easy.

Image in TH-Elem

P: n/a
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
Mar 30 '07 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Chris Seidel wrote:
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

I think you must replace background-image with background

Though I'm not sure...
Mar 30 '07 #2

P: n/a
Harris Kosmidhs wrote:
I think you must replace background-image with background
Did not help :(
Mar 30 '07 #3

P: n/a
"Chris Seidel" <cs*****@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.
Mar 30 '07 #4

P: n/a
On 30 Mar, 12:52, "Chris Seidel" <csei...@arcor.dewrote:
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;
}
Mar 30 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.