CSS styles

  1. 6 years ago
    Edited 6 years ago by Janelle P

    Hi,

    I was trying to use the Project Settings to add classes to style my text. However, the font-size attribute does not seem to have any effect -- my text did not increase its font size.

    -image-

    I would like to ask if this is a bug or a feature of the software.

    Thanks in advance,
    Janelle

  2. Angelo S

    1 Oct 2015 Administrator

    Hi Janelle,
    this is not a bug nor a feature, it's simply how CSS works. You're assigning styles to the container object (the text object) trying to alter its children (paragraphs and span nodes): those styles will be applied unless more specific ones are present. Probably the font size is being overridden by inline styles or by another, more specific class (in this case it's probably the default .SCText p class).

    The quickest solution is appending an !important directive to the font-size property (or whatever property that is not being applied):

    .chr-opnr {
        color: dodgerblue;
        text-align: left;
        font-size: 120px !important;
        font-weight: bold;
    }

    I hope this is helpful.

  3. Hi Angelo,

    Yes this has been helpful. Thanks for the quick reply.

    Cheers!

 

or Sign Up to reply!