redho home | products | services
Web Design Forums

Web Design Forums  


Web Hosting, Web Design, Software and Web Development Forums  
 FAQFAQ   MemberlistArchive  Log inLog in   RegisterRegister 
         

problems with background



 
Post new topic   Reply to topic    Web Design Forums -> HTML forum
View previous topic :: View next topic  
Author Message
PaulKolin



Joined: 25 May 2006
Posts: 108
I have one question concerning the handling of <meta basedir=...>:
In basedir/index.html i declared the basedir and linked to a stylesheet basedir/css/style.css
In the stylsheet i want to declare e background-image /basedir/images/background.jpg.
I tried this with { background-image: url(images/background.jpg); } but the background remains empty?
Why?
  Reply with quote


optomeb



Joined: 19 May 2006
Posts: 113
make sure your stylesheet is linked properly like so: <link href="stylesheet.css" rel="stylesheet" type="text/css">
So maybe you just need to correct the path to your styleseet :)
  Reply with quote
PaulKolin



Joined: 25 May 2006
Posts: 108
Both (html+css) validated correctly.
Is the background-image url relative to the path of the stylesheet, or relative to <base ...>?
  Reply with quote
optomeb



Joined: 19 May 2006
Posts: 113
:D
  Reply with quote
PaulKolin



Joined: 25 May 2006
Posts: 108
It looks like the path to the background-image was relative to the file where the bg-img was declared...
So now I'm fine and know what to do.
  Reply with quote
Page 1 of 1
Post new topic   Reply to topic    Web Design Forums -> HTML forum


Dubai Forums - Expat Help | Vegan Chat | Java Programming | Free 3D tutorials and 3d textures | Paris Forum | EU Forum
Free Dubai Classifieds | Free London Classifieds | Jobs in London

High Quality, Custom 3d animation and Web Design solutions Royal Quality Web Hosting Services Vegetarian and Animal Rights news

Powered by phpBB © 2001, 2005 phpBB Group