Intro to CSS3 Vishal Kurup. Cascading Style Sheets Developed to enable the separation of document content from document presentation Initial release in.

Slides:



Advertisements
Similar presentations
CSS3 OVERVIEW Owen Williams Owen at dynabooks daht com.
Advertisements

HTML Basics Customizing your site using the basics of HTML.
1 Cascading Style Sheets Continued Different kinds of selectors in a style sheet –Simple- Pseudo-Class –Contextual- Pseudo-Element –Class Image Styles.
Chapter 6 More CSS Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
CSS. Intro to CSS Cascading Style Sheets – styles and enhances appearance of webpage.css extension.
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.
Neal Stublen Transforms  Defined by the transform property Translate Rotate Scale Skew  Apply to any element without affecting.
The future of CSS. What can CSS3 do? CSS3 is completely backwards compatible, so no need to change existing designs. Browsers will always support CSS2.
Miscellaneous 2. Multiple Columns Create multiple columns for laying out text - like in newspapers! Properties: – column-count – column-gap – column-rule.
Basics of Web Design Chapter 6 More CSS Basics Key Concepts 1.
TUTORIAL 4: CREATING PAGE LAYOUT WITH CSS Session 4.3.
Nikolay Kostov Telerik Corporation What is new in CSS 3?
Week 6.  Browser DOCTYPE switching What it means for you  – now is the time  CSS3 Web design for the 21 st Century.
Working with Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of a document.
CSS Dvijesh Bhatt.
By Tuyet Le & Madhura Pitale. Seating Chart with CSS3.
INTRODUCTION TO HTML5 Styling with CSS3. Round Border Corners  You can modify any element that supports the border property and render rounded borders.
Ins & Outs of. CSS3 is Modular Can we use it now?
 A style sheet is a single page of formatting instructions that can control the appearance of many HTML pages at once.  If style sheets accomplished.
Nate Zaugg. Initially released in December 1996 Written to allow separation of document content from document layout Different styles can target different.
Css ( CASCADING STYLE SHEETs ) CSS Box Model. All HTML elements can be considered as boxes. In CSS, the term "box model" is used when talking about design.
Introduction to CSS. What is CSS?  Cascading Style Sheets  Used for styling HTML  Also important in javascript and jquery for selectors  External.
CHAPTER 3 CSS & CSS3 อ. ยืนยง กันทะเนตร คณะเทคโนโลยีสารสนเทศและการสื่อสาร มหาวิทยาลัยพะเยา 1.
Tutorial 8 Enhancing a Web Site with Advanced CSS
Tutorial 5 Working with Tables and Columns
Tutorial 5 Working with Tables and Columns
HTML, CSS, and XML Tutorial 8 Enhancing a Web Site with Advanced CSS.
Tutorial #6 – Creating Fixed Width Layouts. Tutorial #5 Review – Box Model Every html element is surround by a box Content, Padding, Border, Margin Can.
Today’s Agenda Advanced CSS Techniques Floating Z-index Centering Sliding Doors Fluid Layouts CSS3 Advanced CSS Lab Mini Project #2.
Table Tables are defined with the tag. A table is divided into rows with the tag. (tr stands for table row) A row is divided into data cells with the tag.
Unit I Applying Advanced Styling CSS. CSS3 can style many aspects that in the past required integration of images New features are not supported by all.
LEARN THE QUICK AND EASY WAY! VISUAL QUICKSTART GUIDE HTML and CSS 8th Edition Chapter 14: Enhancements and Effects with CSS3.
INT222 - Internet Fundamentals Shi, Yue (Sunny) Office: T2095 SENECA COLLEGE.
Martin Kruliš by Martin Kruliš (v1.0)1.
Web Technologies Lecture 2 HTML and CSS. HTML Hyper Text Markup Language – Describes web documents – Made up of nested HTML markup tags – Tags are the.
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.
Managing the Graphical Interface by Using CSS Lesson 7.
Tutorial 4 Creating Page Layouts with CSS
Group 9: Through examples, explain how to build a css navigation bar. Presented by: Daniel Ku, Matt Iannacci & Iphia Henry.
PERSPECTIVES: TUTORIAL 4 CREATING PAGE LAYOUTS WITH CSS.
Simple Website Layout Tutorial Using HTML 5 and CSS 3 Ref: layout-tutorial-html-5-css-3/
The HTML5 logo was introduced by W3C in 2010
Formatting Text with CSS
CSS 3 – Overview What is new in CSS 3? Nikolay Kostov
Google fonts CSS box model
CSS3 Style of the HTML document CSS2+New Specifications Differences
Chapter 5 Introduction to Cascading Style Sheets (CSS): Part 2
Tutorial 4 Topic: CSS 3.0 Li Xu
Advanced CSS & CSS3.
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
Advanced CSS BIS1523 – Lecture 20.
Tutorial 5 Working with Tables and Columns
Creating Visual Effects and Animation
Box model.
Web Systems & Technologies
BOX DIMENSIONS width, height div { height: 300px; width: 400px; background-color: #ee3e80;} p { height: 75%; width: 75%; background-color:
HTML5 Application Development Fundamentals
>> CSS Layouts.
Chapter 6 More CSS Basics Key Concepts
Cascading Style Sheets
Objectives Create a figure box Add a background image
CSS Box Model.
Box model, spacing, borders, backgrounds
Basics of Web Design Chapter 6 More CSS Basics Key Concepts
استاد:مهندس زمانیان ارائه دهنده:پونه موسوی تاریخ: 1392/4/5
SEEM4570 Tutorial 3: CSS + CSS3.0
How to use the CSS box model for spacing, borders, and backgrounds
Cascading Style sheet. What is CSS?  CSS stands for Cascading Style Sheets  Cascading: refers to the procedure that determines which style will apply.
Presentation transcript:

Intro to CSS3 Vishal Kurup

Cascading Style Sheets Developed to enable the separation of document content from document presentation Initial release in 1996 (CSS1) CSS2 published as a recommendation in May 1998 CSS2.1 goes to candidate recommendation status – July CSS Level 3 under development since Dec 15, 2005 (W3C CSS3 Progress Report)W3C CSS3 Progress Report

CSS3 FYI CSS3 is still under development Modules: A new approach to standardization Each browser still implementing slightly different syntax for certain properties: – moz – ; //Firefox – webkit – ; //Chrome, Safari (webkit) Opera (in most cases) uses the default with no prefix but in some cases you will see – o – ;

Let’s look at some items that CSS3 makes TRIVIAL

CSS3 Rounded Corners Past approaches? Example

CSS3 Rounded Corners - Recap Makes creating rounded divs a breeze No Internet Explorer support but it degrades gracefully Markup:.div2 { width:300px; height:300px; border: 3px solid #000; background:#cc0000; border-radius:30px; -moz-border-radius:30px; //Prefix to make this work in Firefox -webkit-border-radius:30px; //Prefix to make this work in webkit browsers }

CSS3 Border Images You can now specify an image to be used as part of the border property. Example

CSS3 Border Images - Recap Format: border-image: source slice width outset repeat; Markup: border-image: url(borderbg.jpg) repeat; -webkit-border-image: url(borderbg.jpg) repeat; -moz-border-image: url(borderbg.jpg) repeat;

CSS3 - Shadows What do you do when you want to generate a shadow behind a layout element? Example

CSS3 Shadows - Recap Once again no IE support Format: box-shadow: h-shadow v-shadow blur spread color inset; h-shadow == Position of horizontal shadow V-shadow == Position of vertical shadow Blur == Blur distance Spread == Size of shadow Color == Shadow Color Inset == Make the shadow an inner (shadow)

CSS3 Backgrounds Page backgrounds in CSS2 Example

CSS3 Backgrounds Format: background-size: length | percentage | cover | contain; Sample Markup: background-size: 400px 500px; //width, height background-size:30% 40%; //width, height background-size:100%; //Omitting first value sets //the second to auto background-size:cover; background-size:contain;

CSS3 Text Properties Text Overflow Word Break Text Shadow

Text Overflow Supported in Internet Explorer (+ other browsers) Example

Text Overflow - Recap Format: text-overflow: clip | ellipsis | string; Also requires the whitespace:nowrap; & overflow:hidden properties to be set. Sample Markup: #div1 {width:200px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }

Word Wrap Force a line break even with a long word Example Format: word-wrap:break-word|normal;

Text Shadow Can be added outside the graphic No IE support Example Format: text-shadow: h-shadow v-shadow blur color;

Transformations CSS3 supports 2D & 3D transformations 2D transforms: Translate Rotate Scale Skew 3D transforms: Not covered, limited support

Transitions Effects that let an element change from one style to another. Limited Support – Currently only supported by Webkit based browsers (Chrome, Safari) Example Caveats: – You must specify the property you want to add an effect to. – You must specify a duration for the effect – Effect is typically applied on property change. Format: transition: -webkit-transition: *You can specify multiple properties separated by commas

Animations Effects that let an element change from one style to another. Limited Support – Currently only supported by Webkit based browsers (Chrome, Safari) Example

Nicely Formatted Columns Putting content into columns is super easy Again, No IE support Example

CSS3 Font Faces Allows you to use non-standard fonts Mixed support for otf, ttf, svg and eot Example

CSS3 Font Faces Things to remember: Internet Explorer only supports EOT Mozilla browsers support OTF and TTF Safari and Opera support OTF, TTF and SVG Chrome supports TTF and SVG. { font-family: ; src:url(‘localfontname.ttf’) || url(‘ } Recommended Read: face-implementation-syntaxhttp://paulirish.com/2009/bulletproof-font- face-implementation-syntax Great resource:

Examples CSS3 Accordion (No Jquery) CSS3 Accordion CSS Coke Can CSS Animation