background-position
(proprietà CSS) imposta la posizione dell’immagine di sfondo dell’elemento HTML (cioè “come” deve posizionarsi; per il “dove”, fare riferimento alle proprietà top, right, bottom, left
).
Sintassi
<style> [selettore] { background-position: top | bottom left | right } </style>
valore | descrizione |
---|---|
XXX | XXX |
Esempi
<style> p { background-image: url("https://goo.gl/lyQAkk"); background-repeat: no-repeat; background-position: top right; } </style> <p>Testo con sfondo<br>Testo con sfondo</p>
Testo con sfondo
Testo con sfondo
Contenuti correlati
- CSS
- HTML
- JavaScript
- jQuery
- PHP
- SQL
- WORDPRESS
0 Comment