PDA

View Full Version : CSS question...


nickbarresi
01-22-2003, 10:10 PM
Hi, I'm making a new site, and I'm trying to add an image as the bottom layer...with no repeat, centered exactly in middle of page.

Any suggestions?

I'm still new to this CSS for layout;) Thanks in advance.

Catman
01-22-2003, 10:20 PM
Create a style like this:

body {
background : url(../../images/gusty.jpg) center center no-repeat;
}

nickbarresi
01-22-2003, 10:28 PM
That's it? Cool:)

Thanks!

nickbarresi
01-23-2003, 01:11 AM
Ok I got the image where I want it (Thanks)

Now I want to put a content area on top of it. How would the code look for it?

I tried:

p {
position: center center;
width: 400px;
}

and it didn't work:( Any help would be great!

cg9com
01-26-2003, 05:08 AM
the content should display on the page just fine, the background wouldnt affect it.
position supports 4 values as far as i know
absolute, fixed, relative, static