M
M
Max2016-05-29 01:14:47
css
Max, 2016-05-29 01:14:47

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

2 answer(s)
X
xmoonlight, 2016-05-29
@wtfowned

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.

S
Spaceoddity, 2016-05-29
@Spaceoddity

Yes, take all the css-ku - it's business))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question