Reply
Center a body background on different resolutions?
Old 07-13-2006, 01:29 AM Center a body background on different resolutions?
manthu64's Avatar
Average Talker

Posts: 27
Name: Manthan Dudani
Location: India
Hi All,

How r u doing ? I have one problem regarding body background centering.

Is it possible to center a body background on different resolutions ???

Thanks,
manthu64 is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 07-13-2006, 02:00 AM Re: Center a body background on different resolutions?
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,945
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Code:
body {
     background: URL(your_background_here) no-repeat fixed center center;
}
Put that into your CSS. That'll center the image and keep it fixed when the page scrolls.

Last edited by ADAM Web Design : 07-13-2006 at 02:02 AM.
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 07-13-2006, 06:12 AM Re: Center a body background on different resolutions?
manthu64's Avatar
Average Talker

Posts: 27
Name: Manthan Dudani
Location: India
hey thanks ADAM designer. I had try it.

surpriselly it is working. thanks bro.

Thanks.
manthu64 is offline
Reply With Quote
View Public Profile
 
Old 07-13-2006, 02:04 PM Re: Center a body background on different resolutions?
vangogh's Avatar
Post Impressionist

Posts: 8,813
Name: Steven Bradley
Location: Boulder, Colorado
Shouldn't be any surprise. Adam knows his stuff.
__________________
l Search Engine Friendly Web Design | Van SEO Design
l Tips On Marketing, SEO, Design, and Development | TheVanBlog
l Custom WordPress Themes
| Small Business Forum
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Reply     « Reply to Center a body background on different resolutions?
 

Thread Tools

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.14625 seconds with 12 queries