1

I want this kind of border on an div, there is a way to make it?

border type

I tried putting an image background on a div, but is not functional for responsive purposes:

.center-social-networks {
    background: url("http://cosmoscreativeagency.com/imagenes/linear_rectangle.png") no-repeat;
    background-size: 300px auto;
    width: 100%;
    height: 200px;
}
<div class="center-social-networks"></div>
Kenny Amaro
  • 473
  • 1
  • 3
  • 14

2 Answers2

0

Try this... by setting background-size to 100% 100%

.center-social-networks {
    background: url("http://cosmoscreativeagency.com/imagenes/linear_rectangle.png") no-repeat;
    background-size: 100% 100%;
    width: 100%;
    height: 200px;
}
<div class="center-social-networks"></div>
Oscar Siauw
  • 483
  • 2
  • 8
0

I was looking for a property who makes me set my own border type, I found border-image, with this new css3 property I just can specy a route for an image, this property makes me set my own border type.

example below:

.test {
  width: 500px;
  height: 100px;
  border: 3px solid transparent;
  border-image: url(http://cosmoscreativeagency.com/imagenes/square1.png) 5 space;
}
<div class="test">text inside<div>
Kenny Amaro
  • 473
  • 1
  • 3
  • 14