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
Background image doesnt display.
Old 09-14-2009, 09:32 AM Background image doesnt display.
Junior Talker

Posts: 4
Trades: 0
Hi all, thanks on the last post, hope you can help with this too.

I'm trying to get an image to display in a box, and repeat all along the box (only a 1 pixel image). But for some reason its not being picked up.

my code is:

Code:
<body>
    <div id="wrap">
        <div id="innerwrap">
             <div id="holding">
             holding
             </div>
        </div>
    </div>
</body>

Code:
#wrap{width:60em;height:43em;background:silver;margin:0 auto;text-align:left; 
      /*covers all in ie*/ padding-top:.1em;}
#innerwrap{ background-color:gray;margin:.5em;height:42em;}

#holding {background:#3F8BCA url("/img/topgradient.jpg") repeat-x scroll left top;}
I've tried to change the brackets to forward brackets, tried to and ", but nothing works, im sure the spelling etc is correct...

any help would be great

Kind regards
MG
mind_grapes is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-14-2009, 10:26 AM Re: Background image doesnt display.
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
The "holding" container needs to have height and width to show a background.

With no content it will have 100% width and 0 height.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 09-14-2009, 10:36 AM Re: Background image doesnt display.
Junior Talker

Posts: 4
Trades: 0
Hi, thanks for the reply.

So i could set it to anything random and it should show??


Regards
MG
mind_grapes is offline
Reply With Quote
View Public Profile
 
Old 09-14-2009, 10:39 AM Re: Background image doesnt display.
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Yep or just use 100% for both and it should inherit the fixed dimensions of it's parent
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 09-14-2009, 12:28 PM Re: Background image doesnt display.
Junior Talker

Posts: 4
Trades: 0
Hi, still no joy.

When i use firebug - the firefox inspector tool, it doesn't come up in style window on the right hand side, the loading icon keeps spinning. but im sure the ref is correct

Regards
MG
mind_grapes is offline
Reply With Quote
View Public Profile
 
Old 09-14-2009, 04:42 PM Re: Background image doesnt display.
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Have you got a URL ?
__________________
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
 
Reply     « Reply to Background image doesnt display.
 

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