Generate CSS from inline css of DOM elements

3

Hello, I made a document, large, full of inline css, and I know that mixing css with html, using the direct style attribute on the element is a bad practice ..

But now, do you have a way to generate a common, unique css by grouping all inline css? Or in this case the business is doing in the arm?

    
asked by anonymous 26.01.2015 / 14:16

1 answer

3

Dreamweaver has a tool for this.

  • In Code view (View > Code), select the integer style attribute that contains the inline CSS to be converted.
  • Right-click and select CSS Styles > Convert inline CSS as a rule.
  • In the Convert Inline CSS dialog box, type a class name for the new rule and do one of the following:

    • Specify a style sheet in which the new CSS rule should appear and click OK.

    • Select the document header as the location where the new CSS rule should appear and click OK.

    • You can also convert the rules using the Coding toolbar. The Encoding toolbar is available only in Code View.

  • Font

        
    26.01.2015 / 15:11