This documentation is archived and is not being maintained.

Working with CSS Styles

Visual Studio .NET 2003

Cascading style sheet (CSS) styles can help give HTML documents an attractive and consistent appearance. By linking many Web pages to the same external style sheet, you can define a consistent look and feel for an entire Web site.

Any Web browser that supports HTML 4.0 or later will support most CSS style attributes. Use CSS styles to define the appearance and position of elements and text on HTML pages and Web forms. The style attribute can be added inline to many HTML elements, and CSS styles also can be embedded in <STYLE> blocks or stored in external cascading style sheet (.css) files.

In This Section

Introduction to Cascading Style Sheets
Understanding CSS styles.
Building CSS Styles
Using the Add Style Rule and Style Builder dialog boxes to create CSS style rules.
Adding CSS Style Attributes in Design View
Adding CSS style attributes directly to HTML elements.
Inserting CSS Styles from the Document Styles Window
Using the Document Styles window.
Applying a CSS Style to Another Web Page
Copying and pasting CSS styles.
Creating an External CSS Style Sheet
Creating external CSS style sheet (.css) files.
Linking a Web Page to a CSS Style Sheet
Configuring a Web page to load styles from external CSS style sheets.

Related Sections

Setting the targetSchema Property of an HTML Document

Selecting a target Web browser for a Web page or Web form.

Web Browser, Environment, Options Dialog Box

Selecting a Web browser to use when you View in Browser.

CSS Editor Options
CSS Editor

General, CSS, Text Editor, Options Dialog Box

Format, CSS, Text Editor, Options Dialog Box

CSS Specific, CSS, Text Editor, Options Dialog Box

Tabs, CSS, Text Editor, Options Dialog Box

Setting CSS Attributes
Style Builder Dialog Box

Setting CSS Background Attributes

Setting CSS Border Attributes

Setting CSS Font Attributes

Setting CSS Layout Attributes

Setting CSS List Attributes

Setting CSS Margin and Padding Attributes

Setting CSS Positioning Attributes

Setting CSS Text Attributes

HTML and CSS Programming
CSS Attributes Reference

DHTML Properties

DHTML References

Managing Style Sheets

Using Cascading Style Sheets (CSS) Feature with ASP Forms

How to Write a CSS Style Sheet for Browsing XML

Choosing Between CSS and XSLT

On the Internet
On the World-Wide-Web Consortium home page (, the "Cascading Style Sheets Home" page is particularly helpful, as are the "CSS2 Reference" and "CSS2 Tutorial."