CSS Master

(Primo) #1
Figure 1.19. Using the ::first-line pseudo-element

Itispossibletoforcetheendofafirstlinebyusingabrorhrelement,asshown
inFigure1.20.Unfortunately,thisisfarfromperfect.Ifyourelementisonlywide
enoughtoaccommodate 72 characters,addinga<br>tagafterthe80thcharacter
won’taffectthe::first-linepseudo-element.You’llendupwithanoddlyplaced
linebreak.

32 CSS Master

Free download pdf