Setting the CSS profile

You can set the level of CSS to use for your Web pages. The level of CSS determines the tags that can be used in the style sheet.
To set the CSS profile, do the following:
  1. Right-click the project for which you want to set the CSS profile. Select Properties. The Properties window opens.
  2. Click Web Content Settings.
  3. In the CSS profile field, select the profile you want to use from the drop-down menu.
    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)
    • CSS Mobile Profile 1.0
    Additionally, the industry standard WAP format is also supported.
  4. Click OK to apply your changes.
Now that you have set the CSS profile for your Web project, open the style sheet in the editor. Press Ctrl + Space. The tags that appear will differ depending on what level of CSS you are using. For example, if you set the CSS profile to CSS1, the following tags 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 tags :@IMPORT, @CHARSET, @MEDIA, @PAGE and so on.
Related concepts
Cascading Style Sheet (CSS) Designer

Feedback