|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I am trying to add a background-image tag to my external stylesheet, but the image is not showing up. I tryed just simply embeding the background-image tag into the html page and it worked. I know the external stylesheet is working, because when I changed it, the styles changed. Thanks to anyone that can offer advice!
|
|
#2
|
|||
|
|||
|
Make sure that you link to the right folder.
Maybe you have your stylesheet in the a folder called includes (includes/stylesheets/css.css). That means that you need to 'link' proper. For example your stylesheet. Code:
background: #fff url("../../images/yourbg.jpg") no-repeat
Maybe this will solve your problem. Good luck. Tim |
|
#3
|
|||
|
|||
|
also, if youre using a mac, you may have to add an additional styletag line:
background-image: url('image.jpg') no-repeat top left; same thing was happening to me, i added that line, for some reason Macs OS 9.x and i believe OSX too read "background-image" and pcs read "background". each ignores the other so you can have both, but its repetetive to have to type both. maybe this helps. |
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > CSS Background-Image Problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|