Client/Server & Web Applications
Total Page:16
File Type:pdf, Size:1020Kb
Lilian Kiilu, Client/Server & Web Applications, Coms 463/563, Section 1pm, Fall 2005, November 16th 2005 Cascading Style Sheets
Overview Introduction Included files Head Items Inline styles Multiple style sheets Common properties Sample code to set style attributes Sample code to set class attributes Applying style attributes to web server controls Programmatically setting controls (setting styles in the code behind) Questions Answers
Introduction
CSS separates content from design in Web Forms applications. Maintains and consolidates visual aspects of Web development. Reduces structure code and increases manageability. Design elements such as visual layout, color and positioning to a style sheet. Eg Instead of : •
Cascading style sheets work in terms of inheritance. The correct order used to apply styles to elements on a page is: 1. Included files (external files) 2. Head items (within the
Inline Styles
Mixes content with presentation Style definitions applied directly to an element using the
Applying Styles to HTML Controls
Styled Span
tags.-->
This is some literal text inside a styled span control
Styled Button
Styled Text Input
Enter some text:
Styled Select Input
Select an item:
Styled Radio Buttons
Select an option:
Option1
Option 2
Option 3