* CSS Objectives * Provide more control over web site content presentation and formatting * Facilitate cross web page consistency * Reduce the amount.

Slides:



Advertisements
Similar presentations
Table, List, Blocks, Inline Style
Advertisements

HIGH LEVEL OVERVIEW: CSS CSS SYNTAX CONSISTS OF A SET OF RULES THAT HAVE 3 PARTS: A SELECTOR, A PROPERTY, AND A VALUE. IT’S NOT NECESSARY TO REMEMBER THIS.
Cascading Style Sheets
CSS. Intro to CSS Cascading Style Sheets – styles and enhances appearance of webpage.css extension.
Cascading Style Sheets. CSS stands for Cascading Style Sheets and is a simple styling language which allows attaching style to HTML elements. CSS is a.
HyperText Markup Language (HTML) Uses plain text to add markup instructions to a file. If you can't produce it with a standard keyboard, it can't go into.
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.
กระบวนวิชา CSS. What is CSS? CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to.
Chapter 8 Creating Style Sheets.
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.
Tutorial 3 Introducing Cascading Style Sheets. XP New Perspectives on Blended HTML, XHTML, and CSS2 Objectives Learn about Cascading Style Sheets Write.
Chapter 6 Web Typography
Week 7 Web Typography. 2 Understanding Type Design Principles.
Text Properties, Line Box, CSS. Text Properties Properties related to the display of text. Text-align : left, right, center I like FSU!
Beginning Web Site Creation: Dreamweaver CS4. XHTMLCSS  Describes the structure  Content  Collection of styles  Formatting body { background-color:
Lecture Cascading Style Sheets (CSS) Internal Style Sheets Classes.
Using Cascading Style Sheets CSS Structure. Goals Understand how contextual, class and ID selectors work Understand how contextual, class and ID selectors.
4.01 Cascading Style Sheets
HTML. Goals How to use the Komodo editor HTML coding and testing Basic HTML tags List and Images Tables and Links At least 2 pages and navigation
W EB S ITE L ECTURE C ASCADING S TYLE S HEETS. Cascading Style Sheets (CSS) Introduction CSS Objectives – Provide more control over web site content presentation.
INTRODUCTION TO WEB DEVELOPMENT AND HTML Lecture 06: Tables - Spring 2011.
Tutorial #8 – Creating Data Tables. Tutorial #6 Review – Layouts Two Column Fixed Width, Three Column Fixed Width Class VS. ID Container Universal Selector.
Chapter 8 Cascading Style Sheets (CSS). Agenda Definition of a CSS style Types of CSS Styles CSS Backgrounds CSS Text CSS Fonts CSS Links CSS Lists CSS.
1 The Structure of a Web Table beginning of the table structure first row of three in the table end of the table structure table cells You do not need.
Using Cascading Style Sheets. Introduction to Styles and Properties  Cascading Style Sheets (CSS) are a standard set by the World Wide Web Consortium.
Chapter 7 Web Typography Principles of Web Design, 4 th Edition.
Principles of Web Design 6 th Edition Chapter 10 – Data Tables.
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.
CSS: Cascading Style Sheets. 2 What are Style Sheets A style sheet is a mechanism that allows to specify how HTML (/XHTML/XML) pages should look The style.
1 What is CSS?  CSS stands for Cascading Style Sheets  Styles define how to display HTML elements  Styles are normally stored in Style Sheets  Styles.
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
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.
Introduction to CSS. What is CSS?  Cascading Style Sheets  Used for styling HTML  Also important in javascript and jquery for selectors  External.
CSS Cascading Style Sheets. CSS Advantages Greater typography and page layout control Style is separate from structure Styles can be stored in a separate.
Using the CSS. What is CSS? CSS is a language that’s used to define the formatting applied to a Website, including colors, background images, typefaces.
Cascading Style Sheets Robin Burke ECT 270. Outline Midterm The Layout Debate CSS properties Fonts Alignment Color CSS selection selectors pseudo-classes.
Creating Your Own Webpage COSC Cascading Stylesheets Think of: HTML: content of your webpage HTML has tags CSS: presentation and appearance of your.
CIS234A Lecture 8 Instructor Greg D’Andrea. Review Text Table contains only text, evenly spaced on the Web page in rows and columns uses only standard.
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 CSS.  Standard defined by the W3C  CSS1 (released 1996) 50 properties  CSS2 (released 1998) 150 properties (positioning)  CSS3.
OV Copyright © 2008 Element K Content LLC. All rights reserved.  Format Text  Format Lists  Format Images  Modify Page Background Applying Styles.
Web Design (12) CSS Introduction. Cascading Style Sheets - Defined CSS is the W3C standard for defining the presentation of documents written in HTML.
Today’s objectives Layouts | floats Measurement units Type properties
Web Technologies Beginning Cascading Style Sheets (CSS) 1Copyright © Texas Education Agency, All rights reserved.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
©SoftMoore ConsultingSlide 1 Introduction to HTML: Block-Level Elements.
OV Copyright © 2008 Element K Content LLC. All rights reserved. Working with Web Pages  An Introduction to Cascading Style Sheets  Format a Web.
Creating Layouts with CSS. Span tag Here is some underlined text. Here is some blinking text. Here's some bold text.
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.
1 CS428 Web Engineering Lecture 07 Font, Text & Background (CSS - II)
Formatting Text with HTML and CSS. Summary block-level elements. Character-level elements Logical and physical style Special elements: hr,address, quotation.
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.
Cascading Style Sheets Robin Burke ECT 270. Outline CSS properties Fonts Alignment Color CSS selection selectors.
CSS (Cascading Style Sheets). CSS CSS – Cascading Style Sheets – Cascade because of the way CSS rules can stack on top of each other. Allows you to add.
CONFIGURING COLOR AND TEXT WITH CSS Chapter 3. Cascading Style Sheets (CSS) Used to configure text, color, and page layout. Launched in 1996 Developed.
CSS.
CSS for Styling By Jinzhu Gao.
4.01 Cascading Style Sheets
>> Introduction to CSS
Cascading Style Sheets
IS333: MULTI-TIER APPLICATION DEVELOPMENT
Cascading Style Sheets™ (CSS)
Principles of Web Design 5th Edition
4.01 Cascading Style Sheets
Presentation transcript:

* CSS Objectives * Provide more control over web site content presentation and formatting * Facilitate cross web page consistency * Reduce the amount of coding within a web page to accomplish the desired results * CSS style sheets can be embedded in web page source files or as separate documents * If embedded the CSS definition would be done above the tag * They can facilitate consistent formatting throughout a web site * The CSS statements differ from HTML statements * CSS Properties perform roughly the same function as some HTML tag attributes * There are more many more Properties * A set of Properties can be applied against more than one element in a single CSS statement * CSS is obsoleting HTML in web page source coding (deprecating) * An excellent source for CSS properties is:

Font Property Example – Change the default format for h1 header element Without CSS CSS Rules Nice Header? With CSS CSS Rules h1{ color: white; background-color: blue; font-size: 120%; } Nice Header?

Examples of the Content Types * Border * Background * Font * List * Marquee * Padding * Table

Font Properties include: fontSets all the font properties in one declaration font-familySpecifies the font family for text (e.g. comic-sans) font-sizeSpecifies the font size of text (e.g. %, pixels, named (e.g. small)) font-styleSpecifies the font style for text font-variantSpecifies whether or not a text should be displayed in a small-caps font font-weightSpecifies the weight of a font (e.g. lighter, bold, bolder)

your name P { font-family: gungsuh; font-style: italic; font-variant: small-caps; font-weight: bold; font-size: 150%; color: red; } Business as usual until we hit the p-tag Wow, what a difference a p-tag makes Back to boring

Font Properties include: colorSets the color of text directionSpecifies the text direction/writing direction letter-spacingIncreases or decreases the space between characters in a text line-heightSets the line height text-alignSpecifies the horizontal alignment of text text-decorationSpecifies the decoration added to text text-indentSpecifies the indentation of the first line in a text- block text-transformControls the capitalization of text vertical-alignSets the vertical alignment of an element white-spaceSpecifies how white-space inside an element is handled word-spacingIncreases or decreases the space between words in a text

Table Properties include: border-collapseSpecifies whether or not table borders should be collapsed border-spacingSpecifies the distance between the borders of adjacent cells caption-sideSpecifies the placement of a table caption empty-cellsSpecifies whether or not to display borders and background on empty cells in a table

CSS huh table { border-collapse: collapse; } table, td, th { border:1px solid blue;} th { background-color: blue; color: white; } td { padding: 10px 20px 10px 20px;} Name Address Lightning T. Mascot E.Main St, M'boro TN Without CSS Huh Name Address Lightning T. Mascot E.Main St, M'boro TN

* Classes provide a shorthand method of formatting * They are defined in the style section (internal or external) * When defining names they are prefaced by a period symbol * When applied the period is not added to the name Definition.blueit { color: blue; font-size: 150%; font-style: italic; font-weight: bold; font-variant: small-caps; } Use in Body Hello I’m so blue

* Span allows for limiting the scope of a format change * Best applied for non-trivial changes * Span can be used with or without a Class * Class allows for multiple Span selections huh span { color: blue; font-size: 150%; font-style: italic; font-weight: bold; font-variant: small-caps; } I'm so blue boohoo huh.blueit {color: blue;}.redit {color: red;} I'm so blue

* Div element enables different formatting of logical sections of a page, e.g: * Banners * Navigation tabs * Page footer * Special formatting such as indenting content * Div elements can be nested * The Div element is an XHMTL construct that works within the CSS environment * Multiple Div elements can be defined within a page or style sheet, distinguished via unique names * Div element names must contain “#” (hash) sign, e.g.: col#tabs #floatleft

Definition #offset500 { position: relative; left: 500; } Results Use in Body The influences to the Blues included Spirituals Work Songs Field Hollers Shouts Chants Rhymed Simple Narrative Ballads