Setting the CSS profile

You can set the level of CSS to use for your web pages. The level of CSS determines the selectors and properties that you can use in the style sheet.

Procedure

  1. Right-click the project for which you want to set the CSS profile. Select Properties.
  2. Click Web Content Settings.
  3. In the CSS profile field, select the profile that you want to use from the drop-down list.
    The following World Wide Web Consortium (W3C) cascading style sheet standards are supported:
    • CSS1 (cascading style sheet level 1)
    • CSS2 (cascading style sheet level 2)
    • CSS3 (cascading style sheet level 3)
    • CSS Mobile Profile 1.0
    • WCSS 1.0
  4. Click Apply and then OK to close the Project Properties page.

Results

Now that the CSS profile for your web project is set, open the style sheet in the editor. Press Ctrl + Space. The selectors and properties that appear differ depending on what level of CSS you are using. For example, if you set the CSS profile to CSS1, the following proposals are displayed:@IMPORT, A, ABBR, and so on. If you set the CSS profile to CSS2, a different content model is displayed with the following proposals:@IMPORT, @CHARSET, @MEDIA, @PAGE, and so on.