HOME
TUTORIAL
∇
Applets
Comments
CSS
Document Tags
Embed
Fonts
Forms
Frames
Images
Lines & Paragraphs
Links
Lists
Logical Tags
Scripts
Sounds
Symbols
Tables
Weird Tags
FORUM
∇
HTML Help
Web Design
Programming Languages
Web Hosting
Domain Names
Marketing
Community
QUICK LIST
CSS
HTML Help Forum
FAQ
Search
Memberlist
Register
Profile
Log in to check your private messages
Log in
Register
- Not registered yet? Got something to say?
Join HTML Code Tutorial
!
how do I add a background color to the entire page?
HTML Help Forum
->
General HTML
View previous topic
::
View next topic
Author
Message
mattyp
Joined: 14 Jun 2009
Posts: 12
Posted: Sun Jun 21, 2009 4:08 am
how do I add a background color to the entire page?
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
Posted: Sun Jun 21, 2009 11:16 am
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
Posted: Sun Jul 12, 2009 3:23 pm
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:
All Posts
1 Day
7 Days
2 Weeks
1 Month
3 Months
6 Months
1 Year
Oldest First
Newest First
HTML Help Forum
->
General HTML
All times are GMT - 8 Hours
Page
1
of
1
Jump to:
Select a forum
Announcements
----------------
Announcements
HTML Help
----------------
Member Tutorials
General HTML
HTML Form
HTML Table
HTML Frame
CSS
DHTML
SSI
MySpace
HTML Tools
Web Design
----------------
Images & Graphics
Templates
Multimedia
Programming Languages
----------------
Javascript
PHP
Perl
ASP
Others
Web Hosting
----------------
Free Hosting
Shared Hosting
Dedicated, Managed, and Co-located Hosting
Hosting Business and Reseller Hosting
Domain Names
----------------
Registrars
Tools
For Sale, Wanted, & Appraisals
Expired Domains
Monetization
Legal Issues
Marketing
----------------
SEO
PPC
Affiliate Marketing
Other Internet Marketing
Community
----------------
Miscellaneous
Website Review
Introduce Yourself
Feedback
Praise
Errors
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
Your Ad Here
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
DARFUR
Get a
Stop the Genocide
poster at
SaveDarfur.org
.
Also see
Eyes on Darfur
.
HOSTING / DESIGN
$1.99 Domain Registration
Cheap Web Hosting
Website Templates
MAKE MONEY
Sell Domain Names
Sell Website Templates
Home
|
Tutorials
|
Forum
|
Quick List
|
Link Directory
|
About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial