Friday, January 18, 13. : Now & in the Future

Similar documents
The Scope of This Book... xxii A Quick Note About Browsers and Platforms... xxii The Appendices and Further Resources...xxiii

Building Page Layouts

CS7026 CSS3. CSS3 Graphics Effects


IDM 221. Web Design I. IDM 221: Web Authoring I 1

NEW WEBMASTER HTML & CSS FOR BEGINNERS COURSE SYNOPSIS

Index LICENSED PRODUCT NOT FOR RESALE

CSS: Responsive Design, CSS3 and Fallbacks

IBM Forms V8.0 Custom Themes IBM Corporation

CSS Futures. Web Development

Client-Side Web Technologies. CSS Part I

CMPT 165: More CSS Basics

Website Development with HTML5, CSS and Bootstrap

CSS Selectors. element selectors. .class selectors. #id selectors

Make a Website. A complex guide to building a website through continuing the fundamentals of HTML & CSS. Created by Michael Parekh 1

Tutorial 5 Working with Tables and Columns. HTML and CSS 6 TH EDITION

8/19/2018. Web Development & Design Foundations with HTML5. Learning Objectives (1 of 2) Learning Objectives (2 of 2) Horizontal Rule Element

CSS Design and Layout Basic Exercise instructions. Today's exercises. Part 1: Arrange Page into Sections. Part 1, details (screenshot below)

CSS Box Model. Cascading Style Sheets

Parashar Technologies HTML Lecture Notes-4

CSS Cascading Style Sheets

Page Layout. 4.1 Styling Page Sections 4.2 Introduction to Layout 4.3 Floating Elements 4.4 Sizing and Positioning

Web Development & Design Foundations with HTML5 & CSS3 Instructor Materials Chapter 4 Test Bank

CSS Cont'd: Cascading Style Sheets

More CSS goodness with CSS3. Webpage Design

HTML5. HTML5 Introduction. Form Input Types. Semantic Elements. Form Attributes. Form Elements. Month Number Range Search Tel Url Time Week

HTML and CSS a further introduction

Introduction to HTML & CSS. Instructor: Beck Johnson Week 5

Perfect Student Midterm Exam March 20, 2007 Student ID: 9999 Exam: 7434 CS-081/Vickery Page 1 of 5

CSS. Shan-Hung Wu CS, NTHU

When you complete this chapter, you will be able to:

Stickers! Introduction. Step 1: Colourful coding sticker

WEB DESIGNING CURRICULUM

8/19/2018. Web Development & Design Foundations with HTML5. Learning Objectives (1 of 2) Learning Objectives (2 of 2)

Web Application Styling

Fundamentals of Website Development

BIM222 Internet Programming

Creating and Building Websites

8/19/2018. Web Development & Design Foundations with HTML5. Learning Objectives (1 of 2) More on Relative Linking. Learning Objectives (2 of 2)

CSS: The Basics CISC 282 September 20, 2014

Website Design (Weekday) By Alabian Solutions Ltd , 2016

Introduction to WEB PROGRAMMING

Zen Garden. CSS Zen Garden

BORDER IMAGES THE BACKGROUND IMAGE PROPERTIES. Learning Web Design, 5e

CS7026 Media Queries II. Different Screen Size Different Design

INTRODUCTION TO CSS. Topics MODULE 5

WEB DESIGNING COURSE SYLLABUS

Study Guide 2 - HTML and CSS - Chap. 6,8,10,11,12 Name - Alexia Bernardo

Lab 1: Introducing HTML5 and CSS3

Index. alt, 38, 57 class, 86, 88, 101, 107 href, 24, 51, 57 id, 86 88, 98 overview, 37. src, 37, 57. backend, WordPress, 146, 148

Chapter 1 Introduction to Dreamweaver CS3 1. About Dreamweaver CS3 Interface...4. Creating New Webpages...10

Website Design (Weekend) By Alabian Solutions Ltd , 2016

HTML5, CSS3, JQUERY SYLLABUS

Create a three column layout using CSS, divs and floating

INFS 2150 Introduction to Web Development

INFS 2150 Introduction to Web Development

CSS. MPRI : Web Data Management. Antoine Amarilli Friday, December 7th 1/43

Styles, Style Sheets, the Box Model and Liquid Layout

What is the Box Model?

THIRD EDITION. CSS Cookbook. Christopher Schmitt foreword by Dan Cederholm O'REILLY 8. Beijing Cambridge Farnham Koln Sebastopol Taipei Tokyo

Cascading Style Sheets CSCI 311

To Ponder. Which one wins? .draft div.warning li { }.draft div #main li {!important; } div #main ul li { }.draft.warning ul li { }

Styling Web Applications Presented by Roel Fermont

Cascading Style Sheets Level 2

Programmazione Web a.a. 2017/2018 HTML5

Multimedia Systems and Technologies Lab class 6 HTML 5 + CSS 3

COPYRIGHTED MATERIAL. Contents. Chapter 1: Creating Structured Documents 1

Web Site Design and Development Lecture 7. CS 0134 Fall 2018 Tues and Thurs 1:00 2:15PM

HTML & CSS. SWE 432, Fall 2017 Design and Implementation of Software for the Web

CSS: Cascading Style Sheets

CSS for the Next Billion Users. CSSDay.NL 2018

CSS.

Decorating with CSS. Cool Ways to Make Things Pretty. R. Scott Granneman. Jans Carton

This tutorial will help both students as well as professionals who want to make their websites or personal blogs more attractive.

CSS for Page Layout Robert K. Moniot 1

HTML5 and Mobile: New Markup & Styles for the Mobile Web. Jason Clark Head of Digital Access & Web Services Montana State University Libraries

Designing the Home Page and Creating Additional Pages

Index. B Background properties, 101 background-attachment property, 114 background-clip property, 113 background-color property, 101

CSC309 Winter Lecture 2. Larry Zhang

CS 350 COMPUTER/HUMAN INTERACTION. Lecture 6


ICT IGCSE Practical Revision Presentation Web Authoring

NAVIGATION INSTRUCTIONS

CSS Cascading Style Sheets

Welcome Please sit on alternating rows. powered by lucid & no.dots.nl/student

Unveiling the Basics of CSS and how it relates to the DataFlex Web Framework

CITS3403 Agile Web Development 2019 Semester 1

This course is designed for web developers that want to learn HTML5, CSS3, JavaScript and jquery.

IANS Style Guide v.1.0

Assignments (4) Assessment as per Schedule (2)

GIMP WEB 2.0 MENUS. Web 2.0 Menus: Horizontal Navigation Bar with Dynamic Background Image

Setting Up a Development Server What Is a WAMP, MAMP, or LAMP? Installing a WAMP on Windows Testing the InstallationAlternative WAMPs Installing a

Scalable Vector Graphics (SVG) vector image World Wide Web Consortium (W3C) defined with XML searched indexed scripted compressed Mozilla Firefox

HTML + CSS. ScottyLabs WDW. Overview HTML Tags CSS Properties Resources

<style type="text/css"> <!-- body {font-family: Verdana, Arial, sans-serif} ***set font family for entire Web page***

eskills for Volunteers STRATEGIC PARTNERSHIP IN THE FIELD OF YOUTH

Mark Scheme. Edexcel Level 2 Certificate in Digital Applications. Unit 5: Coding for the Web

Designing with CSS3 Effectively & Efficiently. October 2010 Adobe MAX Zoe Mickley

PUBLISHER SPECIFIC CSS RULES

PHP,HTML5, CSS3, JQUERY SYLLABUS

Transcription:

: Now & in the Future

CSS3 is Modular

Can we use it now?

* Use it for non-critical things on the experience layer. * Check sites that maintain tables showing browser support like http://www.findmebyip.com/litmus and http://www.caniuse.com. * You can use old Microsoft filters to force IE to display some effects - but use them sparingly. filter:progid:dximagetransform.microsoft.alpha(opacity=50);

Progressive Enhancement

Vendor Prefixes Chrome, Safari: -webkit- Firefox: -moz- Opera: -oh1 { -webkit-border-radius: 10px; -moz-boder-radius: 10px; -o-border-radius: 10px; border-radius: 10px; }

Vendor Prefixes A Easy Solution -prefix-free A javascript file that adds vendor prefixes at runtime - but only when needed. It targets specific browsers - IE9+, Opera10+, Safari4+, Firefox3.5+ and Chrome.

Vendor Prefixes A Easy Solution -prefix-free module for Drupal 7 * install the module * download the latest -prefix-free library * add it to your module or library directory

Attribute Selectors select an element if the named attribute starts with a specific string selector[attribute^= value ] select an element if the named attribute ends with a specific string selector[attribute$= value ]

Attribute Selectors a[href^= http ]: { background: url(selector[attribute^= value ] arrow.png ) right no-repeat; } padding-right: 1.2em; a[href$=.pdf ]: { background: url(selector[attribute^= value ] pdf.png ) right no-repeat; } padding-right: 1.2em;

UI Selectors select an element based on disabled/enabled input:enabled, button:disabled select an element based on checked inputs input[type= radio ]:checked

UI Selectors input[type="text"]:enabled { background:#c8e2f7; } input[type="text"]:disabled { background:#e2e4e5; }

Target Selector selects the element when it is the current target <a href= #a >A</a> <div id= a ></div> #a:target { display: block; border: 1px solid #ff0000; padding: 1em; }

Target Selector used by Wikipedia on their footnotes in-page link ol.references li:target { background-color: #DDEEFF; }

Structural Selectors These include first-child, last-child, nth-child, first-of-type, last-of-type, nth-of-type.header-top ul.menu li:nth-of-type(2) { " background: #000 url(../images/news-icon.png) center left norepeat; }

Structural Selectors Using Negation li:not(.skip):nth-of-type(odd); li:nth-of-type(odd):not(.skip); <ul> <li>item 1</li> <li>item 2</li> <li class="skip">item 3</li> <li>item 4</li> <li>item 5</li> <li>item 6</li> </ul>

Text Shadow element { text-shadow: 2px 2px 4px #777; filter: dropshadow(color=#777, offx=2, offy=2); } By playing with the text color, the background color, the shadow color & the offset you can simulate embossed, engraved and glowing text.

Opacity vs RGBA Opacity uses the opacity property. div { background-color: rgb(255,0,0); opacity: 1; } RGBA lets you set opacity as part of the color. div { background-color: rgba(255,0,0,1); }

Opacity vs RGBA The Difference Between the 2 Opacity sets the opacity value for an element and all of its children. RGBA sets the opacity value only for a single declaration.

Multiple Backgrounds background: url("media/fishing.svg") top right 10px no-repeat, url("media/mermaid.svg") bottom left repeat-x, url("media/fish.svg") 30px 90px no-repeat, url("media/sea.png") repeat-x;

Gradients Gradients can be linear (either horizontal or vertical), diagonal or radial. Radial gradients are still experimental. Tools: http://westciv.com/tools/

Gradients http://meyerweb.com/eric/css/tests/circadients.html

Border Radius Used to create rounded corners. If you use 2 values for each corner you can create elliptical shapes.

Box Shadow element { box-shadow: 5px 6px 5px 0px rgba(0, 0, 0,.8); }

@font-face * Dependent on the font s license * Requires the font be in 4 different formats so it can be used in all browsers * Very good browser support! * Make sure you include foutbgone.js (flash of unstyled text)

Multicolumn Text Lets you specify the number of columns to use for block of text & how to fill those blocks.

Multicolumn Text * column-count - number of columns * column-fill - how to fill the columns - auto (fills sequentially) or balance * column-gap - the space between the columns * column-rule-color - color of line between columns * column-rule-style - style of line between columns * column-rule-width - width of line * column-rule - combines all the rule attributes in shorthand - i.e. like border * column-width - width of column * column-height - height of columns * column-span - how many columns an element should span - value are all or none * column-break - you can force when certain content starts a new column

Multicolumn Text javascript workarounds for IE Column Script from Michael van Ouwerkerk - http://13thparallel.com/archive/ column-script/ The Script from CSS Scripting - http://www.csscripting.com/wiki/index.php? title=the_script Multi Column Layout Demonstration from CSS Scripting - http:// www.csscripting.com/css-multi-column/

Flexible Box Layout aka Flex Box From the W3C: Start with a containing box. Then the children of a box are laid out either horizontally or vertically, and unused space can be assigned to a particular child or distributed among the children by assignment of flex to the children that should expand. Nesting of these boxes (horizontal inside vertical, or vertical inside horizontal) can be used to build layouts in two dimensions.

Flexible Box Layout aka Flex Box

Flexible Box Layout aka Flex Box <div id="header"></div> <div id="content"></div> <div id="footer"></div> #header { background: purple; width: 100%; height: 200px; } #content { display: -webkit-flex; -webkit-flex-flow: row; width: 100%; } #content #left-sidebar { width: 200px; height: 300px; background: blue; } #content #right-sidebar { width: 200px; height: 300px; background: green; } #content #main-content { -webkit-flex: 1; background: #eee; } #footer { width: 100%; height: 200px; background: orange; }

Transitions & Transformations These are the least supported. You can transition the background, the color, height, weight and outline of an element. You can transform an element by scaling, rotating, translating and skewing it.

Filter Effects blur grayscale drop-shadow create a sepia tone adjust the brightness adjust the contrast rotate the hue invert the colors adjust the satruation adjust the opacity http://html5-demos.appspot.com/static/css/filters/index.html

Blending Modes Blending describes how colors are "blended" together. Typically, the color of an element and the color of its backdrop are combined to create a new color. http://adobe.github.com/web-platform/demos/compositing/

Modernizr A javascript library that adds classes to the <html> tag. The classes are dependent on the browser being used.

Universal Internet Explorer 6 CSS From Andy Clarke:...not to waste hours in time and a client's money on lengthy workarounds in an unnecessary attempt at cross-browser perfection. Instead, you and I should provide simple but effectively designed HTML elements. This means just great typography for headings, paragraphs, quotations, lists, tables and forms and no styling of layout.

Universal Internet Explorer 6 CSS

Debugging Tools * Firebug * Web Developers Toolbar * HTML Reset * CSS3 Generator * Comment your code! * Make sure Optimize CSS Files is disabled * Test in multiple browsers