Advanced CSS & CSS3.

Slides:



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

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.
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.
Neal Stublen Transforms  Defined by the transform property Translate Rotate Scale Skew  Apply to any element without affecting.
Diliev.com & pLOVEdiv.com  DIliev.com.
Intro to CSS3 Vishal Kurup. Cascading Style Sheets Developed to enable the separation of document content from document presentation Initial release in.
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.
TUTORIAL 4: CREATING PAGE LAYOUT WITH CSS Session 4.3.
4.01 Cascading Style Sheets
Web Design Transparent Backgrounds. Why : Allow text to appear clearly above a graphic background image that still can be seen in the background. Without.
CSS Box Model. What is the CSS Box Model? The “Box Model” is a tool we use to lay out our web pages in a number of individual "boxes" or "containers".
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?
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
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.
COMP213 – Web Interface Design
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.
INT222 - Internet Fundamentals Shi, Yue (Sunny) Office: T2095 SENECA COLLEGE.
Cascading Style Sheets Positioning Controls Visibility.
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.
Cascading Style Sheets (CSS) Part II IT210: Web-based IT.
Simple Website Layout Tutorial Using HTML 5 and CSS 3 Ref: layout-tutorial-html-5-css-3/
Cascading Styles Sheets Positioning HTML elements.
CSS.
CSS Box Model.
CSS 3 – Overview What is new in CSS 3? Nikolay Kostov
4.01 Cascading Style Sheets
Google fonts CSS box model
CSS Layouts: Grouping Elements
Unit 3 - Review.
CSS3 Style of the HTML document CSS2+New Specifications Differences
Cascading Style Sheets
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
Advanced CSS BIS1523 – Lecture 20.
Box model.
Cascading Style Sheets (Layout)
Web Systems & Technologies
Chapter 6 More CSS Basics Key Concepts
Cascading Style Sheets
Objectives Create a figure box Add a background image
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.
CSS Borders and Margins.
CSS Box Model.
MORE Cascading Style Sheets (The Positioning Model)
HTML5 Level I Session III
HTML5 Level I Session III
Box model, spacing, borders, backgrounds
Cascading Style Sheets
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
Grids, Floats & Flex Boxes
Basics of Web Design Chapter 6 More CSS Basics Key Concepts
CONTROLLING SIZES OF IMAGES USING CSS img.large { width: 500px; height: 500px;} img.medium { width: 250px; height: 250px;} img.small { width:
Book / movie report Web design.
SEEM4570 Tutorial 3: CSS + CSS3.0
How to use the CSS box model for spacing, borders, and backgrounds
Web Design & Development
CSS and Class Tools.
Advanced CSS.
4.01 Cascading Style Sheets
CSS Box Model.
CSS Box Model.
Cascading Style Sheets
ITI 133: HTML5 Desktop and Mobile Level I
Positioning Boxes Using CSS
Presentation transcript:

Advanced CSS & CSS3

CSS Backgrounds You already know: background-color:#BBDDFF; Some of you know how to use a picture: background-image:url('paper.gif'); You may know how to control if it repeats: background-repeat:repeat-x; or repeat-y, no-repeat Or if it’s fixed and doesn’t scroll: background-attachment:fixed;

CSS Backgrounds How about background-position? body{ background-image : url(‘liberty.png'); background-repeat : no-repeat; background-position : right top; margin-right:300px; }

CSS Backgrounds (cont’d) background-size property Value Description length Sets the width and height of the background image. The first value sets the width, the second value sets the height. If only one value is given, the second is set to "auto" percentage Sets the width and height of the background image in percent of the parent element. The first value sets the width, the second value sets the height. If only one value is given, the second is set to "auto" cover Scale the background image to be as large as possible so that the background area is completely covered by the background image. Some parts of the background image may not be in view within the background positioning area contain Scale the image to the largest size such that both its width and its height can fit inside the content area

CSS Positioning Lock an element so it’s not affected by scrolling: #mydiv { position:absolute; left:100px; top:150px; }

CSS Overflow Show scroll bars if the content doesn’t fit within a DIV: div.scroll { background-color:#00FFFF; width:100px; height:100px; overflow:scroll; }

CSS Transparency/Opacity .whitebox   {   width:400px;   height:180px;   margin:30px 50px;   background-color:#ffffff;   border:1px solid black;   opacity:0.6;   }

CSS3

CSS3 Borders Rounded corners: Shadow div { border:2px solid; border-radius:25px; } Shadow div { box-shadow: 10px 10px 5px #888888; }

CSS3 Gradients Linear gradients: Different browsers require different settings So we specify them all just in case background: linear-gradient(direction, color-stop1, color-stop2, ...); Example: #grad { background: -webkit-linear-gradient(red, blue); /* For Safari */ background: -o-linear-gradient(red, blue); /* For Opera 11.1 to 12.0 */ background: -moz-linear-gradient(red, blue); /* For Firefox 3.6 to 15 */ background: linear-gradient(red, blue); /* Standard syntax */ }

CSS3 Text Effects Text shadowing: h1 { text-shadow: 5px 5px 5px #FF0000; }

CSS3 Transforms Shifting, grow/shrink, rotate skew Example – rotation: div { transform: rotate(30deg); -ms-transform: rotate(30deg); /* IE 9 */ -webkit-transform: rotate(30deg); /* Safari and Chrome */ }

Exercise Create a page that has A gradient background 4 boxes – each with a div 1 that is semi-opaque 1 that is rotated 1 that has rounded borders with at a piece of text that has shadows. 1 That has more text than can fit in the box and has scroll bars.