• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 7. Creating Spacing for Text > Mixing Units of Measurement

Mixing Units of Measurement

Adding margins and padding with units of measurements other than those used for the column widths—such as pixel padding on em columns or em margin between liquid columns—takes more work than simply increasing or decreasing widths to add on space for the new margins or padding. Mixing units of measurement between width, margin, and padding is like creating hybrid layouts: you lose the ability to easily add or subtract values from other elements, because each value is measured in a different unit.

For instance, if you have a floated column set to 10 ems wide, and you give it 20 pixels of padding on each side, how big a side margin should you set for the adjacent column to make room for the floated column? You don’t know what 10 ems plus 20 pixels is, so you can’t set a matching margin value.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint