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


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
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


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
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