CSS2

Background
Background Background-attachment Background-color Background-image Background-position Background-repeat
Border
Border Border-bottom Border-bottom-color Border-bottom-style Border-bottom-width Border-color Border-left Border-left-color Border-left-style Border-left-width Border-right Border-right-color Border-right-style Border-right-width Border-style Border-top Border-top-color Border-top-style Border-top-width Border-width
Classification
Classification Clear Cursor Display Float Positon Visibility
Dimension
Dimension Height Line-height Max-height Max-width Min-height Min-width Width
Font
Font Font-family Font-size Font-size-adjust Font-stretch Font-style Font-variant Font-weight
Generated Content
Generated Content Content Counter-increment Counter-reset Quotes
List and Marker
List List-style List-style-image List-style-position List-style-type
Margin
Margin Margin-bottom Margin-left Margin-right Margin-top
Outline
Outline Outline-color Outline-style Outline-width
Padding
Padding Padding-bottom Padding-left Padding-right Padding-top
Positioning
Positioning Bottom Clip Left Overflow Position Right Top Vertical-align Z-index
Table
Table Border-collapse Border-spacing Caption-side Empty-cells Table-layout
Text
Text Color Direction Line-height Letter-spacing Text-align Text-decoration Text-indent Text-transform White-space Word-spacing
Pseudo-classes
Pseudo-classes Active Focus Hover Link Visited First-child Lang
Pseudo-elements
Pseudo-elements First-letter First-line Before After
!important

## Padding

Свойството padding е кратко свойство за задаване на всички padding в една декларация. .

### Пример:

h1 {padding: 10px}
the padding will be 10px on all four sides

h1 {padding: 10px 2%}
top and bottom padding will be 10px, left and right padding will be 2% of the width of the closest element.

h1 {padding: 10px 2% 15px}
top padding will be 10px, left and right padding will be 2% of the width of the closest element, bottom padding will be 15px

h1 {padding: 10px 2% 15px 20px}
top padding will be 10px, right padding will be 2% of the width of the closest element, bottom padding will be 15px, left padding will be 20px

### Възможни стойности:

Стойност | Описание
--- | ---
padding-top padding-right padding-bottom padding-left | Настройва padding. Стойностите се задават в % (определя padding в % от общата височина/ширина на затварящия елемент), length (определя фиксиран padding). Стойност по подразбиране: Не е зададена

### Свойства на padding:

Свойство | Описание | Стойност | IE | F | N | W3C
--- | --- | --- | --- | --- | --- | ---
padding | Кратко свойство за задаване на всички свойства на padding в една декларация. | padding-top padding-right padding-bottom padding-left | 4 | 1 | 4 | 1
padding-bottom | Задава долен padding на елемента. | length % | 4 | 1 | 4 | 1
padding-left | Задава ляв padding на елемента. | length % | 4 | 1 | 4 | 1
padding-right | Задава десен padding на елемента. | length % | 4 | 1 | 4 | 1
padding-top | Задава горен padding на елемента. | length % | 4 | 1 | 4 | 1

Back To Top

Copyright © 2007 RARO Design & Develop