O'Reilly logo

Eric Meyer on CSS: Mastering the Language of Web Design by Eric A. Meyer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Styling the Document

One of the most important things to know when styling this card is the size of the base image. In this case, it’s 575 pixels wide by 384 pixels tall. In Web design, usually the width is more important than the height because elements tend to be made as tall as they need to be to contain their own content. This means that authors rarely have to worry about the height of an element, and they spend much more time worrying about how wide or narrow an element will be. We’ll soon see that when it comes to positioning, height can play an important role in our thinking as well.

Strict and Loose Rendering

When it comes to positioning ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required