The padding-top property is used in CSS and certain HTML tags. It can only be used with an available background-color or background-image property, as it provides the information on the padding on the top side of the background color or image around the text. Its values can be entered in pixels or percentages. Pixels generate more accurate results, where percentages often make the padding too large. To specify padding around the entire object, use padding. To specify a different padding for each side of the object, use padding-bottom, Choose as Type
Choose as Property (p)
Choose as Value (o)-->
Attributes | Values |
---|
rdfs:label
| |
rdfs:comment
| - The padding-top property is used in CSS and certain HTML tags. It can only be used with an available <a href="/mediawiki/Background-color" title="Background-color">background-color</a> or <a href="/mediawiki/Background-image" title="Background-image">background-image</a> property, as it provides the information on the padding on the top side of the background color or image around the text. Its values can be entered in pixels or percentages. Pixels generate more accurate results, where percentages often make the padding too large. To specify padding around the entire object, use <a href="/mediawiki/Padding" title="Padding">padding</a>. To specify a different padding for each side of the object, use <a href="/mediawiki/Padding-bottom" title="Padding-bottom">padding-bottom</a>, <a href="/med
|
dcterms:subject
| |
abstract
| - The padding-top property is used in CSS and certain HTML tags. It can only be used with an available <a href="/mediawiki/Background-color" title="Background-color">background-color</a> or <a href="/mediawiki/Background-image" title="Background-image">background-image</a> property, as it provides the information on the padding on the top side of the background color or image around the text. Its values can be entered in pixels or percentages. Pixels generate more accurate results, where percentages often make the padding too large. To specify padding around the entire object, use <a href="/mediawiki/Padding" title="Padding">padding</a>. To specify a different padding for each side of the object, use <a href="/mediawiki/Padding-bottom" title="Padding-bottom">padding-bottom</a>, <a href="/mediawiki/Padding-right" title="Padding-right">padding-right</a>, or <a href="/mediawiki/Padding-left" title="Padding-left">padding-left</a>. To apply this in an HTML document, use: Padded text. That will produce: Padded text. Padded text. That will produce: Padded text. To apply this in CSS, in the h1 element for example, use: h1 { background-color:black; color:white; padding-top:5px; }
|