D
D
dimonesk2015-10-06 15:47:34
css
dimonesk, 2015-10-06 15:47:34

How to remove styles in body?

Good afternoon! Faced such a problem, on the site for solving a specific problem, the styles written in the body tag are not clear from where

<body style="z-index: 1; position: relative;" class="home page page-id-5 page-template page-template-pagecopy1-php logged-in admin-bar single-author customize-support">

Please tell me how to remove from the tag itself style="z-index: 1; position: relative;"
I would be very grateful.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
Boris Shepelev, 2015-10-06
@dimonesk

you can remove them if you find the code that is responsible for the fact that they are located there.
You can solve the problem so that they do not work like this, for example:

.home {
z-index: 0!important;
position:static;!important;
... и так далее отрицание всего, что прописано
}

because !important; the execution priority is higher than STYLE and everything will be canceled for you!
Again, this manipulation as an option seems to me much easier than using JS to remove styles.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question