css3 - CSS-only design for hashed border -


is possible design (the bordered edges) without using images, using css only..?

one of our designers has fired me , think might photoshop border, want avoid using image if possible.

example of border want recreate

thanks in advance tips!

yes can! amazing css3 patterns

and rough demo you.

html:

<div class='pat-ho' ></div> <div class='pat-ve' ></div> <div class='text' >text text text</div> 

css:

    .pat-ho {         position: absolute;         width:500px; height:500px;         background-color: gray;         background-image: linear-gradient(transparent 50%, rgba(255,255,255,.5) 50%);         background-size: 20px 20px;     }     .pat-ve {         position: absolute;         width:450px; height:500px;         background-color: gray;         background-image: linear-gradient(90deg, transparent 50%, rgba(255,255,255,.5) 50%);         background-size: 20px 20px;         left: 25px     }     .text {         position: absolute;         width: 470px;         height: 470px;         background: white;         top: 25px; left: 25px;     } 

update: , here more accurate demo austin pray.


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -