
Padding, Borders, Outlines, and Margins in CSS
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
The ability to apply margins, borders, and padding to any web page element is one of the things that sets CSS so far above traditional markup. With this practical guide, you will not only learn how to use these properties to lay out your document, but also how to change and control the appearance of any element on the page.
Short and sweet, this short book is an excerpt from the upcoming fourth edition of CSS: The Definitive Guide. When you purchase either the print or the ebook edition of Padding, Borders, Outlines, and Margins in CSS, you'll receive a discount on the entire Definitive Guide once it's released. Why wait? Learn how to bring life to your web pages now.
- Understand the CSS box model, including the way different properties relate to one another
- Use tricks for defining padding values, including inline element padding
- Explore border width, style, and color, plus the use of border images
- Learn how to use outlines: presentational elements that won't affect layout
- Dive into the use of margins, including the way top and bottom margins collapse
More details
Other editions
Additional editions

Content
- Intro
- Copyright
- Table of Contents
- Preface
- Conventions Used in This Book
- Safari® Books Online
- How to Contact Us
- Padding, Borders, Outlines, and Margins
- Basic Element Boxes
- Width and Height
- Padding
- Replicating Values
- Single-Side Padding
- Percentage Values and Padding
- Padding and Inline Elements
- Padding and Replaced Elements
- Borders
- Borders with Style
- Border Widths
- Border Colors
- Shorthand Border Properties
- Global Borders
- Borders and Inline Elements
- Image Borders
- Outlines
- Outline Styles
- Outline Width
- Outline Color
- How They Are Different
- Margins
- Length Values and Margins
- Percentages and Margins
- Single-Side Margin Properties
- Margin Collapsing
- Negative Margins
- Margins and Inline Elements
- Summary
- About the Author
System requirements
File format: PDF
Copy-Protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (only limited: Kindle).
The file format PDF always displays a book page identically on any hardware. This makes PDF suitable for complex layouts such as those used in textbooks and reference books (images, tables, columns, footnotes). Unfortunately, on the small screens of e-readers or smartphones, PDFs are rather annoying, requiring too much scrolling.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our eBook Help page.