HTML Tutorial


 /help/HTML Help Forum   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
Help with Centering Background Image
Post new topic   Reply to topic    HTML Help Forum -> General HTML
View previous topic :: View next topic  
Author Message
lobbster



Joined: 11 Jun 2009
Posts: 2

PostPosted: Thu Jun 11, 2009 10:16 pm     Help with Centering Background Image Reply with quote

I'm trying to learn how to use an html background image. I think I've got how to keep the image from repeating. Now I want to be able to center it at the top of the page and stay centered when the browser window is resized.
Here is my sample page:
http://www.michaellobby.com/background.html

I thank you in advance for any help you can give.

Lobbster
sticks464



Joined: 31 Dec 2006
Posts: 2629

PostPosted: Thu Jun 11, 2009 10:28 pm     Reply with quote

Code:
body
{
background: url("flower02.jpg") no-repeat top center;
}
lobbster



Joined: 11 Jun 2009
Posts: 2

PostPosted: Fri Jun 12, 2009 6:12 am     HTML Background Image Reply with quote

Perfect! This is exactly what I was looking for. Thank you.
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum -> General HTML All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
DARFUR
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial