2010-01-19 CCT260H - Christopher Evan Jones 1 CCT260H Styles and Colours.

Slides:



Advertisements
Similar presentations
CSS Cascading Style Sheets. Objectives Using Inline Styles Working with Selectors Using Embedded Styles Using an External Style Sheet Applying a Style.
Advertisements

Making Things Look Nice: Visual Appearance and CSS CMPT 281.
Stylin’ with CSS. 2 Topics What is CSS? Why CSS? CSS Examples.
XP Introducing Cascading Style Sheets With Cascading Style Sheets (CSS), you can create one or more documents that control the appearance of some or all.
Chapter 6 Web Typography
Week 7 Web Typography. 2 Understanding Type Design Principles.
Introduction to Cascading Style Sheets (CSS) Module 2: HTML Basics LESSON 4.
Beginning Web Site Creation: Dreamweaver CS4. XHTMLCSS  Describes the structure  Content  Collection of styles  Formatting body { background-color:
Web Workshop: CSS Objectives: - “What is CSS?” - Structure of CSS - How to use CSS in your webpage.
Cascading Style Sheets Scripting with Style. CSS versus HTML  Ways to format in HTML –HTML Tag extensions –Converting Text to images –Page Layout with.
Using Cascading Style Sheets CSS Structure. Goals Understand how contextual, class and ID selectors work Understand how contextual, class and ID selectors.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 3 Key Concepts 1 Copyright © Terry Felke-Morris.
Lecture 7 Cascading Style Sheets (CSS) Boriana Koleva Room: C54
3.1 Cascading Style Sheets. Motto Fashions fade, style is eternal. —Yves Saint Laurent.
Using Cascading Style Sheets (CSS) Dept. of Computer Science and Computer Information CSCI N-100.
HIGHER COMPUTING CSS. WHAT IS CSS? CSS: Cascaded Style Sheets used to separate a web site’s content(information) from its style(how it looks).
TECH2018 Multimedia and the Internet More about CSS and Page Layouts.
XHTML and CSS Introduction to XHTML and CSS Bharti Patel 1 phones off (please)
Using Cascading Style Sheets. Introduction to Styles and Properties  Cascading Style Sheets (CSS) are a standard set by the World Wide Web Consortium.
Chapter 4 Cascading Style Sheets Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
Chapter 11 Cascading Style Sheets: Part I The Web Warrior Guide to Web Design Technologies.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 3 Key Concepts 1 Copyright © Terry Felke-Morris.
Chapter 7 Web Typography Principles of Web Design, 4 th Edition.
CSS Cascading Style Sheets By Garrett Garman. CSS Why use Style Sheets? Separates Appearance and Structure Modularity Quick and Easy changes Flexibility.
Tutorial #3 Cascading Style Sheets. Review: Last Class Image sizing Pathnames Project Default Path Relative Path Absolute Path Blackboard Homework Submission.
Chapter 6 Web Typography. 2 Principles of Web Design Chapter 5 Objectives Understand principles for type design on a Web site Use the element Understand.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 3 Key Concepts 1 Copyright © Terry Felke-Morris.
I NTRO TO CSS IAT100 Spring I NTRO TO CSS Covered in this lesson: Overview What is CSS? Why to use CSS? CSS for Skinning your Website Structure.
Cascading Style Sheets
(CSS) More Details Instructor: Mr. Ahmed Al Astal ITGD4104 Department Requirement for senior student University of Palestine Faculty of IT.
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
Using Cascading Style Sheet As you create more web pages, you may wish to impose a consistent look for all of your web pages or for group of related pages.
CSS My favourite ICT lesson By Federico Boschi Cascading Style Sheets.
Just A Few More Fun Objectives 1 Having Some Fun With Java Script 2 Using Style Sheets.
Cascading Style Sheets Orientation Learning Web Design: Chapter 11.
Cascading Style Sheets Chapter Four. What are they? A set of style rules that tell the web browser how to present a web page or document. Cascading Style.
CO1552 – Web Application Development Cascading Style Sheets.
CSS CSS is short for C ascading S tyle S heets. It is a new web page layout method that has been added to HTML to give web developers more control over.
Tutorial #3 Cascading Style Sheets. Tutorial #2 Review - Anchors Links to Site DMACC Internal Links Go to Top Mail To me Local.
CSS. HTML: Looking Back HTML dictates order, structure, and function Does very little to specify layout or visual rendering.
Introduction to CSS. What is CSS?  Cascading Style Sheets  Used for styling HTML  Also important in javascript and jquery for selectors  External.
Cascading Style Sheets Class 2, Lecture 2 Rachel A Ober
ALBERT WAVERING BOBBY SENG. Week 2: HTML + CSS  Quiz  Announcements/questions/etc  Some functional HTML elements.
Cascade Style Sheet Introduction. What is CSS?  CSS stands for Cascading Style Sheets  Styles define how to display HTML elements  Styles were added.
Stylin’ with CSS Monday October 8 th and Tuesday October 9 th.
INT222 - Internet Fundamentals Shi, Yue (Sunny) Office: T2095 SENECA COLLEGE.
Cascading Style Sheets Level 2. Course Objectives, Session 1 Level 1 Quick Review Chapter 8: Adding Graphics to Web Pages Chapter 9: Sprucing Up Your.
Cascading Style Sheets
Cascading Style Sheets CSS.  Standard defined by the W3C  CSS1 (released 1996) 50 properties  CSS2 (released 1998) 150 properties (positioning)  CSS3.
Lesson 15: Cascading Style Sheets. Objectives Identify ways to apply Web page formatting with Cascading Style Sheets (CSS1 and CSS2) using various methods.
1 Web Development CSS (Cascading Style Sheet). 2 1.Setting rules for multiple elements To decrease the amount of typing for setting rules for multiple.
XHTML Formatting font with a style declaration. Formatting Font HTML uses the font tag to change size and family of font But… the font tag is being deprecated.
OV Copyright © 2008 Element K Content LLC. All rights reserved.  Format Text  Format Lists  Format Images  Modify Page Background Applying Styles.
5 th ed: Chapter 4 4 th ed: Chapter 5 SY306 Web and Databases for Cyber Operations Slide Set #4: CSS.
Cascading Style Sheets Primary readings Presentations Explain & review projects with class mates.
Web Technologies Beginning Cascading Style Sheets (CSS) 1Copyright © Texas Education Agency, All rights reserved.
How to… Cascading Style Sheets. How to Insert a Style Sheet When a browser reads a style sheet, it will format the document according to it. There are.
CSS: Cascading Style Sheets Part II. Style Syntax.
CSS Cascading Style Sheets *referenced from
Chapter 11 & 12 CSS Style Sheets: Intro. Why CSS? Separate presentation from content – more accessible Less work – can change appearance of whole site.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 3 Introducing Cascading Style Sheets.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
CSS Cascading Style Sheets. Session Checklist ► Learn why style sheets are needed and their advantages and disadvantages ► Learn the format of a style.
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.
Creating Web Documents CSS examples (do more later) Lab/Homework: Read chapters 15 & 16. Work on Project 3, do postings.
CONFIGURING COLOR AND TEXT WITH CSS Chapter 3. Cascading Style Sheets (CSS) Used to configure text, color, and page layout. Launched in 1996 Developed.
>> Introduction to CSS
What are Cascading Stylesheets (CSS)?
Web Design and Development
Presentation transcript:

CCT260H - Christopher Evan Jones 1 CCT260H Styles and Colours

CCT260H - Christopher Evan Jones2 In Last Labs  Introduction to Elements and Tags  Basic Structure of a Web Site  Ensure you’re familiar with these tags: … …

CCT260H - Christopher Evan Jones3 Attributes  Tags can contain attributes  Attributes provide contextual information, just as giving it a style or unique identifiers  Always apply them to the first tag  Attributes also allow for JavaScript actions Discussed later in this courseDiscussed later in this course

CCT260H - Christopher Evan Jones4 Attributes  id must be unique throughout the page  class associates or groups tags together Title of Section One Title of Section One <p> This is section one. Next will be section two. section two.</p></div>

CCT260H - Christopher Evan Jones5 Styles and HTML  HTML originally was never meant to depict style  It was created to provide semantic value to text Hence the argument over and tags rendering differentlyHence the argument over and tags rendering differently  Cascading Style Sheets (CSS) was created to resolve this missing piece And stop the abuse of HTML to conduct formattingAnd stop the abuse of HTML to conduct formatting

CCT260H - Christopher Evan Jones6 Styles  Styles define how an element will appear  Styles can be applied at five levels Element LevelElement Level Class LevelClass Level Element/Class (Instance) LevelElement/Class (Instance) Level ID LevelID Level In-Line Level (rarely used and considered poor form)In-Line Level (rarely used and considered poor form)

CCT260H - Christopher Evan Jones7 Element Styles <html><head> body{ background-color: orange; }</style></head> … … Style you are defining Start of definition End of definition PropertyValue

CCT260H - Christopher Evan Jones8 Cascading Styles  Styles are in inherited from parent elements body { background-color: orange; } p { font-weight: bold }.red { color: red } The background is orange bold text that is red back to normal Class definition will change all elements with the same class name

CCT260H - Christopher Evan Jones9 Colours  Colours can be defined by name or value red = rgb(255,0,0) = #FF0000  color property will set the text  background-color property will set the background  Colours are important: Sets mood and possesses semantic meaning Sets mood and possesses semantic meaning

CCT260H - Christopher Evan Jones10 Font Family  There are only a dozen fonts uniform across browsers and systems  Set the style of font by using the font-family property: body{ font-family: “Times New Roman’, “Times”, “serif”; }  Remember to have dropdown fonts

CCT260H - Christopher Evan Jones11 Font size  Explicitly by using “em”s, “pt”s or “px”s  Implicitly using percentiles: 100%, 60% etc.  Ems are relational to the font  px are screen sizes, but doesn’t work in older browsers dealing with accessibility  I suggest using em: font-size: 1.2em;

CCT260H - Christopher Evan Jones12 Text Layout  text-align: [left|center|right|justify]  text-decoration: [underline|line-through]  text-indent: 50px

CCT260H - Christopher Evan Jones13 Lab Two  Proper format the paragraphs (indentation and justified)  Centre Titles  Change the overall font and size  Use a span to change in-line citation style  Select a comfortable colour palette

CCT260H - Christopher Evan Jones14 Play  Online editor =trycss_default =trycss_default  CCS reference