Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / CSS / March 2007



Tip: Looking for answers? Try searching our database.

Image in TH-Elem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Chris Seidel - 30 Mar 2007 12:52 GMT
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;
}
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.