Load CSS between two divs as stylesheet.css

I am trying to get specific generated CSS for an area on one of my sites in order to use this CSS on the main page from one of my sites.

I used all types of soft and FF add-ins to get full CSS for this particular area. However, they do not combine CSS as 1. I still have to copy / paste and have a chance to get duplicated CSS.

I hope there is a piece of code that reads CSS between 2 div and generates a .css file on the fly, so I can use the generated CSS in another project. (The reason I'm asking about this is because over 4,000 lines of CSS files are loaded in the CSS file.)

+4
source share
1 answer

If you check an element (right-click on it, "Check Element") in Chrome there will appear a styles window on the right, under Computed style , this includes all non-standard about this element, including all the properties of the ancestors that made it that way.

Using the styles listed there, you can put together everything that made the style you see.

+1
source

Source: https://habr.com/ru/post/1301904/


All Articles