Error in css content

Asked

Viewed 49 times

-1

HTML and CSS

inserir a descrição da imagem aqui

Problem :

The content of the p element does not appear on the page, it fills the space, but does not appear...

inserir a descrição da imagem aqui

1 answer

1


The Value of content is an requested source? And if so, the correct use must be in :before or after of the element according to W3C. Example:

#app {
  position: relative;
  background-color: #ddd;
  color: #666
}

#app:after {
  position: relative;
  content: 'div';
  margin-left: 5px;
  color: red;
}
<div id="app">Qual a sua TAG?</div>

  • 1

    it was exactly for not being in the after, I had already solved before back aq in the stack, but thanks anyway :D

Browser other questions tagged

You are not signed in. Login or sign up in order to post.