Lock specific CSS on a specific page

Asked

Viewed 436 times

3

I’m using the WordPress, and my current template has some CSS that are defacing a page that I am mounting with a Builder page.

I was wondering if you could block these CSS on this specific page without affecting the other.

Exemplifying:

p{word-wrap: break-word;} via style.css for all pages

I want to disable the p{word-wrap: break-word;} on my specific page.

How do I do that?

1 answer

1

On the page you are building (with page buider) it is possible to add custom css. So just overwrite the property word-wrap. You can put the default value by getting:

p{word-wrap: normal;}
  • 1

    Can put a <style> in <head> of the page with this code below the style.css that will ignore the code.

  • What if the CSS is p{margin: 20px;}? How I annul the margin?

  • According to the w3c, the p tag uses the following styles (by default): p {&#xA; display: block;&#xA; margin-top: 1em;&#xA; margin-bottom: 1em;&#xA; margin-left: 0;&#xA; margin-right: 0;&#xA;} To modify them just proceed in the same way as the previous one. In the mentioned link you can find the default styles of each html tag.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.