<!DOCTYPE HTML> <html> <head> <style> span { display:inline-block; outline:2px solid blue; } b { display:inline-block; } </style> </head> <body> <div><span><b style="display:inline-block; width:100px;height:100px;">H</b></span></div> </body> </html>