Welcome visitor
* Login
* Register
It is currently January 18th, 2019, 10:04 pm
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » HTML



Post new topic Reply to topic  [ 2 posts ] 
Author Message
  center a background
PostPosted: October 14th, 2009, 4:48 pm 

Posts: 22
hi,

My background is a simple image with the no repeat atribute so all the rest of the site is filled with the background color. The image is 400x300 how could i center it for all resolutions and make it stay on the same spot even when the user scrolls down?


Top
 Profile  
 
  Re: center a background
PostPosted: October 14th, 2009, 7:26 pm 

Posts: 57
<style type="text/css">
body{background: url('file.ext') fixed center no-repeat}
</style>


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

FORUMS » Client Side » HTML


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron