Cascading Style Sheets

Slides:



Advertisements
Similar presentations
HTML and CSS. HTML Hyper Text Markup Language Tells browser how to display text and images.
Advertisements

CSS-Formatting Review Cascading Style Sheets addstyle to your HTML web pages.
CSS Cascading Style Sheets. Objectives Using Inline Styles Working with Selectors Using Embedded Styles Using an External Style Sheet Applying a Style.
1 Cascading Style Sheets Continued Different kinds of selectors in a style sheet –Simple- Pseudo-Class –Contextual- Pseudo-Element –Class Image Styles.
Cascading Style Sheets
Today CSS HTML A project.
Very quick intro HTML and CSS. Sample html A Web Title.
Cascading Style Sheets Basics. Why use Cascading Style Sheets? Allows you to set up a series of rules for all pages in a site. The series may be changed.
© 2004, Robert K. Moniot Chapter 6 CSS : Cascading Style Sheets.
1 Web Developer & Design Foundations with XHTML Chapter 9 Key Concepts.
Advance CSS (Menu and Layout) Miftahul Huda. CSS Navigation MENU It's truly remarkable what can be achieved through CSS, especially with navigation menus.
CSS BASICS. CSS Rules Components of a CSS Rule  Selector: Part of the rule that targets an element to be styled  Declaration: Two or more parts: a.
Recognizing the Benefits of Using CSS 1. The Evolution of CSS CSS was developed to standardize display information CSS was slow to be supported by browsers.
Chapter 8 Creating Style Sheets.
Web Design with Cascading Style Sheet Lan Vu. Overview Introduction to CSS Designing CSS Using Visual Studio to create CSS Using template for web design.
Beginning Web Site Creation: Dreamweaver CS4. XHTMLCSS  Describes the structure  Content  Collection of styles  Formatting body { background-color:
Chapter 7 Using Advanced Cascading Style Sheets HTML5 & CSS 7 th Edition.
Cascading Style Sheets Controlling the Display Of Web Content.
Cascading Style Sheets Controlling the Display Of Web Content.
Multimedia & The World Wide Web winny HCI 201 Multimedia and the www.
Cascading Style Sheets CSS.  Standard defined by the W3C  CSS1 (released 1996) 50 properties  CSS2 (released 1998) 150 properties (positioning)  CSS3.
Course created by Sarah Phillips BBCD Melbourne BAPDCOM Version 1 – April 2013.
Cascading Style Sheets Primary readings Presentations Explain & review projects with class mates.
NASRULLAHIBA.  It is time to take your web designing skills to the next level with Cascading Style Sheets (CSS). They are a way to control the look and.
Cascading Style Sheets - CSS December 20, 2008 NTPCUG Expression Web SIG.
CSS Introductions. Objectives To take control of the appearance of a Web site by creating style sheets. To use a style sheet to give all the pages of.
WebD Introduction to CSS By Manik Rastogi.
Cascading Style Sheets
Cascading Style Sheets (CSS) Internal Style Sheets Classes
Web Development & Design Foundations with XHTML
4.01 Cascading Style Sheets
An Introduction to Cascading Style Sheets
Basics of Web Design Chapter 4 Cascading Style Sheets Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D.
>> Introduction to CSS
Cascading Style Sheets
Web Development & Design Foundations with HTML5
IS 360 Declaring CSS Styles
Madam Hazwani binti Rahmat
>> CSS Rules Selection
CX Introduction to Web Programming
Web Developer & Design Foundations with XHTML
Using Cascading Style Sheets Module B: CSS Structure
Basics of Web Design Chapter 4 Cascading Style Sheets Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D.
Introduction to Web programming
Information Architecture and design
Cascading Style Sheets
IS333: MULTI-TIER APPLICATION DEVELOPMENT
Cascading Style Sheets 2
CSS.
Basics of Web Design Chapter 4 Cascading Style Sheets Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D.
DynamicHTML Cascading Style Sheet Internet Technology.
Web Programming– UFCFB Lecture 11
Working with Cascading Style Sheets (CSS)
Working with Cascading Style Sheets (CSS)
What are Cascading Stylesheets (CSS)?
The Internet 10/6/11 Cascading Style Sheets
Cascading Style Sheets
Cascading Style Sheets™ (CSS)
DynamicHTML Cascading Style Sheet Internet Technology.
Cascading Style Sheets (CSS)
CSS.
Chapter 6 Introducing Cascading Style Sheets
Made By : Lavish Chauhan & Abhay Verma
Session 3: Basic CSS Spring 2009
Lesson 3: Cascading Style Sheets (CSS) and Graphical Elements
4.01 Cascading Style Sheets
5.00 Apply procedures to organize content by using Dreamweaver. (22%)
Web Programming and Design
Introduction to Cascading Style Sheets (CSS)
CS332A Advanced HTML Programming
Presentation transcript:

Cascading Style Sheets Zeldman, J. (2003). Designing With Web Standards: Chapters 9-10 Schmitt, C. (2002).Designing CSS Web Pages: Chapters 1-2 Presentations Project Plan User Stories Templates

CSS Pros Separates content from presentation Global presentation changes from one file Conserves bandwidth Simpler code is easier to update Increasingly browser friendly Better accessibility Cures the common cold Great on sandwiches

CSS Anatomy Selector p Declaration {color: yellow;} Property: Value Multiple declarations {color: yellow; background: transparent;} Grouped Selectors p, li {color: yellow} Inherited Properties body {font-family: sans-serif} Override inheritance with specific property Contextual: can override coding in content

Object Identifiers Use as a “style” for content when content is identified with that id Make an element id “mainpoint” #mainpoint p {font-style: strong; text-align: center; margin-bottom: 1em;} Use the element id <p class =“majorpoint”>This will be on the test.</p> Use in combination with Contextual Selectors to manipulate presentation in combinations It’s like using programming logic!

Calling and Referencing CSS <link rel=“StyleSheet” href=“/styles/style1.css” type=“text/css” media=“all” /> <style type=“text/css” media=“all”> @import url(“/styles/style1.css”);</style> @import only works in 5.0+ browsers: useful for customizing for newer browsers You could link to styles on other sites (url) Embedding styles in a document not recommended Less flexibility More coding (there’s always another page or another version of the same page) Inline styles in the tag <h2 style=“color: blue”>

CSS Flexibility Different style sheets for different uses Browsing Versions and platforms Printing 8.5 x 11 PDA-sized with text breaks Searching ? Highlighting query term Abstracted elements from document – “id=abstract” Relative style file locations might be used for advanced style logic

Document Styles – Body Tags Margins spacing (padding) Indenting colors (backgrounds and text) Images Fonts Line height (double-spaced Web papers) Headers Footers What else?

Page Divisions Content Divs Sidebars (Columns) Navigation (and Site) Tabs Link sets Rollovers “You are Here” effect a:visited Colors Graphics

Styles and XIA Content should match style Users (their browsers) should be able to perform all user stories (tests) Applications may use styles differently than pages with just text Forms Styling for Navigation – Menus See Designing CSS Web Pages Code Samples Web Resources DOCTYPES Templates for different styles of documents

Next Week More CSS Web version of Research Papers Due Use good development standards Research: Academic Technical Theoretical sources