HighDots Forums  

Body Backgrounds in css

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Body Backgrounds in css in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default Body Backgrounds in css - 07-15-2003 , 10:38 PM






If I have a style sheet, i cannot do <body background="myimage.jpg">
in my html body tag.

When trying to assign an image to the body background in my style
sheet, {background: myimage.jpg; } doesnt work.

??
zsports

Reply With Quote
  #2  
Old   
Rob McAninch
 
Posts: n/a

Default Re: Body Backgrounds in css - 07-15-2003 , 11:24 PM






cgplays.com
<news:ea49d088.0307151938.79b822e6 (AT) posting (DOT) google.com>:

Quote:
If I have a style sheet, i cannot do <body
background="myimage.jpg"> in my html body tag.
Well you can do both, the CSS should be preferred in a capable
browser and then it will fall back to the HTML suggestion.

Quote:
When trying to assign an image to the body background in my
style sheet, {background: myimage.jpg; } doesnt work.
You are missing something. A complete line might be:

body {background: #000 url(myimage.jpg);}

Check a CSS reference for other stuff you can do. Perhaps here:
http://www.w3.org/Style/CSS/learning

--
Rob - http://rock13.com/
Web Stuff: http://rock13.com/webhelp/


Reply With Quote
Reply




Thread Tools
Display Modes

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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.