|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
BG image relative to page or CSS
Im just wondering defining a background image in css.
I know I can use relative and absolute addresses, but Is the url background-image: url('img.gif'); relative to the CSS or to the page and is it different for each browser. |
|
#2
|
||||
|
||||
|
Relative to the CSS. You could either put the full URL in there, or put the link relative to your top level (root) directory. eg.
top level: index.htm images directory stylesheets directory In your style sheet put: background-image: url('/images/img.gif'); HTH
__________________
Cheers, Jamie # mdb4u | mobile movie database] | Please help to test and promote # skiFFie | Home of the 'accessibility module' for Drupal # Jamie Burns [me] Accessibility Module [drupal] # guidelines | search | wap resources | not getting help | fold to cure __________________ Let the might of your compassion arise to bring a quick end to the flowing stream of the blood and tears ..... Please hear my anguished words of truth. ![]() __________________ |
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > BG image relative to page or CSS |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|