html - Making two squares with :before class -
i'm trying make 2 squares before headings. know how make single square before class, dont know how make 2 isn't same width.
what i'm going looks this:
you can achieve :before
fiddle does.
html
<h1>reference</h1>
css
h1{ font-size: 24px; color:blue; } h1:before{ content:""; display:inline-block; margin-right:10px; height:30px; width:5px; border-left:solid 10px blue; border-right:solid 5px blue; vertical-align:top; }
Comments
Post a Comment