Often in newspaper articles, such as those in the Wall Street Journal, the first line of text in an article is displayed in bold lettering and all capitals. CSS1 has included this capability as a pseudo-element. A first-line pseudo-element may be used in any
block-level element (such as P, H1, etc.). An example of a first-line pseudo-element would be:
P:first-line {
font-variant: small-caps;
font-weight: bold }
0 komentar
Posting Komentar