HTML Diff
0 added 0 removed
Original 2026-01-01
Modified 2026-03-09
1 <p>You can use multiple backgrounds to set multiple backgrounds for one element.</p>
1 <p>You can use multiple backgrounds to set multiple backgrounds for one element.</p>
2 <p>We will cover this and other options in the continuation of this section, “<a>Frames and Backgrounds: An Immersion Course</a>”.</p>
2 <p>We will cover this and other options in the continuation of this section, “<a>Frames and Backgrounds: An Immersion Course</a>”.</p>
3 <p>Now let’s take a look at one old and reliable technique for creating multiple backgrounds.</p>
3 <p>Now let’s take a look at one old and reliable technique for creating multiple backgrounds.</p>
4 <p>The essence of the technique is to nest elements one inside the other and make them the same size, and then set a background for each element. That is, each element functions as one layer of the background.</p>
4 <p>The essence of the technique is to nest elements one inside the other and make them the same size, and then set a background for each element. That is, each element functions as one layer of the background.</p>
5 <p>The backgrounds of the nested elements overlap each other: the deeper the element, the higher its background.</p>
5 <p>The backgrounds of the nested elements overlap each other: the deeper the element, the higher its background.</p>
6 <p>By the way, for the sake of convenience, it is better to assign a width to the outer element (since all nested elements will have the same width) and a height to the deepest element, since it will stretch to the height of all its parents.</p>
6 <p>By the way, for the sake of convenience, it is better to assign a width to the outer element (since all nested elements will have the same width) and a height to the deepest element, since it will stretch to the height of all its parents.</p>