HTML CSS IMAGES LINKS | |||||
CSS → Borders
The area sorounding every element in an HTML document can be defined as a rectangular box which has a content area surrounded by padding, a border and margins.
The border properties specify the width, color, and style of the border area of a box. These properties apply to all elements.
border-width
border-color border-style <div style="border:1px #000 solid; padding:15px">
<div style="border-width:1px; border-color:#000; border-style:solid; padding:15px">
For the width of the border, other than using pixels measurments you may use one of the following values:
Border StyleBorder style are a bit more tricky. My advice would be to stick to the simples- solid.
Taking sidesYou may control all or part of the four sides of a border:
border-top
and the code...
Borders can be applied to all elements. |
|||||
back ↑ |