How to get Chrome to recognize font-family: Arial without sarifa? (serif)

2

I have tried in different ways to get my CSS:

.texto--big{
    font-size: 40px;
    font-style: arial;
}
.texto--small{
    font-size: 25px;
    font-style: arial;
}

Return the Arial font, without serif, in the Google Chrome browser, however, there has been no way to get it, or using html, or CSS tags as webkit , in case there are compatibility problems.

If there were still doubts:

I need to get the first one. Thanks.

    
asked by Sergio Gutiérrez 25.09.2018 в 16:44
source

1 answer

6

The error is that you are using: font-style: arial; and the correct property is font-family: arial; . Look:

.texto--big{
    font-size: 40px;
    font-family: arial;
}
.texto--small{
    font-size: 25px;
    font-family: arial;
}
<p class="texto--big">
  Texto grande
</p>
<p class="texto--small">
  Texto Pequeño
</p>
    
answered by 25.09.2018 / 16:47
source