|
Setting a Larger First Letter
By Stephen Bucaro
Long ago, when printing was done by hand or Gutenburg’s type setting machine, it
featured many embellishments. The text always had margins, paragraphs where always
indented, and the first letter of the first paragraph was larger than the rest of
the text. Today's textual content has done away with these embellishments.
Although it's a good idea to do away with nonessential embellishments for quick
informal textual content, what if you want to publish fictional content on the
Web? This article shows you how to set a larger first letter for a paragraph,
which can give your story an extra touch of class.
Here, I'm assuming that you already defined the styles for your basic text. Each
of the methods described here involves placing the first letter in an html span
element. The easiest way to set a larger first letter is to define a larger
font-size for the span. The example below shows how to do that using inline style.
<span style="font-size:26px;">T</span>he judicial power of the United States,
shall be vested in one Supreme Court, and in such inferior courts as Congress may from time to time
ordain and establish. The judges, both of the supreme and inferior courts, shall hold their offices
during good behavior, and shall, at stated times, receive for their services, a compensation,
which shall not be diminished during their continuance in office. - Article 3 Section 1
of the Constitution of the United States of America.
The judicial power of the United States,
shall be vested in one Supreme Court, and in such inferior courts as Congress may from time to time
ordain and establish. The judges, both of the supreme and inferior courts, shall hold their offices
during good behavior, and shall, at stated times, receive for their services, a compensation,
which shall not be diminished during their continuance in office. - Article 3 Section 1
of the Constitution of the United States of America.
|