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!
how do I add a background color to the entire page?
Post new topic   Reply to topic    HTML Help Forum -> General HTML
View previous topic :: View next topic  
Author Message
mattyp



Joined: 14 Jun 2009
Posts: 12

PostPosted: Sun Jun 21, 2009 4:08 am     how do I add a background color to the entire page? Reply with quote

Hi,

I would like to add a light green background color to my entire web page. www.mixmygranola.com

Thanks,
Matt
sticks464



Joined: 31 Dec 2006
Posts: 2631

PostPosted: Sun Jun 21, 2009 11:16 am     Reply with quote

You can get color codes here
Then add this background rule to your body style in the stylesheet
Code:
body {
width:1000px;
margin:0 auto 0 auto;
background:#98FB98;
}

Replace the hex code 98FB98 with the hex code for the color you want.
Jetsam4996



Joined: 03 May 2008
Posts: 25

PostPosted: Sun Jul 12, 2009 3:23 pm     Reply with quote

The older way is still used, and that is to replace your opening <body> tag with this:

Code:
<body bgcolor=#000000">


and then just place the Hex code of your choice into it.

-Sam
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