CSS3 OVERVIEW Owen Williams Owen at dynabooks daht com.

Slides:



Advertisements
Similar presentations
GETTING STARTED WITH CSS3 - By Suresh Kumar. Agenda Introduction to CSS3 CSS3 Borders CSS3 Backgrounds CSS3 Text Effects CSS3 Fonts CSS3 2D Transforms.
Advertisements

Copyright © 2003 Pearson Education, Inc. Slide 3-1 Created by Cheryl M. Hughes The Web Wizards Guide to XML by Cheryl M. Hughes.
Copenhagen, 6 December 2004 Modern CSS Principles Miruna Bădescu Finsiel Romania.
A Brief History of Time HTML5 CSS3 Tips A Brief History of Time.
HTML and CSS. HTML Hyper Text Markup Language Tells browser how to display text and images.
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.
Dr. Alexandra I. Cristea CSS Dr. Alexandra I. Cristea Source:
CSS Cascading Style Sheets. What is CSS? CSS stands for Cascading Style Sheets (the page—or sheet—helps you create a style that will cascade across all.
Web Pages Week 10 This week: CSS Next week: CSS – Part 2.
CSS Internet Engineering Spring 2014 Bahador Bakhshi CE & IT Department, Amirkabir University of Technology.
Chapter 6 More CSS Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
CSS. Intro to CSS Cascading Style Sheets – styles and enhances appearance of webpage.css extension.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
Web Standards XHTML and CSS. Today’s Show ► Discuss web standards ► XHTML ► Layout Without Tables ► CSS ► Why Web Standards?
Slide 1 CMPS 211 Internet Programming Spring 2008 Dynamic Effects with Styles Chapter 12 2/6/08.
Very quick intro HTML and CSS. Sample html A Web Title.
Cascading Style Sheets (CSS): Pixel-Level Control with HTML Ease
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.
Cascading Style Sheets By: Valerie Kuna. What are Cascading Style Sheets? Cascading Style Sheets (CSS) are a standard for specifying the presentation.
Session 4: CSS Positioning Fall 2006 LIS Web Team.
Some more CSS. CSS pseudo-classes Pseudo-classes let a stylesheet rule narrow its range Format of usage: selector:pseudo-class {property:value;} selector.class:pseudo-class.
CSS level 3. History of CSS CSS level 1 – original CSS CSS level 2 CSS level 2 Revision 1 (CSS2.1) – up to CSS2.1 monolithic structure CSS level 3 – specification.
Advance CSS (Menu and Layout) Miftahul Huda. CSS Navigation MENU It's truly remarkable what can be achieved through CSS, especially with navigation menus.
Theming with the Theme Roller Iain Ure. Theme roller General theming options The theme roller Demonstration Examples Exercise.
With CSS, a color is most often specified by: a HEX value - like "#ff0000" an RGB value - like "rgb(255,0,0)" a color name - like "red“ Example h1.
1 Pengantar Teknologi Internet W03: CSS Cascading Style Sheets.
CIS 1310 – HTML & CSS 6 Layout. CIS 1310 – HTML & CSS Learning Outcomes  Describe & Apply the CSS Box Model  Configure Float with CSS  Designate Positioning.
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.
CSS(Cascading Style Sheets )
Neal Stublen Transforms  Defined by the transform property Translate Rotate Scale Skew  Apply to any element without affecting.
Diliev.com & pLOVEdiv.com  DIliev.com.
Class four: the box model and positioning. is an HTML tag which allows you to create an element out of inline text. It doesn’t mean anything! try it:
ADVANCED CSS William Neely CEO, Piecewise.com. CSS FONTS AND TEXT CSS ‣ Line-height allows to indicate the amount of space between lines; allows for equal.
Unit 20 - Client Side Customisation of Web Pages
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.
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.
Basics CSS Chapter 3 and chapter 4 Page Sections and the CSS Box Model 1.
Page Layout & Mobile Web Using columns, grid systems, etc… to layout sites for desktops and mobile.
Ins & Outs of. CSS3 is Modular Can we use it now?
Lecture 2 - HTML and CSS Review SFDV3011 – Advanced Web Development 1.
CSS3   
11/12/2015 Box Model Reed Crouch. 11/12/2015  HTML elements can be considered as boxes. In CSS, the term "box model" is used when referring to layout.
Copyright © Osmosys O S M O S Y SO S M O S Y S D e p l o y i n g E x p e r i e n c e & E x p e r t i s e™ CSS Training.
Introduction to Programming the WWW I CMSC Summer 2004 Lecture 8.
WebD Introduction to CSS By Manik Rastogi.
CSS.
CSS Layouts: Grouping Elements
CSS3 Style of the HTML document CSS2+New Specifications Differences
Chapter 5 Introduction to Cascading Style Sheets (CSS): Part 2
Advanced CSS & CSS3.
>> The “Box” Model
Web Systems & Technologies
BOX DIMENSIONS width, height div { height: 300px; width: 400px; background-color: #ee3e80;} p { height: 75%; width: 75%; background-color:
Chapter 6 More CSS Basics Key Concepts
Basics of Web Design Chapter 6 More CSS Basics Key Concepts
HTML5 Session III Chapter 5 - How to Use the CSS Box Model for Spacing, Borders, and Backgrounds Chapter 6 - How to use CSS for page.
HTML5 Level I Session III
HTML5 Level I Session III
Box model, spacing, borders, backgrounds
Basics of Web Design Chapter 6 More CSS Basics Key Concepts
Float Property Elements that seem to “float" on the right or left side of either the browser window or another element are often configured using.
استاد:مهندس زمانیان ارائه دهنده:پونه موسوی تاریخ: 1392/4/5
Basics of Web Design Chapter 6 More CSS Basics Key Concepts
Web Development & Design Foundations with H T M L 5
How to use the CSS box model for spacing, borders, and backgrounds
CS3220 Web and Internet Programming More CSS
CS3220 Web and Internet Programming More CSS
ITI 133: HTML5 Desktop and Mobile Level I
CS3220 Web and Internet Programming More CSS
Presentation transcript:

CSS3 OVERVIEW Owen Williams Owen at dynabooks daht com

RESOURCES

ELEMENT SELECTORS * UL UL LI UL > LI UL + LI UL ~ LI #id UL[foo] UL[foo="bar"] UL[foo^="bar"] UL[foo$="bar"] UL[foo*="bar"] UL[foo~="bar"] UL[foo|="en"] UL:not(s) A:link A:visited A:active UL:empty UL:hover UL:focus UL:target UL:enabled UL:disabled UL:checked UL.warning UL:nth-child(n) UL:nth-last-child(n) UL:nth-of-type(n) UL:nth-last-of-type(n) UL:first-child UL:last-child UL:only-child UL:first-of-type UL:last-of-type UL:only-of-type UL::before UL::after UL::first-line UL::first-letter

BORDERS AND BACKGROUNDS Round Corners border-radius: 4em; border-top-left-radius: 4em; border-top-right-radius: 4em; border-bottom-right-radius: 4em; border-bottom-left-radius: 4em; Eliptical Corners Border Image border-image: url("border.png") 27 round stretch; border-image: url(border.png) stretch stretch;

FONTS { font-family: Gentium; src: url( } p { font-family: Gentium, serif; } font-variant font-variant: [normal|small-caps] font-weight font-weight: [100…900]; font-stretch font-stretch: [ultra-condensed|expanded|etc];

BOX MODEL Box-sizing box-sizing: [content-box|border-box]; Element Size width: min-width: max-width: height: min-height: max-height:

OVERFLOW overflow: [visible|hidden|scroll|auto|no-display|no-content]; overflow-style: [auto|scrollbar|panner|move|marquee]* overflow-x: overflow-y: overflow:visibleoverflow:hidden

MULTI-COLUMN LAYOUT column-width: 15em; column-gap: 2em; /* shown in yellow */ column-rule: 4px solid green; padding: 5px; /* shown in blue */

TEMPLATE :first { display: "A A A A A A A A A" / 5cm " " / 0.25cm "B. C C C C C C C" / * "B. D D D D D D D" / * "B. E E E. F F F" / * * 3em * 3em * 3em * 3em * } h1 {position: a; border-bottom: thick; margin-bottom: 1.5em} #toc {position: b; margin-right: -1.5em; border-right: thin; padding- right: 1.5em}

2D AND 3D TRANSFORMS 2D div { height: 100px; width: 100px; transform: translate(80px, 80px) scale(1.5, 1.5) rotate(45deg); } 3D

TRANSITIONS AND ANIMATIONS Transitions div { transition-property: color, left; transition-duration: 1s; transition-timing: ease-in; } var box = document.getElementById("box"); box.style.left = "100px"; box.style.color = "blue"; 'diagonal-slide' { from { left: 0; top: 0; } to { left: 100px; top: 100px; } div { animation-name: 'diagonal-slide'; animation-duration: 5s; animation-iteration-count: 10; }

PAGE { size: 8.5in 11in; margin: { content: "Hamlet"; { content: "Page " counter(page); } /* style sheet for "A4" printing print and (width: 21cm) and (height: 29.7cm) { margin: 3cm; } /* style sheet for "letter" printing print and (width: 8.5in) and (height: 11in) { margin: 1in; }

WHAT WORKS NOW? WHERE? border-radius -moz-border-radius: 5px; /* Firefox */ -webkit-border-radius: 5px; /* Safari / Chrome */ border-radius:5px; /* Opera / MSIE9 */ border-image -moz-border-image: -webkit-border-image: box-shadow -moz-box-shadow: 10px 10px 5px #888888; -webkit-box-shadow: 10px 10px 5px #888888; box-shadow: 10px 10px 5px #888888; Multiple backgrounds Box-sizing -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; Multi-column-layout -moz-column-width: 13em; -moz-column-gap: 1em; -webkit-column-width: 13em; -webkit-column-gap: 1em;