Welcome to Bucaro TecHelp!

Bucaro TecHelp
HTTPS Encryption not required because no account numbers or
personal information is ever requested or accepted by this site

About Bucaro TecHelp About BTH User Agreement User Agreement Privacy Policy Privacy Site Map Site Map Contact Bucaro TecHelp Contact RSS News Feeds News Feeds

Set the Background Color

Use the background-color property to set the background color for an element. You can define the color by using the color name, hexadecimal notation, or the rgb tripplet method.

Background color set to #00ff00 - hexadecimal notation for "green"

Color defined by hexadecimal notation:

<p style="background-color:#00ff00">Background color set to #00ff00 - hexadecimal notation for "green"</p>

Color defined by color name:

<p style="background-color:green;">Background color set using color name</p>

Color defined by using rgb tripplet:

<p style="background-color:rgb(0,255,0)">Background color set using rgb tripplet</p>

To Set the Background Color of a Webpage:

<body style="background-color:#00ff00">

To Set the Background Color of a Form:

<form style="border-style: solid; border-width: 1px; padding: 4px; background-color:#00ff00">
Password: <input type="text">
<input type="button" value="Submit">
</form>

Password:

More CSS Quick Reference:
• Set the Font Style
• Set the Text Decoration
• Set an Element's Display Property
• nth-child Selector
• Vertical Align an Element
• Set Text Justification
• Set an Element's Overflow
• How to Define and Apply a Style Class
• Set The Cursor Style
• Use Image for List Item Bullets

RSS Feed RSS Feed

Follow Stephen Bucaro Follow @Stephen Bucaro



Fire HD
[Site User Agreement] [Privacy Policy] [Site map] [Search This Site] [Contact Form]
Copyright©2001-2024 Bucaro TecHelp 13771 N Fountain Hills Blvd Suite 114-248 Fountain Hills, AZ 85268