<!DOCTYPE HTML> <html> <head> <style> body > div { border:1px solid black; margin:1em; } div:first-line { color:green; } div:first-letter { color:lime; } .f:first-letter { float:left; } </style> </head> <body> <div>Hello<br>Kitty</div> <div class="f">Hello<br>Kitty</div> <div>Hello<br>Kitty</div> <div class="f">Hello<br>Kitty</div> <div>Hello Hello<br>Kitty</div> <div class="f">Hello Hello<br>Kitty</div> </body> </html>