Javascript Reference
Categories: STYLE

javascript STYLE padding

@Aug. 15, 2009, 12:42 p.m.
padding Firefox/Netscape/NN 6 IE 4 Chrome/Safari/DOM 2  

 

Read/Write  

This is a shortcut property that can set the padding widths of up to four edges of an element with one statement. Padding is space that extends around the content box of an element up to but not including any border that may be specified for the element. Padding picks up the background image or color of its element. As you add padding to an element, you increase the size of the visible rectangle of the element without affecting the content block size. You may supply one to four space-delimited padding values. The number of values determines which sides receive the assigned padding.

 
Example
 
document.getElementById("logoWrapper").style.padding = "3px 5px";
 
Value

This property accepts one, two, three, or four space-delimited values inside one string, depending on how many and which edges you want to pad. See the padding attribute listing  for complete details on how the number of values affects this property. Values for padding widths can be lengths, percentages of the next outermost element size, or the auto constant.

 
Default

0

A new book by Tim Elfrink of the Miami New Times and Gus Garcia- Roberts of New York Newsday indicates that Major League Baseball gave Rodriguez an exemption to use performance enhanching drugs back in 2007 and 2008 <a href=https://cialiss.quest>cialis super active</a> Medications may choose to go
uphorge - 3 months
<a href=https://cialiswwshop.com/>canadian pharmacy cialis</a>
Iroveak - 2 years
<a href=https://vsviagrav.com>generic viagra express shipping
Iroveak - 3 years

Powered by Linode.