Topic: body and backgrounds (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=10847" title="Pages that link to Topic: body and backgrounds (Page 1 of 1)" rel="nofollow" >Topic: body and backgrounds <span class="small">(Page 1 of 1)</span>\

 
Karl
Bipolar (III) Inmate

From: Phoenix
Insane since: Jul 2001

posted posted 10-30-2002 23:30

Hi,
I'm trying to display a background image... and I think I have it correct, but its not working. Here is my style for body:

BODY
{
font-size: 10pt;
word-spacing: normal;
color: #3366cc;
font-family: Tahoma, Verdana, Arial;
letter-spacing: normal;
text-decoration: none;
background: url("images/stripe_b.gif")
}

See anything wrong with that?
Karl


karl@laketahoegymnasticscamp.com

HZR
Bipolar (III) Inmate

From: Cold Sweden
Insane since: Jul 2002

posted posted 10-30-2002 23:45

No, I can see nothing wrong with that. dbl-check the path?

Karl
Bipolar (III) Inmate

From: Phoenix
Insane since: Jul 2001

posted posted 10-30-2002 23:58

Indeed, it was a path. I'm compiling and running the page in the ASP.Net environment, the image within the style sheet could not be resolved by the relative path... absolute to the www root works though.
Thanks,
Karl


karl@laketahoegymnasticscamp.com

H][RO
Bipolar (III) Inmate

From: Australia
Insane since: Oct 2002

posted posted 10-31-2002 01:05

semicolon on the end of your background line =)

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 10-31-2002 01:16

Semi-colons aren't necessary on the last line in a style sheet.

Try removing the quotes inside url(), older browsers don't like them.

What browser is it not working in?

Petskull
Maniac (V) Mad Scientist

From: 127 Halcyon Road, Marenia, Atlantis
Insane since: Aug 2000

posted posted 10-31-2002 15:46

try it like this:

url(./images/stripe_b.gif)

for some reason, this is the only way it has only ever worked for me.


Code - CGI - links - DHTML - Javascript - Perl - programming - Magic - http://www.twistedport.com
ICQ: 67751342



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu