CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 26th, 2001, 09:20 AM
silver silver is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Location: Lansing, MI
Posts: 1 silver User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to silver Send a message via AIM to silver
Question

Well, I'm sure this is really simple, but I've been playing with it all night and I just can't get the darned thing to display.

I'm just trying to set up the background image by redefining the body tag using CSS. It won't display an image at all. I've tried hand coding it and using an editor, and I've tried code nabbed off of WebMonkey, and none of it will work. Any other body attributes work fine though--color, etc.

Oh yeah, and my browser will display it just fine because sites I look at use this and they display great. (Using IE 5.5 for this.)

Any suggestions?

Thanks.

Jamie

Here's some code that didn't work:

<html>
<head>
<link rel='stylesheet' type='text/css' href='styles_orange0.css'>
</head>

<body bgcolor="#ffffff" text="#000000" id=all>
<p class="content">text goes here</p>
</body>
</html>


styles_orange0.css:

BODY { background-image: url(/images/orange0/bg.jpg);
background-color: #333333;}
.content { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt; color: #FFFFFF;}


Reply With Quote
  #2  
Old January 26th, 2001, 01:31 PM
JohnB JohnB is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jan 2001
Location: UK
Posts: 527 JohnB User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
I'm guessing it can't find the background image file.

Try changing the address to:

url(./images/orange0/bg.jpg);

that is put a ./ at the front.

John

Reply With Quote
  #3  
Old January 26th, 2001, 04:39 PM
oskar oskar is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Location: Copenhagen, DK
Posts: 222 oskar User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 50 m 40 sec
Reputation Power: 8
Send a message via ICQ to oskar
Instead of
BODY { background-image: url(/images/orange0/bg.jpg);

I would write
BODY { background-image: url("images/orange0/bg.jpg");

Steffen

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > css background image


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway