background-attachment (proprietà CSS) stabilisce se l’immagine di sfondo sia fissa o scorra con il resto della pagina.
Sintassi
[selettore] {
background-attachment: scroll | fixed | local
initial | inherit (predefinito)
}
| valore | descrizione |
|---|---|
| XXX | XXX |
Esempi
<style>
.bg_abbreviato {
background-image: url("https://goo.gl/lyQAkk");
background-repeat: no-repeat;
background-attachment: scroll;
}
</style>
<div class="bg_abbreviato ">
<p> Testo con sfondo<br>Testo con sfondo</p>
<p>Testo con sfondo<br>Testo con sfondo</p>
<p>Testo con sfondo<br>Testo con sfondo</p>
</div>
Testo con sfondo
Testo con sfondo
Testo con sfondo
Testo con sfondo
Testo con sfondo
Testo con sfondo
Contenuti correlati
- CSS
- HTML
- JavaScript
- jQuery
- PHP
- SQL
- WORDPRESS
0 Comment