HTML CSS examples for CSS Widget:Header
Get horizontal alignment of headers
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> div{<!--from w ww. j a v a2 s . co m--> text-align:center; background:green; } div h1{ display:inline-block; background:red; margin:0 auto } h1:first-child{ display:inline-block; float:left } </style> </head> <body> <div> <h1>CompanyName</h1> <h1>Date TEst test test test test</h1> </div> </body> </html>