mercoledì, ottobre 14, 2009

Convert inline CSS to a CSS rule

I thought this was a handy Dreamweaver tip:

  1. In Code view (View > Code), select the entire <style> tag that contains the inline CSS you want to convert
  2. Right-click and select CSS Styles > Convert Inline CSS to Rule.
  3. In the Convert Inline CSS dialog box, enter a class name for the new rule, and then select (a) the stylesheet or (b) the head of the document as the location where you want the new CSS rule to appear and click OK.