CSS  Basic rules of CSS  Pseudo-class of the A tag  Apply CSS to alter an unordered list Cascading Style Sheets (CSS)

Slides:



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

HTML and CSS. HTML Hyper Text Markup Language Tells browser how to display text and images.
CSS. CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to solve a problem External Style.
Cascading Style Sheets
CSS Digital Media: Communication and design 2007.
Today CSS HTML A project.
CSS CSS Precise Aesthetic Control. Cascading Style Sheets Though they can be put in HTML header, usually a separate page that the HTML links to Contains.
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.
กระบวนวิชา 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.
CSS normally control the html elements. Three Ways to Insert CSS There are three ways of inserting a style sheet: External style sheet Internal style.
AD Intermediate Computer Graphics | spring 2008 | Daria Tsoupikova | School of Art and Design | UIC CSS Cascading Style Sheets.
Outline IS400: Development of Business Applications on the Internet Fall 2004 Instructor: Dr. Boris Jukic CSS: Cascading Style Sheets.
Web Workshop: CSS Objectives: - “What is CSS?” - Structure of CSS - How to use CSS in your webpage.
Cascading Style Sheets Controlling the Display Of Web Content.
CSS Basics LIS Webteam April 8, Why CSS? What’s wrong with HTML? Structure vs Style Early web design used hacks to style webpages with HTML – like.
Cascading Style Sheets Controlling the Display Of Web Content.
Cascading Style Sheet (CSS) Instructor: Dr. Fang (Daisy) Tang
CM143 Week 4 Introducing CSS. Cascading Style Sheets A definition for the style in which an element of the webpage will be displayed Border width, colour,
Cascading Style Sheets (CSS) Instructor: Mr. Ahmed Al Astal ITGD4104 Department Requirement for senior student University of Palestine Faculty of IT.
Week 4.  Three ways to apply CSS: Inline CSS Internal style sheets ( header style information) External style sheets.
CSS Introduction Cascading Style Sheets Provides a great deal of control over the presentation of the document HTML indicates both semantics of a document.
Cascading Style Sheets. Defines the presentation of one or more web pages Similar to a template Can control the appearance of an entire web site giving.
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 by Pavlovic Nenad by. Presentation Contents  What is CSS?  Why CSS?  Types of Style Sheets  Style Sheets Syntax  Box Formatting.
ITCS373: Internet Technology Week 3: Introduction to CSS Dr. Faisal Al-Qaed.
Part 1: CSS - Why? - How it works - Writing rules - Examples.
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
WRT235: Writing in Electronic Environments CSS Classes, IDs, divs.
Cascading Style Sheets CSS by Pavlovic Nenad by. 2Cascading Style Sheets Presentation Contents What are CSS? What are CSS? History of CSS History of CSS.
CSS. HTML: Looking Back HTML dictates order, structure, and function Does very little to specify layout or visual rendering.
Cascading Style Sheets Part 1. CSS vs HTML HTML: Originally intended to markup structure of a document (,...,,,,,...) CSS Developing technology, CSS1,
XP Tutorial 7New Perspectives on HTML and XHTML, Comprehensive 1 Working with Cascading Style Sheets Tutorial 7.
Css. Definition Cascading style sheet (CSS)  It is a simple mechanism for adding style (e.g. fonts, colors, spacing) to Web documents.
Lecture 2 - HTML and CSS Review SFDV3011 – Advanced Web Development 1.
ECA225 Applied Interactive Programming Cascading Style Sheets, pt 1 ECA 225 Applied Online Programming.
Course created by Sarah Phillips BBCD Melbourne BAPDCOM Version 1 – April 2013.
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.
CSS – 1h. Without stylesheets proprietary HTML extensions making text into images proliferate use of "spacer" GIF images deprecated HTML elements and/or.
HTML with Style!. What is a Style Sheet? CSS? Style Sheet CSSCascading Style Sheets A “language” for defining style rules. Rules that tell the browser.
Web Design (12) CSS Introduction. Cascading Style Sheets - Defined CSS is the W3C standard for defining the presentation of documents written in HTML.
CSS Cascading Style Sheets A very brief introduction CSS, Cascading Style Sheets1.
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.
Kyle Zimmermann.  What are CSS?  History  The Box Model  CSS Styles  Rules and Selectors  Cascade & Specificity  Inheritance  Video  Demo.
Relative, absolute, and Floating Positioning, Cascading Style Sheet, and Inheritance.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
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.
ECA 228 Internet/Intranet Design I Cascading Style Sheets.
HTML 5 AND CSS Dr Mohd Soperi Mohd Zahid Semester /16.
1 Cascading Style Sheet (CSS). 2 Cascading Style Sheets (CSS)  a style defines the appearance of a document element. o E.g., font size, font color etc…
CASCADING STYLE SHEET CSS. CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to solve a problem.
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.
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.
CSS: Cascading Style Sheets
>> Introduction to CSS
>> The “Box” Model
IS 360 Declaring CSS Styles
>> CSS Rules Selection
Cascading Style Sheets
Introduction to Web programming
Cascading Style Sheets
CASCADING STYLE SHEET CSS.
Software Engineering for Internet Applications
The Internet 10/6/11 Cascading Style Sheets
Web Design and Development
HTML / CSS Mai Moustafa Senior Web Designer eSpace eSpace.
Web Programming and Design
Presentation transcript:

CSS  Basic rules of CSS  Pseudo-class of the A tag  Apply CSS to alter an unordered list Cascading Style Sheets (CSS)

CASCADING STYLE SHEET Background ♦HTML was intended to deliver data/text content. ♦Attributes & formatting elements make site maintenance unorderly. ♦Solution:  separate web-content from page-formatting  Cascading Style Sheet Reference : (e.g. )

CASCADING STYLE SHEET Cascading Style Sheet selector1 { property : value } selector2 { property1: value1; property2: value2 }

CASCADING STYLE SHEET Cascading Style Sheet  type (tags) p {..} table, ul {..}  class. headings {..}  id #contentarea {..}  combinations p.para2 {... } table td.bluecell {..} #contentarea p {..}  pseudo-class selectors Types of selectorsAffected elements …

CASCADING STYLE SHEET Cascading Style Sheet Where to add styles? 1.External stylesheets 2.Embedded/internal stylesheet between.. tag 3.Inline styles style attribute

CASCADING STYLE SHEET Cascading Style Sheet  Cascading effect of multiple stylesheets;  Overriding order;  Inheritance;

CASCADING STYLE SHEET Cascading Style Sheet Cascading effect: CSS properties can accumulate or add-up. p {text-align: center;} style1.css p {color: red;} style2.css This paragraph is centre-aligned and in red

CASCADING STYLE SHEET Cascading Style Sheet Overriding order: - which style wins?  A tag selector is worth 1 point.  A class selector is worth 10 points.  An ID selector is worth 100 points.  An inline style is worth 1000 points

CASCADING STYLE SHEET Cascading Style Sheet Overriding order: - which style wins? SelectorIDClassTagTotal p 0011.byline p.byline #banner #banner p #banner.byline

CASCADING STYLE SHEET Cascading Style Sheet Overriding order: - which style wins? Tiebreaker : Last style wins Written by Jean Graine de Pomme p a. { color: blue; } p.byline a { color: red; }

CASCADING STYLE SHEET Cascading Style Sheet Inheritance CSS properties applied to one tag are passed on to nested tags. tag inherits styles from (the parent tag) where applicable, unless re-styled explicitly otherwise. LI UL

CASCADING STYLE SHEET Cascading Style Sheet List of properties and values

CASCADING STYLE SHEET Cascading Style Sheet HTML elements : inline or block? The BOX model – width, margin, border, padding

CASCADING STYLE SHEET Cascading Style Sheet CSS positioning Positioning types: 1.Normal (relative) 2. Float 3.Absolute

CASCADING STYLE SHEET Cascading Style Sheet CSS positioning Positioning types: 1.Normal (relative) 2. Float 3.Absolute

CASCADING STYLE SHEET Assignment einstein.html Albert Einstein #rightbar 180px