In ogni elemento è possibile indicare una immagine di sfondo
(background-image) e se e come ripetere questa immagine (background-repeat).
<style type="text/css">
div#backgroundRepeat {
background-image: url("images/faccina.png");
background-repeat: repeat;
}
div#backgroundNoRepeat {
background-image: url("images/faccina.png");
background-repeat: no-repeat;
}
<style>
<div id="backgroundRepeat">
testo con immagine
di sfondo ripetuta
</div>
<div id="backgroundNoRepeat">
non ripetuta
</div>
|
testo con immagine di sfondo ripetuta
background-repeat: repeat
non ripetuta
background-repeat: no-repeat
|