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.

CSS Forum


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



Reply
Old 10-24-2006, 06:08 AM Problem with css
Super Talker

Posts: 109
Trades: 0
I'm having a problem with being able to use a background image with css. Using Aardvark I came up with what I thought would be the correct CSS for the image but it didn't work. I'm trying to use the background image in the upper left corner where is says "articles and stories" on the page http://chibabeat.com. The code I was trying to use was
Code:
.main-content .centerpadding .panel-2col-stacked .panel-col-first .view view-articles_stories p {
 background-image: url(side.gif);
 size: auto;
 }
Does anyone know where I went wrong?
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


A master in stucco, veteran in love, and an outlaw in Peru!
orionvortex is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-24-2006, 09:28 AM Re: Problem with css
pitbull82's Avatar
Super Talker

Posts: 147
Name: Marcin Nabiałek
Location: Poland, Częstochowa
Trades: 0
You have to remember about the correct path. If CSS file is not in the root directory, you have to use for example:
Code:
 background-image: url(../side.gif);
OR
Code:
 background-image: url(../../side.gif);
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
pitbull82 is offline
Reply With Quote
View Public Profile Visit pitbull82's homepage!
 
Old 10-24-2006, 10:40 AM Re: Problem with css
Super Talker

Posts: 109
Trades: 0
I put the gif in the root directory so the problem isn't there. I think it has something to do with the
.main-content .centerpadding .panel-2col-stacked .panel-col-first .view view-articles_stories p
Maybe I'm just confused with my many layers of css classes. Does anyone know where I could have gone wrong?
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


A master in stucco, veteran in love, and an outlaw in Peru!
orionvortex is offline
Reply With Quote
View Public Profile
 
Old 10-24-2006, 10:42 AM Re: Problem with css
pitbull82's Avatar
Super Talker

Posts: 147
Name: Marcin Nabiałek
Location: Poland, Częstochowa
Trades: 0
It's not problem with GIF path but with CSS path.

If you have your css files in css directory, you have to use this code:

Code:
 background-image: url(../side.gif);
and if you have your css files in css/examples directory, you have to use this code:

Code:
 background-image: url(../../side.gif);
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
pitbull82 is offline
Reply With Quote
View Public Profile Visit pitbull82's homepage!
 
Old 10-24-2006, 10:58 AM Re: Problem with css
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
There can be problems with the way-too-many classes you have specified. Knock that down to something more direct and it will likely work properly.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 10-29-2006, 06:50 AM Re: Problem with css
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
is view-articles_stories a class or an ID ??

because in your definition it has neither a "." or "#"
__________________
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!
 
Reply     « Reply to Problem with css
 

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.39054 seconds with 12 queries