przewiń do treści

HTML, XHTML i CSS. Praktyczne projekty. Wydanie II

Włodzimierz Gajda

html {
    background: rgb(255,255,183);
}
p {
    padding: 40px 40px 140px 40px;
    background: url('wzor.png') center bottom no-repeat;
}
#loremipsum {
    background: url('lorem-ipsum.png');
    width: 222px;
    height: 59px;
}
#dolorsitamet {
    background: url('dolor-sit-amet.png');
    width: 254px;
    height: 63px;
}
#quamurna {
    background: url('quam-urna.png');
    width: 206px;
    height: 53px;
}
...
<h1 id="loremipsum"></h1>
<p>
Lorem ipsum dolor sit amet...
</p>

<h2 id="dolorsitamet"></h2>
<p>
Curabitur non turpis...
</p>

<h3 id="quamurna"></h3>
<p>
Lorem ipsum dolor sit amet...
</p>

Listing 31.10. Tła elementów p, h1, h2 oraz h3

Rozdział 31. Właściwości CSS dotyczące tła

listing-31-10.txt