O'Reilly logo

eBay Auction Templates Starter Kit by Michael Miller

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

Working with Widths and Margins

We’ll end this chapter with a handful of templates that play around with text widths and margins. Why tinker with margins, you ask? Because putting a little white space here and there or using an inset for selected page elements helps both to divide your listing into separate sections and to subtly move the eye toward the most important elements on the page.

When it comes to making a text element wider or narrower, or insetting it from the left or right margin, we have to turn to cascading style sheet code. CSS lets us use margin-left and margin-right properties, which set the left and right margins for an element—something you can’t easily do with traditional HTML.

Template 6.27. Narrow Centered Description

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