Skip to Content
ASP.NET 3.5 For Dummies®
book

ASP.NET 3.5 For Dummies®

by Ken Cox
February 2008
Intermediate to advanced
428 pages
8h 52m
English
For Dummies
Content preview from ASP.NET 3.5 For Dummies®

10.2. Using the VWD Style Sheet Tools

Creating styles is a visual task in which real artistes don a beret and painter's smock, choose a style, such as a border color, apply it to a control, and then stand back to admire their work. In this section, you use the graphical tools in Visual Web Developer to design and preview CSS styles.

10.2.1. Attaching an external style sheet

In preparation for designing styles, you need a place to store your precious artistry. Follow these steps to attach a style sheet file to a page:

  1. In Solution Explorer, add a style sheet file to the project (Add New ItemStyle Sheet).

  2. Add an ASP.NET page to your project (for example, ssheet.aspx) and open it in Design view.

  3. Open the Apply Styles window (ViewApply Styles).

    Figure 10-2 shows the Apply Styles window.

  4. Click Attach Style Sheet.

    The Select Style Sheet dialog box opens.

    Figure 10-2. The Apply Styles window includes a link from which you can select a style sheet to reference in the page.
  5. Navigate the project folders to find the style sheet to attach and then click OK.

    The style sheet filename (for example, StyleSheet.css) appears in the Apply Styles window.

    From here, you need a control and a style. That's coming ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

ASP.NET 3.5 Unleashed

ASP.NET 3.5 Unleashed

Stephen Walther
ASP.NET 4 Unleashed

ASP.NET 4 Unleashed

Stephen Walther, Kevin Hoffman, Nate Dudek

Publisher Resources

ISBN: 9780470195925Purchase book