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:

what i'm going for

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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -