Export (0) Print
Expand All

Delete a style from a cascading style sheet

When you no longer need a particular style, you can delete the style from your cascading style sheet (CSS) by using the Apply Styles panel or Manage Styles panel, depending upon the type of style you want to delete.

Cc295234.alert_caution(en-us,Expression.30).gifImportant:

Deleting a style from an external or internal CSS doesn't remove references to that style from your web pages. If you want to remove those references, you may find it easier to locate them by waiting to delete the style from your CSS until after you've removed the style references from your web pages. Doing this makes it easier to identify the styled content in your web pages. For more information, see Remove a style from content.

  1. Do one of the following:

    • To remove a style from an external cascading style sheet (CSS), either open the .css file or a web page the CSS is attached to.

    • To remove a style from an internal or inline CSS, open the web page that contains the CSS.

  2. Do one of the following:

    • To delete a style from an open .css file, in the Manage Styles panel, right-click the style and select Delete, and then click Yes in the confirmation dialog box.

    • To delete a class or ID selector from the CSS of an open web page, in the Apply Styles or Manage Styles panel, point to the style, click the down arrow, select Delete, and then click Yes in the confirmation dialog box.

    • To delete an inline CSS in an open web page, either put your cursor in text that uses the inline CSS or select the content that uses the inline CSS. In the Apply Styles panel, point to the style, click the down arrow, select Remove Inline Style, and then click Yes in the confirmation dialog box.

Community Additions

ADD
Show:
© 2014 Microsoft