"Pro ASP.NET 3.5 Server Controls and AJAX Components"
Modifying tags scattered throughout a complex HTML document, let alone an entire site, is an error-prone and time-consuming undertaking. Luckily, as the Internet has evolved, so have the technologies used to present content to web surfers. One such technological advancement is the topic of the next section: CSS, which permits separation of content from styling and layout. Styling Using Cascading Style Sheets CSS technology permits web developers to separate the concerns of HTML content from its appearance by defining a system for applying styling rules to informational content. The heart of CSS is a set of style properties that are defined separately from the content. CSS can be defined inline on an HTML tag or defined in a separate file with an extension of .css. Here is an example CSS class that would apply to the tag for a web form: .title { padding: 0; border-bottom: 0; margin: 0; font-size: 22px; } CHAPTER 4 ?– THE WEBCONTROL BASE C LASS AND CONTROL STYLES 125 If the CSS class is stored in a separate file, the file would need to be referenced in the web form tag using a tag like this: