29
Views
5
Comments
Solved
Basic CSS Question
Question

I want to display a text in a BIG size. I tried several of the styling options, but they are too small.

I think i can achieve that by changing the CSS options, but i cant seems to make it work

I've tried these, but nothing it's changed

SyntaxEditor Code Snippet

Heading1 {
font-size: 250%;
}
2019-09-30 07-35-56
Aurelio Junior
Solution

Another thing I noticed: you're missing a dot in your CSS. It shoud be:

.Heading1 {
    font-size: 30px;
}
2019-09-30 07-35-56
Aurelio Junior

Hi,

Try using the "px" unit in your CSS. So your class would look like this:

Heading1 {
    font-size: 30px;
}
2019-09-30 07-35-56
Aurelio Junior
Solution

Another thing I noticed: you're missing a dot in your CSS. It shoud be:

.Heading1 {
    font-size: 30px;
}
2016-04-21 20-09-55
J.
 
MVP

and always try it first with devTools in chrome for example.

this way you see the effect immediatly

2022-01-17 05-19-27
Kavita

Hi,

1) You can use any  relative length units like: em, pt, px ( 1em = 12pt = 16px = 100% )

and you're missing a dot in your CSS

like:

.Heading1 {
    font-size: 30px;
}

2) give "!important"


2018-11-06 14-26-44
Suraj Borade

I have marked this post as resolved so that old posts won't show up.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.