HighDots Forums  

CSS Guru's: How to center a background image?

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss CSS Guru's: How to center a background image? in the Macromedia Dreamweaver forum.



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

Default CSS Guru's: How to center a background image? - 01-01-2004 , 04:38 PM






Hi all. Want to center my background image so when views with higher res
that 800x600 the image is centered with black background. Here is my css
code:

body {
background-image: url(../assets/bkgrnd_nottransparent800_600.jpg);
background-attachment: fixed;
background-repeat: no-repeat;
background-color: #000000;
}

What I get is a tiled image in higher res.

TIA

Robert



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.