<div>
 <p>Вот такой закрашенный текст</p>
</div>
div {
  margin: 40px 20px;
  width: 400px;
  
}
div > p {
  display: inline;
  background-color: red;
  padding: 0;
  margin: 0;
  color: white;
  font-size: 3em;
  line-height: 48px;
  font-family: Sans-Serif;
  box-shadow: 10px 0 0 red, 10px 0 0 red;
}    

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.