Q:

Display border of an element without using border property

I want to show a border type look for an element but without using the border property. Is this possible?

A:

CSS3 has two options you could use: outline and box-shadow.
Or, if you require old browser support, then use a background div to create the border.

A:

Another option is
<div style="background-color: black; padding: 2px">
    <div style="background-color: white">
         hello!! 
    </div>
</div>

Fiddler demo

