How to put &raquo and &laquo in :before?

Asked

Viewed 1,004 times

4

I need to put one » &raquo and a « &laquo in the attribute :before of a given, element.

How do I do this in CSS?

ul.breadcumb > li:after{
    content: '&raquo'; /** Isso aqui não funciona **/
}

2 answers

5

You can use hexadecimal code. &xxxx codes are HTML entities and not CSS, you must use alternative code.

ul.breadcumb > li:after{
    content: '\00BB'; /** Isso aqui funciona **/
}
<ul class="breadcumb">
    <li>teste</li>
    <li>teste</li>
    <li>teste</li>
    <li>teste</li>
    <li>teste</li>
</ul>

  • 1

    +1 for /** Isso aqui funciona ***/

5


  • 1

    Thanks for the additional information from &laquo

Browser other questions tagged

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