<div class="texto-con-borde"></div>
@color: #e74c3c;
@bgcolor: #bdc3c7;
@thick: 4px;

.texto-con-borde {
  font-size: 20vmin;
  position: relative;
  top: 45%;
  left: 5%;
  width: 90%;
  text-align: center;
  color: @color;
  // THE MAGIC: wrap the character using text-shadow
  text-shadow:
    -@thick -@thick 0 @bgcolor,
    @thick -@thick 0 @bgcolor,
    -@thick @thick 0 @bgcolor,
    @thick @thick 0 @bgcolor;
  
  &:after {
    content: "\2766";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    line-height: 0;
    background: linear-gradient(to right, fade(@color,0%) 0, @color 15%, @color 85%, fade(@color,0%) 100%);
  }
}

// GENERAL STYLE
html,body{height:100%;}
body {
  background-color: @bgcolor;
}
View Compiled

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.