Background repeats
I am trying to convert a site from tables to CSS, but I have run into a problem. I put in a background image, attached, no repeat. The image is roughly 800x600 and looks fine on my machine, but it repeats on machines using higher resolutions. I would like to keep the pages at a smaller size and center them on the screen if possible in CSS. How do I do this. Site is [http://www.blmsaferooms.com ]
Thanks
Code:
body {
background-image: url('images/bigtornado7.jpg');
background-attachment: fixed;
background-repeat: no-repeat;
font-family: Verdana, Arial, sans-serif;
margin: 0px
}
That will stop the image from repeating.
You could also reduce the background styles to
Code:
background: url('images/bigtornado7.jpg') fixed no-repeat;
For more info, you can check out this link.
Thousand different paths
So many sterile ends
I chose the Devil's path
Never shall the sun kiss my face
And caress me with it's burning light
For I dwell in the shadows
And sleep side by side with death
Thaks a bunch, I didn't realize that I'd left that line off of my css page.
Originally posted by Graybeard
Thaks a bunch, I didn't realize that I'd left that line off of my css page.
You're welcome Glad you got fixed.
Thousand different paths
So many sterile ends
I chose the Devil's path
Never shall the sun kiss my face
And caress me with it's burning light
For I dwell in the shadows
And sleep side by side with death
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Bookmarks