Pro HTML5 and CSS3 Design Patterns

(avery) #1

CHAPTER 6 ■ BOX MODELS PROPERTIES


Padding


CSS


*.before { padding:0; }

*.after { padding-top:10px; padding-bottom:0;
padding-left:30px; padding-right:10px; }

/* Nonessential rules are not shown.
HTML code is omitted to allow the example to fit on one page. */
Free download pdf