Granica CSS
p {
border: 2px solid red;
border-radius: 5px;
}
naly moslih
p {
border: 2px solid red;
border-radius: 5px;
}
.your-class-name{
border: 1px solid red;
}
// border: 'width', 'style', 'color'
width:
size: px, pt, cm, em, etc.
style:
dotted, dashed, solid, double, groove, ridge, inset, outset, none, hidden
color:
red, #000, rgb(255,0,255), etc.
#example {
border-bottom: 2px solid #ccc;
}
Margin
_____________________________________________________________________
| Border |
| ____________________________________________ |
| | Padding | |
| | _________________ | |
Margin | Border | Padding | Content | Padding | Border | Margin
| | _________________ | |
| | Padding | |
| |__________________________________________| |
| Border |
|___________________________________________________________________|
Margin