276
Designing and Crafting Core Pages Part II
Overcoming Line-Spacing Difficulties
Line spacing is a major issue and a common problem for Web designers. A design often calls for lines to be
tightly spaced, but also to be of various sizes. If you use the break tag to separate your lines, you get the tight
spacing required, but you won??™t be able to make each line a different heading size. As far as HTML and your
browser are concerned, the text is still one block element, no matter how many line breaks are inserted. If, on
the other hand, you make each line a separate paragraph or heading, the line spacing is unattractively open.
You can use one of several workarounds for this problem. First, if you??™re using line breaks, you can alter the
size of each line by selecting it and choosing a different font size, either from the Property inspector or the
Text ??? Size menu.
A second option renders all the text as a graphics object and inserts it as an image. This gives you total control
over the font??™s appearance and line spacing, at the cost of added download time.
For a third possible solution, look at the section on preformatted text in this chapter. Because you can apply
styles to a preformatted text block (which can include line breaks and extra whitespace), you can alter the
size, color, and font of each line, if necessary.
Pages:
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579