HTML CSS examples for CSS Layout:Text
Placing letters over each other / centering letters in a container
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> a {<!-- w ww . j a v a 2 s. c om--> text-align:center; display:block; background-color:Chartreuse; width:51px; height:41px; padding:6px 0; border-radius:51px; line-height:21px; } span { display:block; } </style> </head> <body> <a href="#"> <span>L</span> <span>L</span> </a> </body> </html>