Gossamer Forum
Home : General : Internet Technologies :

CSS - background-repeat

Quote Reply
CSS - background-repeat
Hi,

Anyone got any ideas why this isn't working? :/

Code:
body {
background-repeat: no-repeat;
background: url("http://www.domain.com/news/images/bg.gif");
}

It shows the background ok - but it then "repeats" again further down the page :( Is the no-repeat function not available for the "body" tag? :/

BTW - I'm using this page as a reference: http://www.w3.org/...ef-background-repeat

TIA

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] CSS - background-repeat In reply to
background is a shortcut property for all the background-* properties. So either you move the background-repeat property below the "background: ..." line, or include the property in the background line (eg. background: url(...) no-repeat;).

Adrian
Quote Reply
Re: [brewt] CSS - background-repeat In reply to
OMG - thank you thank you thank you!!! Works a charm Cool

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] CSS - background-repeat In reply to
you can also use absolutes:

body {height:100%;font:12px Arial, Verdana, Tahoma, Sans-Serif;color:#000;background:url(images/background/body.jpg) center repeat-y;}

body {background:#fff url(images/background/vod.jpg) no-repeat;height:217px;}


Sandra Roussel
Chonsa Group Design - Fresh Start Housing