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 ... |
Get Eric Meyer on CSS: Mastering the Language of Web Design 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.