margin-top (proprietà CSS) imposta la larghezza del margine superiore dell’elemento HTML.
Sintassi
[selettore] {
margin-top: [valore];
}
| valore | descrizione |
|---|---|
| XXX | XXX |
Esempi
<style>
.margin_top {
margin-top:100px;
border: 3px solid yellow;
}
</style>
<p class="margin_top">Test</p>
Test
Contenuti correlati
- CSS
- HTML
- JavaScript
- jQuery
- PHP
- SQL
- WORDPRESS
0 Comment