...

View Full Version : Background image doesn't show up!



iota
09-16-2005, 01:58 PM
:( :(
yo!
I do two things : with CSS background:url('')
also with body background="'

But why the background image doesn't show ?

http://icebergz.flashband.net/IFN

Thank you so.

mark87
09-16-2005, 02:13 PM
Your coding is a bit of a mess, so you'd be best to work on that really - your using deprecated html tags as well as css.

Take out the 'background' attribute in the body tag :

<body leftmargin=0 topmargin=0 background="http://nrc.250free.com/rfimg/flower_bg.gif">

And change :

body {font-family:"Verdana";font-size:12px;background:url('http://nrc.250free.com/rfimg/flower_bg .gif');

To :

body {
font-family: Verdana;
font-size: 12px;
background: url(http://nrc.250free.com/rfimg/flower_bg.gif);

Should work then. :)

NancyJ
09-16-2005, 02:22 PM
Theres nothing intrinsically wrong with having all your styles on 1 line, the ; is the separator not the new line character, with a large number of styles not in an external stylesheet it is often preferable to display them like that because they take up less space :p
The issue is not that they're are all in a line, the problem with the css background is you've a space between the filename and the extension and you have quotes around the url, which arent needed
eg.
background:url('http://nrc.250free.com/rfimg/flower_bg .gif');
instead of
background:url(http://nrc.250free.com/rfimg/flower_bg.gif);

iota
09-16-2005, 02:23 PM
Your coding is a bit of a mess, so you'd be best to work on that really - your using deprecated html tags as well as css.

Take out the 'background' attribute in the body tag :

<body leftmargin=0 topmargin=0 background="http://nrc.250free.com/rfimg/flower_bg.gif">

And change :

body {font-family:"Verdana";font-size:12px;background:url('http://nrc.250free.com/rfimg/flower_bg .gif');

To :

body {
font-family: Verdana;
font-size: 12px;
background: url(http://nrc.250free.com/rfimg/flower_bg.gif);

Should work then. :)

I was so worry that I made careless mistake.
Thank you , sir.
Now , it works.

mark87
09-16-2005, 02:24 PM
Um NancyJ... that's what I did change lol. :confused:

No prob iota. :thumbsup:

NancyJ
09-16-2005, 02:28 PM
Um NancyJ... that's what I did change lol. :confused:

your implication was that it didnt work cos the code was messy :p I was just explaining the real problem.

If you're going to make comments like that its a good idea to explain the changes that you made especially when they are so small like spaces and single quotes. The more obvious changes (the change in format) combined with your comments make it appear if that was the change you made.

mark87
09-16-2005, 02:42 PM
Okay, soz, always helps me to see what's happening when I format it that way. :)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum