Skip to Content
Beginning ASP.NET 3.5: In C# and VB
book

Beginning ASP.NET 3.5: In C# and VB

by Imar Spaanjaars
March 2008
Intermediate to advanced content levelIntermediate to advanced
766 pages
21h 15m
English
Wrox
Content preview from Beginning ASP.NET 3.5: In C# and VB

3.6. Exercises

  1. What is the main benefit of using an external style over embedded style sheets?

  2. Write a CSS rule that changes the appearance of all headings at level one (h1) in your page to the following:

    • The heading uses an Arial font face.

    • The heading should be blue.

    • The heading must have a font size of 18 pixels.

    • The heading has a blue, thin border at the top and left sides.

    For the last requirement, check out VWD's IntelliSense list in a CSS file to discover another shorthand version for the border property.

  3. Which of the two following rules is easier to reuse across pages in your web site? Can you explain why?

    #MainContent
    {
      border: 1px solid blue;
    }
    
    .BoxWithBorders
    {
      border: 1px solid blue;
    }
  4. VWD allows you to attach an external style sheet to a page in a number of different ways. Can you name three different options to do this?

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

Beginning ASP.NET 4: in C# and VB

Beginning ASP.NET 4: in C# and VB

Imar Spaanjaars
Professional ASP.NET 3.5 SP1 Edition: In C# and VB

Professional ASP.NET 3.5 SP1 Edition: In C# and VB

Bill Evjen, Scott Hanselman, Devin Rader

Publisher Resources

ISBN: 9780470187593Purchase book