• Hello there,
    Can someone give me a code to add in my style.css-stylesheet in order to get font bigger as 15px ? I just want learn how to do it.

    Tx a lot

    Chris

Viewing 9 replies - 1 through 9 (of 9 total)
  • Can you give us more detail? which font do you want to change? a heading, paragraph text? a list item?

    Be specific as to what you want changed and share a link to your site so others can see.

    Thread Starter CHRIS.W

    (@chrisw-1)

    hello
    tx a lot for your fast answer

    Site : https://coton-marine.fr/

    And the text is too little ad you can see. Want change the size globally for those text:

    https://gyazo.com/1451ecc85fad8720fc79dc968b84171b

    your body has a font size of 13px as seen here in your css

    body {
        background-color: #fff;
        margin: 0;
        padding: 0;
        font-size: 13px;
    }

    you can make that larger and it may help with most of your text on your site, but if there are elements that are targeted with css then it will not affect them.

    I would start by adding a new font size for the body. If there are other elements you need to be larger, then you will have to hunt them down specifically.

    add this to your custom css plugin, or your child themes css file

    body {
        font-size: 15px;
    }

    Thread Starter CHRIS.W

    (@chrisw-1)

    I set :

    .body {font-size: 16px;
    }

    In my style.css-stylesheet and nothing happen !

    depending on your theme and how you put that css in, it may or may not work. you have to make sure that wherever that code is entered that it will overide any previous code.

    does your theme offer a place to add custom css?

    Thread Starter CHRIS.W

    (@chrisw-1)

    I set your code there:

    https://gyazo.com/3504af912d05707f82d1dff95a1d9b87

    I guess that I am at the right place no?

    yes that is the right place. i just noticed what is wrong. remove the period before the word body. the body is an element all its own and not a class. it should look like how i typed it in my first post.

    body {
        font-size: 16px;
    }
    Thread Starter CHRIS.W

    (@chrisw-1)

    Tx a lot for your time,

    But set theway to tlod me: https://gyazo.com/91f27ce466394240e27ed9aed316ae0e

    But it still not working.

    you are missing a closing bracket ‘}’ on the style above that one, so it isnt getting a chance to render the body style you entered at all.

    And if i had to guess because you are placing it in the style.css file there are probably other style sheets after that are overriding it. try using ‘!important’ like this

    body {
        font-size: 16px !important;
    }
Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Size Font’ is closed to new replies.