Granica CSS
p {
border: 2px solid red;
border-radius: 5px;
}
naly moslih
p {
border: 2px solid red;
border-radius: 5px;
}
div {
border: 1px solid rgba(255, 0, 0, .5);
-webkit-background-clip: padding-box; /* for Safari */
background-clip: padding-box; /* for IE9+, Firefox 4+, Opera, Chrome */
}
.topBorder {
/* width style color */
border-top: 5px solid black;
}
hr {
border:none;
border-top:1px dashed #f00;
color:#fff;
background-color:#fff;
height:1px;
width:50%;
}
.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.
Margin
_____________________________________________________________________
| Border |
| ____________________________________________ |
| | Padding | |
| | _________________ | |
Margin | Border | Padding | Content | Padding | Border | Margin
| | _________________ | |
| | Padding | |
| |__________________________________________| |
| Border |
|___________________________________________________________________|
Margin