Understanding Layers

CSS layers or div elements are boxes of content on a Web page. Unlike “flat” elements such as table cells, you can stack layers one atop another and position them anywhere on the screen (see Figure 10.2). In this respect, layers are like the windows on your desktop.

Figure 10.2. CSS layers are boxes of content. Unlike table cells, you can stack them and position them freely on the page.

GEEKSPEAK

A layer or div element is a CSS-based box of content on a Web page. Unlike flat elements such as table cells, you can stack layers one atop another and position them anywhere on the screen.

It gets better. With ...

Get Web Design Garage now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.