-5

what does "{content : ' '}" mean in css pseudo class ?

i'm still wondering everyday, what does that mean ?

Anybody can help me please

1 Answers1

0

In css, you use content to just set the content (or inner html)

This is a clear example from mozilla doc

HTML

<a href="http://www.mozilla.org/en-US/">Mozilla Home Page</a>

CSS

a::before {
  content: url("https://mozorg.cdn.mozilla.net/media/img/favicon.ico") " MOZILLA: ";
  font: x-small Arial, sans-serif;
  color: gray;
}
Luca Corradi
  • 2,031
  • 1
  • 16
  • 17