Welcome to Bucaro TecHelp!

Bucaro TecHelp
Maintain Your Computer and Use it More Effectively
to Design a Web Site and Make Money on the Web

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

Victims of Sandy Hook

Stop the Slaughter of Innocents. Congress is bought and paid for by gun lunatics and gun promotion groups. If you want to live in a safe America, help buy Congress back for America. Send a donation to Mayors Against Illegal Guns, 909 Third Avenue, 15th Floor New York, NY 10022

Set an Element's Padding

Padding is the space between the element's content and the element's border. Use the padding property to set an elements padding.

Padding set to 12 pixels

<span style="border-style: solid; border-width: 1px; background-color: #ffff00; padding: 12px;">Padding set to 12 pixels</span>

Use the padding-top property to set just the top padding:

Top padding set to 12 pixels

<span style="border-style: solid; border-width: 1px; background-color: #ffff00; padding-top: 12px;">Top padding set to 12 pixels</span>

Use the padding-right property to set just the right side padding:

Right padding set to 24 pixels

<span style="border-style: solid; border-width: 1px; background-color: #ffff00; padding-right: 24px;">Right padding set to 24 pixels</span>

Use the padding-bottom property to set just the bottom padding:

Bottom padding set to 12 pixels

<span style="border-style: solid; border-width: 1px; background-color: #ffff00; padding-bottom: 12px;">Bottom padding set to 12 pixels</span>

Use the padding-left property to set just the left side padding:

Left padding set to 24 pixels

<span style="border-style: solid; border-width: 1px; background-color: #ffff00; padding-left: 24px;">Left padding set to 24 pixels</span>

Use a shortcut to set the padding for all four sides to different values

padding:10px 20px 5px 25px;

<span style="border-style: solid; border-width: 1px; background-color: #ffff00; padding: 10px 20px 5px 25px;">padding:10px 20px 5px 25px;</span>

Note that the order of values for the shortcut is not the standard left, top, right, bottom. Instead it's: top, right, bottom, left.

RSS Feed RSS Feed


Follow Stephen Bucaro Follow @Stephen Bucaro


Web Design Sections

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