Creating space between an element and its border


I’m trying to create a spacing between an element and its outermost border. (EDIT: he wants to do two borders between the element proper and the outside of the box-model box. This gives him the room of using the margin, border and padding to achieve his goal). So far my searches in Google and here produced no solution to this.

I am trying to avoid using images to acheive this.


I ended up using the multiple css technique (here), and using border-color: transparent to create a transparent spacing between the element and its border.

Answered By – GZaidman

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published