Answer the question
In order to leave comments, you need to log in
How to copy only used CSS fragment when copying element from HTML?
There is a task - I want to copy a certain element from someone else's site (slider). The element is complex, layers and properties are 100500. I'm a beginner, I open Google Chrome and manually copy all the properties down the ladder, but it's terribly inconvenient and long. How to speed up the process? Is it possible to copy all the properties written in CSS for a certain block at once?
Answer the question
In order to leave comments, you need to log in
You need to write a tree search of the required node to form a new one, get all the objects and execute the script for them https://github.com/moagrius/copycss
Copy the resulting new node to where you need it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question