// page information $page_type = "t"; $page_title = "CSS Padding Properties"; $page_keywords = "css, css parameters, padding parameters, padding properties, padding-top, padding-right, padding-bottom, padding-left, padding"; $page_description = "CSS padding parameters and properties tutorial. Find more tutorials and scripts at TheScripts.com, a programming and software development resource, directory and community."; $page_articletitle = "Padding Properties"; $page_next_url = "/clientsidescripting/dhtml/css/tutorials/cssparameters/page7.html"; $page_next_anchor = "Other Properties"; $page_prev_url = "/clientsidescripting/dhtml/css/tutorials/cssparameters/page5.html"; $page_prev_anchor = "Margin Properties"; $page_author = "Mark Hardy"; $page_byline = "Administrator, TheScripts.com"; // site header include ($_SERVER["DOCUMENT_ROOT"]."/header.php"); // begin html ?>
padding-top
This parameter lets you specify the padding (like cellpadding with normal tables) at the top of an element. The padding will have the same background colour as the element does.
H1 {padding-top: 5px;}
padding-right
This parameter lets you specify the padding (like cellpadding with normal tables) to the right of an element. The padding will have the same background colour as the element does.
H1 {padding-right: 5px;}
padding-bottom
This parameter lets you specify the padding (like cellpadding with normal tables) at the bottom of an element. The padding will have the same background colour as the element does.
H1 {padding-bottom: 5px;}
padding-left
This parameter lets you specify the padding (like cellpadding with normal tables) to the left of an element. The padding will have the same background colour as the element does.
H1 {padding-left: 5px;}
padding
This parameter lets you specify the general padding (like cellpadding with normal tables) on all sides of the element. The padding will have the same background colour as the element does.
H1 {padding: 10px;}