Mark Branom, Continuing Studies. Brief history… 1997-2001  Content: HTML 4.01  Presentation: CSS1.

Slides:



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

Chapter 3 – Web Design Tables & Page Layout
Chapter 3 Creating a Business Letter with a Letterhead and Table
1 Cascading Style Sheets Continued Different kinds of selectors in a style sheet –Simple- Pseudo-Class –Contextual- Pseudo-Element –Class Image Styles.
CSS Layout Crash Course An Advance CSS Tutorial. Inline vs. Block Many HTML elements have a default display setting of Block. Block elements take up the.
Chapter 6 More CSS Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
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.
Tutorial 4: Creating page layout with css
Basics of Web Design Chapter 6 More CSS Basics Key Concepts.
Intermediate Level Course. Text Format The text styles, bold, italics, underlining, superscript and subscript, can be easily added to selected text. Text.
Basics of Web Design Chapter 6 More CSS Basics Key Concepts 1.
XP 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks Tutorial 7.
Tutorial 4 Creating Special Effects with CSS
Implementing the new features Mark Branom, IT Services John Foliot, Stanford Online Accessibility Program.
CSS (Cascading Style Sheets): How the web is styled Create Rules that specify how the content of an HTML Element should appear. CSS controls how your web.
Chapter 5 Working with Tables. Agenda Add a Table Assign a Table Border Adjust Cell Padding and Spacing Adjust Cell Width and Height Add Column Labels.
CHAPTER 11 Tables. How Are Tables Used Data Display  Very tidy and very useful Better Text Alignment  Putting text in tables allows you to format indents.
XP Tutorial 7New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks.
Tutorial 4: Using CSS for Page Layout. 2 Objectives Session 4.1 Explore CSS layout Compare types of floating layouts Examine code for CSS layouts View.
Tutorial 4 Creating Special Effects with CSS. XP Objectives Work with CSS selectors Create styles for lists Create and apply class styles Create a rollover.
CSS Positioning Creating Special Effects with CSS CS202 Working with Cascading Style Sheets (Chapter 4) CS202 1.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
Ins & Outs of. CSS3 is Modular Can we use it now?
XP Dreamweaver 8.0 Tutorial 3 1 Adding Text and Formatting Text with CSS Styles.
Nate Zaugg. Initially released in December 1996 Written to allow separation of document content from document layout Different styles can target different.
Tutorial 8 Enhancing a Web Site with Advanced CSS
Tutorial 5 Working with Tables and Columns
Tutorial 5 Working with Tables and Columns
COMP213 – Web Interface Design
Web Foundations THURSDAY, OCTOBER 31, 2013 LECTURE 22: CSS MULTICOLUMNS, CSS PREFIX TOOLS HTML/CSS WYSIWYG WEB EDITORS.
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.
Svetlin Nakov Telerik Corporation
Tutorial 3 Adding and Formatting Text with CSS Styles.
THE BOX MODEL Putting layouts together with CSS. The Box Model  How would you describe a box?  Container?  Tags or elements are “containers”  puts.
Neal Stublen New Element Styling  html5shiv.js provided support in older IE browsers for new sectioning elements aside, header,
Positioning and Printing Creating Special Effects with CSS.
Tutorial 4 Creating Special Effects with CSS. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Work with CSS selectors.
Tutorial 4 Creating Special Effects with CSS. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Work with CSS selectors.
Managing the Graphical Interface by Using CSS Lesson 7.
Tutorial 4 Creating Page Layouts with CSS
Page Layout CHAPTER 5 1 CHARLES WYKE-SMITH: STYLIN’ WITH CSS: A DESIGNER’S GUIDE (3 ND EDITION)
Advanced CSS. Display  Hiding an element can be done in two ways  display:none  Element is hidden and will no longer take up space on the page  Can.
Doncho Minkov Telerik School Academy schoolacademy.telerik.com Technical Trainer
Web Development Basics Lecture 5 – CSS 3. Introduction  Early draft of CSS 3 started in 1999 at the W3C just after the CSS 2 recommendation.  CSS 3.
Understanding CSS Cascading Style Sheets control the presentation of content in HTML pages Style Sheets separate formatting from the content –Styles defined.
XP New Perspectives on Macromedia Dreamweaver MX 2004 Tutorial 5 1 Adding Shared Site Elements.
>> CSS Layouts. Recall Properties of Box – Border (style, width, color) – Padding – Margin – Display – Background – Dimension Welcome Padding Area Border.
CSS.
Laying out Elements with CSS
Working with Cascading Style Sheets
Formatting Text with CSS
Chapter 5 Introduction to Cascading Style Sheets (CSS): Part 2
Inserting and Working with Images
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
Advanced CSS BIS1523 – Lecture 20.
Web Systems & Technologies
>> CSS Layouts.
Objectives Create a media query Work with the browser viewport
Chapter 6 More CSS Basics Key Concepts
Objectives Create a reset style sheet Explore page layout designs
Basics of Web Design Chapter 6 More CSS Basics Key Concepts
Box model, spacing, borders, backgrounds
Basics of Web Design Chapter 6 More CSS Basics Key Concepts
DREAMWEAVER MX 2004 Chapter 3 Working with Tables
Basics of Web Design Chapter 6 More CSS Basics Key Concepts
SEEM4570 Tutorial 3: CSS + CSS3.0
Floating and Positioning
Tutorial 4 Creating Special Effects with CSS
The div Element and CSS for layout
Presentation transcript:

Mark Branom, Continuing Studies

Brief history…  Content: HTML 4.01  Presentation: CSS1

Brief history…  Content: XHTML 1  Presentation: CSS2

Brief history… 2007-present  Content: HTML5  Presentation: CSS3

Vendor Prefixes  Some CSS rules won’t work without the vendor prefix.  Mozilla Browsers (Firefox) -moz  Webkit Browsers (Safari, Chrome) -webkit  Opera -o  Internet Explorer -ms  Not all CSS rules work with all browsers:   

So, what’s the big deal about CSS3? See the examples online…

New selectors!  element1~element2 Selects an element that is a general next sibling of another element  [attribute^=value] Represents an element with the attribute whose value begins with the prefix value.  [attribute$=value] Represents an element with the attribute whose value ends with the prefix value.  [attribute*=value] Represents an element with the attribute whose value contains the prefix value.

New pseudo elements/classes!  :first-of-type  :last-of-type  :only-of-type  Select elements that are first, last, or only child of its type of its parent  :first-child  :only-child  :last-child  Selects an element that is the first, only, or last child of its parent.

More new pseudo elements/classes!  nth-child(n)  :nth-of-type(n)  Allows you to select elements with a formula.  :nth-last-child(n)  :nth-last-of-type(n)  Work same as nth-child, except that they start counting at the last element instead of the first.  :root  Selects the root initial containing block (in HTML, this is the tag)  :empty  Selects elements with no content (“empty”).  :target  Selects a targeted element – one with an ID with the same value as the URL's hash.

Still more new pseudo elements/classes!  :enabled  :disabled  :checked  Allows a designer to apply style to enabled, disabled, or checked form field elements.  :not(selector)  Negates a selector.  ::selection  Defines style for text that a user selects.

New properties! (and some new property groups!) Animation Background Border and outline Box Color Content Paged Media Dimension Flexible Box Font Generated content Grid Hyperlink Linebox List Margin Marquee Multi-column Padding Paged Media Positioning Print Ruby Speech Table Text 2D/3D Transform Transition User-interface CSS Property Groups:

Animation Specifies the animation  animation A shorthand property for all the animation properties below, except the animation-play-state property  animation-name Specifies a name for animation  animation-duration Specifies how many seconds or milliseconds an animation takes to complete one cycle  animation-timing-function Specifies the speed curve of the animation  animation-delay Specifies when the animation will start  animation-iteration-count Specifies the number of times an animation should be played  animation-direction Specifies whether or not the animation should play in reverse on alternate cycles  animation-play-state Specifies whether the animation is running or paused

Transition  transition A shorthand property for setting the four transition properties  transition-property Specifies the name of the CSS property the transition effect is for  transition-duration Specifies how many seconds or milliseconds a transition effect takes to complete  transition-timing-function Specifies the speed curve of the transition effect  transition-delay Specifies when the transition effect will start

Transform  transform Applies a 2D or 3D transformation to an element  transform-origin Allows you to change the position on transformed elements  transform-style Specifies how nested elements are rendered in 3D space  perspective Specifies the perspective on how 3D elements are viewed  perspective-origin Specifies the bottom position of 3D elements  backface-visibility Defines whether or not an element should be visible when not facing the screen

Background  background-clip Specifies the painting area of the background  background-origin Specifies the positioning area of the background images  background-size Specifies the size of the background images  background-gradient Specifies a gradient (shifting from one color to another) in the background

Border  border-bottom-left-radius Defines the shape of the border of the bottom-left corner  border-bottom-right-radius Defines the shape of the border of the bottom-right corner  border-image A shorthand property for setting all the border-image-* properties  border-image-outset Specifies the amount by which the border image area extends beyond the border box  border-image-repeat Specifies whether the image-border should be repeated, rounded or stretched  border-image-slice Specifies the inward offsets of the image-border  border-image-source Specifies an image to be used as a border  border-image-width Specifies the widths of the image-border  border-radius A shorthand property for setting all the four border-*-radius properties  border-top-left-radius Defines the shape of the border of the top-left corner  border-top-right-radius Defines the shape of the border of the top-right corner

Flexible Box  Allows you to order content using numbers.  Example:

Color  RGBA(Red,Green,Blue,Alpha opacity) rgba(100%,0%,0%,0.8) produces 80% red.  HSLA (Hue, Saturation, Lightness, Alpha opacity) hsla(0,100%, 50%,1.0) produces 100% red.  opacity Sets the opacity level for an element from 0 to 1.0

Font  Free web fonts: A rule that allows websites to download and use fonts other than the "web-safe" fonts  font-size-adjust Preserves the readability of text when font fallback occurs  font-stretch Selects a normal, condensed, or expanded face from a font family  Example: Currently no browser supports font-stretch

Text  hanging-punctuation Specifies whether a punctuation character may be placed outside the line box  Example: Currently no browser supports hanging-punctuation  punctuation-trim Specifies whether a punctuation character should be trimmed  Example: Currently no browser supports punctuation-trim  text-outline Specifies a text outline  Example: Currently no browser supports text-outline  text-wrap Specifies line breaking rules for text  Example: Currently no browser supports text-wrap  text-align-last Describes how the last line of a block or a line right before a forced line break is aligned when text- align is "justify"

Text (continued)  text-justify Specifies the justification method used when text-align is "justify"  text-shadow Adds shadow to text  word-break Specifies line breaking rules for non-CJK (Chinese/Japanese/Korean) text  word-wrap Allows long, unbreakable words to be broken and wrap to the next line

Grid  grid-columns Specifies the width of each column in a grid  grid-rows Specifies the height of each column in a grid

Multi-column  column-count Specifies the number of columns an element should be divided into  column-fill Specifies how to fill columns  column-gap Specifies the gap between the columns  column-rule A shorthand property for setting all the column-rule-* properties  column-rule-color Specifies the color of the rule between columns  column-rule-style Specifies the style of the rule between columns  column-rule-width Specifies the width of the rule between columns  column-span Specifies how many columns an element should span across  column-width Specifies the width of the columns  columns A shorthand property for setting column-width and column-count

Marquee  marquee-direction Sets the direction of the moving content  marquee-play-count Sets how many times the content move  marquee-speed Sets how fast the content scrolls  marquee-style Sets the style of the moving content

Ruby  ruby-align Controls the text alignment of the ruby text and ruby base contents relative to each other  ruby-overhang Determines whether, and on which side, ruby text is allowed to partially overhang any adjacent text in addition to its own base, when the ruby text is wider than the ruby base  ruby-position Controls the position of the ruby text with respect to its base  ruby-span Controls the spanning behavior of annotation elements

User-Interface  appearance Makes any element appear like a form element (e.g., paragraphs can look like buttons).  box-sizing Forces an element fit inside an area.  outline-offset Offsets an outline, and draws it beyond the border edge  resize Specifies whether or not an element is resizable by the user

User-Interface (continued)  nav-index Specifies the tabbing order for an element  nav-down Specifies the position of the element when using the arrow-down navigation key  nav-left Specifies the position of the element when using the arrow-left navigation key  nav-right Specifies the position of the element when using the arrow-right navigation key  nav-up Specifies the position of the element when using the arrow-up navigation key  Example: Currently no browser supports the nav* properties

Content for Paged Media (print)  bookmark-label Specifies the label of the bookmark  bookmark-level Specifies the level of the bookmark  bookmark-target Specifies the target of the bookmark link  float-offset Pushes floated elements in the opposite direction of the where they have been floated with float  image-resolution Specifies the resolution of an image  marks Adds crop and/or cross marks to the document  string-set Named strings are created with the ‘string-set’ property which copies a string of text into the named string. Only text is copied; not style, structure, or replaced content

Content for Paged Media (print) - continued  hyphenate-after Specifies the minimum number of characters in a hyphenated word after the hyphenation character  hyphenate-before Specifies the minimum number of characters in a hyphenated word before the hyphenation character  hyphenate-character Specifies a string that is shown when a hyphenate-break occurs  hyphenate-lines Indicates the maximum number of successive hyphenated lines in an element  hyphenate-resource Specifies a comma-separated list of external resources that can help the browser determine hyphenation points  hyphens Sets how to split words to improve the layout of paragraphs

More Paged Media Properties  object-fit Gives a hint for how to scale a replaced element if neither its width nor its height property is auto  object-position Determines the alignment of the object inside the box  image-orientation Specifies a rotation in the right or clockwise direction that a user agent applies to an image  size Specifies the size and orientation of the containing box for page content

Speech  mark A shorthand property for setting the mark-before and mark-after properties  mark-after Allows named markers to be attached to the audio stream  mark-before Allows named markers to be attached to the audio stream  phonemes Specifies a phonetic pronunciation for the text contained by the corresponding element  rest A shorthand property for setting the rest-before and rest-after properties  rest-after Specifies a rest or prosodic boundary to be observed after speaking an element's content  rest-before Specifies a rest or prosodic boundary to be observed before speaking an element's content

Speech (continued)  voice-balance Specifies the balance between left and right channels  voice-duration Specifies how long it should take to render the selected element's content  voice-pitch Specifies the average pitch (a frequency) of the speaking voice  voice-pitch-range Specifies variation in average pitch  voice-rate Controls the speaking rate  voice-stress Indicates the strength of emphasis to be applied  voice-volume Refers to the amplitude of the waveform output by the speech synthesizes

Linebox  alignment-adjust Allows more precise alignment of elements  alignment-baseline Specifies how an inline-level element is aligned with respect to its parent  baseline-shift Allows repositioning of the dominant-baseline relative to the dominant-baseline  dominant-baseline Specifies a scaled-baseline-table  drop-initial-after-adjust Sets the alignment point of the drop initial for the primary connection point  drop-initial-after-align Sets which alignment line within the initial line box is used at the primary connection point with the initial letter box  drop-initial-before-adjust Sets the alignment point of the drop initial for the secondary connection point  drop-initial-before-align Sets which alignment line within the initial line box is used at the secondary connection point with the initial letter box  drop-initial-size Controls the partial sinking of the initial letter  drop-initial-value Activates a drop-initial effect

Linebox (continued)  inline-box-align Sets which line of a multi-line inline block align with the previous and next inline elements within a line  line-stacking A shorthand property for setting the line-stacking-strategy, line-stacking-ruby, and line-stacking-shift properties  line-stacking-ruby Sets the line stacking method for block elements containing ruby annotation elements  line-stacking-shift Sets the line stacking method for block elements containing elements with base-shift  line-stacking-strategy Sets the line stacking strategy for stacked line boxes within a containing block element  text-height Sets the block-progression dimension of the text content area of an inline box

Hyperlink  target A shorthand property for setting the target-name, target-new, and target-position properties  target-name Specifies where to open links (target destination)  target-new Specifies whether new destination links should open in a new window or in a new tab of an existing window  target-position Specifies where new destination links should be placed

Some CSS3 Resources…                         /css/         