Properties of <p> are changing

If i do changes to an paragraph inside a div tag then the properties of it like - align…etc are not working. Is there a solution for this?

Hi, you can apply classes to paragraph so any styling you need, you can do through css. Check this link to see more about styling through Sitecake.

ya… i had got solved it. It was a stupid question. Thank you.

Hi, I have not user styles on my toolbar…

Hi Alerma,

Could be you haven’t implemented them correctly. For example:

p.red { color: red; } does not work. It needs to have a parent container. Like: .container p.red ( color: red; }

And the .container needs to be an editable DIV. So your HTML would look like:

(sorry, forgot to use the proper format)

Your HTML would look like:

<div class="container sc-content"></div>

Again correcting myself. I used a comma instead of brackets. To put everything together:

Your CSS should look like:

.container p.red { color: red; }

and your HTML should look like:

<div class="container sc-content"></div>

Sorry for the multiple posts.

Hi @hitcom, thanks for helping… you are right, I have to change all my css styles to add a parent class…

Thank you!:stuck_out_tongue:

You’re welcome! :wink: I have fallen into this trap myself at times.