border-top (proprietà CSS) imposta, con sintassi abbreviata, le proprietà (spessore, tipo, colore) del bordo superiore dell’elemento HTML, nel seguente ordine: border-width, border-style (richiesto), border-color.
Sintassi
[selettore] {
border-top: [ [border-width] [border-style] [border-color] ];
}
| valore | descrizione |
|---|---|
| XXX | XXX |
Esempi
<style>
#border-top { border-top: 5px solid red;}
</style>
<p id="border-top">Test</p>
Test
Contenuti correlati
- CSS
- HTML
- JavaScript
- jQuery
- PHP
- SQL
- WORDPRESS
0 Comment