0

Why doesn't the following work:

HTML:

<aside class="vcard">
     <a href="mailto:info@cepods.com" class"email">info@company.com</a>
     <a href="tel:7865201412" class="tel">436-560-1487</a>
</aside>

CSS:

.vcard a.email:before {
  content: "Contact us: ";
}

Is it not possible to add content with this method? I've had the issues several times, is the way of selecting not correct?

James Donnelly
  • 126,410
  • 34
  • 208
  • 218
Daniel Ramirez-Escudero
  • 3,877
  • 13
  • 43
  • 80

1 Answers1

0

They is a syntax error in the HTML.. you forgot the = after class..

It should be: class="email"

It works now.. jsFiddle here

Josh Crozier
  • 233,099
  • 56
  • 391
  • 304