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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

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

android - How to create dynamically Fragment pager adapter -