A
A
Anton Antonov2018-08-22 16:44:07
css
Anton Antonov, 2018-08-22 16:44:07

How to remove duplicate properties in css?

I found out for myself that there are a lot of duplicates in css; in the position example, sometimes their values ​​are different.. I associate
this with git
.case_wrap .same__text {
margin: 90px 0 100px;
position: relative;
padding-left: 15px;
padding-right: 15px;
position: relative;
}
Is there a way to clean it automatically?? or manually??

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton Antonov, 2018-08-22
@Antoskin

https://css.github.io/csso/csso.html

M
Maxim Timofeev, 2018-08-22
@webinar

https://cssnano.co/optimisations/
It removes duplicates, but whether it removes such ones is a question, so I won’t give a 100% guarantee, try it, tell me.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question