How to discribe <p> with css

Hi there,
I tried to style my paragraph (

) but i didn’t get any result. I would like to have a spacing of e.g. 12 pt. after each paragraph (line break). The class manager or the class editor do not provide the corresponding field. So how do I get this information across the page? Perhaps someone can help me. That would be great!

Hi.

The paragraph tag is just p

Add that to the class manager.

That would be

.p {
...
}

Which is wrong. p is a tag / html element.

The class manager automatically adds the . to the input string, which is good for the average use case to add classes, but not for styling tags, or even sub-tags of classes.

Read more about the p tag here:

You’ll see the example:

<html>
<head>
<style>
p {
  color: navy;
  text-indent: 30px;
  text-transform: uppercase;
}
</style>
</head>
<body>

@Norm I asked you about a knowledge base article how to add custom styling for such tags in an easy way. Did you create one?

Yes. That’s why I never said .p

Some tags the class editor will preserve. It won’t add the . to it.

I was keeping it simple to be fair. But I’ve changed it to stop any confusion. Thanks :blush:

1 Like

We both know how to style this. But people not aware about this difference might fail.

I didn’t know that. That’s good.

:+1: thank you :grinning_face_with_smiling_eyes:

3 Likes