OLD | NEW |
(Empty) | |
| 1 <html> |
| 2 <head> |
| 3 <style> |
| 4 h1 { margin: 8px 0px; font-size: 18px; } |
| 5 div, p, ul { margin: 0px; font-size: 14px; } |
| 6 .firstLetterBlock:first-letter, ul li:first-letter { font-size:16px; font-we
ight: bold; color: red; } |
| 7 ul li { list-style-type: none; } |
| 8 </style> |
| 9 </head> |
| 10 <body> |
| 11 <div> |
| 12 <h1>Paragraphs with only one character</h1> |
| 13 <div> |
| 14 <p class="firstLetterBlock">A</p> |
| 15 <p class="firstLetterBlock"><b>B</b></p> |
| 16 <p class="firstLetterBlock"><em><b>C</b></em></p> |
| 17 </div> |
| 18 <h1>Paragraphs with leading spaces</h1> |
| 19 <div> |
| 20 <p class="firstLetterBlock"> Appetizers</p> |
| 21 <p class="firstLetterBlock"> <a href="#">Starters:</a> Soups & Salads
</p> |
| 22 <p class="firstLetterBlock"> Main Course: <a href="#">Pasta</
a></p> |
| 23 <p class="firstLetterBlock"> <a ref="#"> </a> Dessert: <a
href="#">Pasta</a></p> |
| 24 </div> |
| 25 <h1>Multiple paragraphs inside nested blocks (only the first one should get
the first-letter)</h1> |
| 26 <div class="firstLetterBlock"> |
| 27 <div> |
| 28 <p>“(A)”: Appetizers</p> |
| 29 <p>“(<a href="#">B</a>)”: <a href="#">Starters:</a> Soups &
Salads</p> |
| 30 <p>“<b>(</b><a href="#">C</a><b>)</b>”: Main Course: <a href
="#">Pasta</a></p> |
| 31 </div> |
| 32 </div> |
| 33 <h1>List with spaces after the leading dot</h1> |
| 34 <ul> |
| 35 <li>· Appetizers</li> |
| 36 <li>· <a href="#">Starters:</a> Soups & Salads</li> |
| 37 <li>· Main Course: <a href="#">Pasta</a></li> |
| 38 </ul> |
| 39 <h1>List without spaces after the leading dot</h1> |
| 40 <ul> |
| 41 <li>·Appetizers</li> |
| 42 <li>·<a href="#">Starters:</a> Soups & Salads</li> |
| 43 <li>·Main Course: <a href="#">Pasta</a></li> |
| 44 </ul> |
| 45 <h1>first-letter with multiple punctuation characters</h1> |
| 46 <ul> |
| 47 <li>“(A)”: Appetizers</li> |
| 48 <li>“(<a href="#">B</a>)”: <a href="#">Starters:</a> Soups & S
alads</li> |
| 49 <li>“<b>(</b><a href="#">C</a><b>)</b>”: Main Course: <a href=
"#">Pasta</a></li> |
| 50 <li><q><b>(</b><a href="#">D</a><b>)</b></q>: Desserts</li> |
| 51 </ul> |
| 52 </div> |
| 53 </body> |
| 54 </html> |
OLD | NEW |