Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Old 10-14-2008, 07:23 AM HTML CSS problem
Junior Talker

Posts: 3
Name: Jack Smith
Trades: 0
I've a problem. I've one HTML file from where I have linked the css which is residing in the css folder. In the css for a div I've a class where I'm trying to load the backgroud image using BACKGROUND: url('../images/bg.gif'). But for some strange reason the image is not getting loaded. My folder structure is-

www
+-mysite
+-css(all.css)
+-images(bg.gif)
+-signup.html

Can anyone tell me where am I missing?
__________________
Your window to latest technology:
Please login or register to view this content. Registration is FREE
jack239 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-14-2008, 07:39 AM Re: HTML CSS problem
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
not a strange reason at all.

the ../ syntax means that the image is located one folder above the document which it actually isn't

use root relative addressing url(/images/bg.gif)
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 10-19-2008, 04:24 PM Re: HTML CSS problem
Average Talker

Posts: 29
Name: Taylor
Trades: 0
Don't you need
Code:
background-image:url('images/bg.gif');

Last edited by Raisdead; 10-19-2008 at 04:25 PM.. Reason: missing the ;
Raisdead is offline
Reply With Quote
View Public Profile
 
Old 10-19-2008, 05:10 PM Re: HTML CSS problem
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
No quotes should be needed around the path and image name UNLESS there is a space in the string. The path defined there would be document relative.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 10-19-2008, 10:49 PM Re: HTML CSS problem
Sean@WMS's Avatar
Skilled Talker

Posts: 52
Name: Sean Connors
Location: Eureka, CA USA
Trades: 0
Quote:
Originally Posted by chrishirst View Post
use root relative addressing url(/images/bg.gif)
I could not recommend this more highly referencing any and all src's! Makes life SO much easier.
__________________
Web Merchant Services

Please login or register to view this content. Registration is FREE
,
Please login or register to view this content. Registration is FREE
Sean@WMS is offline
Reply With Quote
View Public Profile Visit Sean@WMS's homepage!
 
Reply     « Reply to HTML CSS problem
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.08847 seconds with 12 queries