redho home | products | services

Programming Forums


Community for Java, PHP, Perl C, ASP and Python programmers
Friday 03 September 2010 04:44

Ask your IT question here

problems with background



 
Post new topic   Reply to topic    Programming Forums -> HTML forum
View previous topic :: View next topic  
Author Message
PaulKolin
Enthusiastic Coder


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
Enthusiastic Coder


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
Enthusiastic Coder


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
Enthusiastic Coder


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


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    Programming Forums -> HTML forum


Dubai Forums - Expat Help | Vegan Forum | Java Programming | 3d Design Resources | 3d Forum | 3D Jobs | 3D Textures | Paris Forum | Europe Forum
Dubai Classifieds | Dubai Property | Jobs in Dubai | Free London Classifieds | Jobs in London UK

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

Based on phpBB © 2001-2010 RedHo