Padding, Borders, Outlines, and Margins in CSS
CSS Box Model Details
Publisher: O'Reilly Media
Final Release Date: December 2015
Pages: 78

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
Table of Contents
Product Details
About the Author
Colophon
Recommended for You
Customer Reviews

REVIEW SNAPSHOT®

by PowerReviews
oreillyPadding, Borders, Outlines, and Margins in CSS
 
5.0

(based on 2 reviews)

Ratings Distribution

  • 5 Stars

     

    (2)

  • 4 Stars

     

    (0)

  • 3 Stars

     

    (0)

  • 2 Stars

     

    (0)

  • 1 Stars

     

    (0)

Reviewed by 2 customers

Displaying reviews 1-2

Back to top

 
5.0

Can't wait to get the complete ebook

By DesperateTagger

from near Munich, Germany

About Me Developer

Verified Buyer

Pros

  • Accurate
  • Concise
  • Helpful examples
  • Well-written

Cons

    Best Uses

    • Expert
    • Intermediate
    • Student

    Comments about oreilly Padding, Borders, Outlines, and Margins in CSS:

    Being a CSS novice, I spend a lot of time at the Mozilla Developer Network websites to get me started. Though this was quite helpful, I often missed the overall picture and would have been happy for more examples.
    So I looked out for an ebook on CSS that explains the concepts.
    I already own "Beginning HTML and CSS" by Rob Larsen and read it completely. Excellent reading, but I found some questions unanswered. Apparently, I needed a more comprehensive text.
    As it comes to ebooks on programming, my first choice is O'Reilly. There I found
    "CSS - the definitive Guide" by the Eric Meyer, but the current edition is from 2006!
    So I thought I'd take a chance with the excerpt "Paddings, Borders and Margins" from the upcoming new edition of the guide, and I didn't regret it!
    Although it is written clearly, it is not easy reading. That's because it is a very abstract matter, you absolutely need the examples. Thank God there are plenty of them. Sometimes, I found it pretty hard to understand when definition and example are not on the same page. On a Sony Reader, this happens quite often. Color is used to make understanding easier, but not available on an eInk display.
    On a tablet with a much bigger color display, it's excellent reading, especially with scroll mode enabled.
    (Because of the color benefit, I'm in doubt if I would buy the physical book once it is available if it wasn't printed in color.)
    I very much enjoyed the way the book is structured, it is easy to find the chapter that will help you.
    Something that is pretty remarkable: whenever it makes sense, there is an explanatory image, and that image displays nicely even on my Sony reader!
    Finally, I also bought the two other excerpts "CSS Floating" and "Basic Visual Formatting in CSS". Not having finished reading those, it seems everything I've written here holds true for them as well!
    Judging from other fields of programming where I'm more experienced, I would expect the "Definitive Guide" to be a "one-and-for-all" book ranging from intermediate to expert.

    (2 of 2 customers found this review helpful)

     
    5.0

    Unravels the myteries of the Box Model

    By Old Bok

    from Johannesburg South Africa

    About Me Developer

    Verified Buyer

    Pros

    • Accurate
    • Concise
    • Easy to understand
    • Helpful examples
    • Well-written

    Cons

    • Not Much Wrong With It

    Best Uses

    • Intermediate
    • Novice
    • Student

    Comments about oreilly Padding, Borders, Outlines, and Margins in CSS:

    I always enjoy reading Eric Meyer's explanations of CSS. He makes it all so clear and easy.
    In this book he is at his best.
    If you are baffled and bewildered by the Box Model, and I usually am, look no further.
    Here is everything you need to know in an elegant package -- or should I say box.

    Displaying reviews 1-2

    Back to top

     
    Buy 2 Get 1 Free Free Shipping Guarantee
    Buying Options
    Immediate Access - Go Digital what's this?
    Ebook:  $6.99
    Formats:  DAISY, ePub, Mobi, PDF
    Print & Ebook:  $8.79
    Print:  $7.99