p {
border-style: solid;
border-color: red;
border-width: 5px;
}
/* You can also write above code in one line */
p {
border: 5px solid red;
}
.borderstyles{
border-style: none;
border-style: hidden;
border-style: dotted;
border-style: dashed;
border-style: solid;
border-style: double;
border-style: groove;
border-style: inset;
border-style: ridge;
border-style: outset;
border-style: initial;
border-style: inherit;
}
/* The black border occurs if you didn't set the border style */
button {
border-style: solid;
}
The border-style property sets the style of an element's four borders.
Code Example |
---|
Css :: how fixed image at top |
Css :: add background in text |
Css :: import scss |
Css :: losange css |
Css :: translate in 3d css |
Css :: align links to right css |
Css :: translate css property |
Css :: CSS Reference element height |
Css :: showing two iframes side by side |
Css :: css stands for |
Css :: how to color links |
Css :: li move to left |
Css :: css clearfix for floats with display table and clear both |
Css :: fonts for css |
Css :: include css typo3 |
Css :: text-align attribute in css |
Css :: learn css animation |
Css :: img grows up onmouseover css |
Css :: aclocal: not found |
Css :: css video background filter darken |
Css :: memebuat html dan css login instagram |
Css :: scss to css |
Css :: css quitar el icono de lista |
Css :: make element scale to page |
Css :: CSS - The Class Selectors - Element |
Css :: how to make grid css |
Css :: css clamp vs media queries |
Css :: freeze input text css |
Css :: css loop |
Css :: blurred background |