smarttechy smarttechy - 6 months ago 15
CSS Question

How to make hr designer

Want to make hr like this img1

enter image description here
and

img2

enter image description here

don't known how to achieve this.

Answer

I'm pretty sure that using an <hr> is not the recommended way to do that. You could just try:

<div><img src='http://i.stack.imgur.com/Llk2U.png'><div>

Or use a css class to make it a bit more elegant:

.whybuyfromus
{
  background: url('http://i.stack.imgur.com/Llk2U.png') no-repeat;
  height: 101px;
  background-size: contain;
}
  
<div class="whybuyfromus" />

Comments