Web Systems & Technologies

Slides:



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

1 Cascading Style Sheets Continued Different kinds of selectors in a style sheet –Simple- Pseudo-Class –Contextual- Pseudo-Element –Class Image Styles.
Cascading Style Sheets
Cascading Style Sheets
Chapter 6 More CSS Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
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.
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 )
Web Pages and Style Sheets Bert Wachsmuth. HTML versus XHTML XHTML is a stricter version of HTML: HTML + stricter rules = XHTML. XHTML Rule violations:
กระบวนวิชา CSS. What is CSS? CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to.
XP 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks Tutorial 7.
Working with Cascading Style Sheets. 2 Objectives Introducing Cascading Style Sheets Using Inline Styles Using Embedded Styles Using an External Style.
Working with Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of a document.
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.
CSS Positioning Creating Special Effects with CSS CS202 Working with Cascading Style Sheets (Chapter 4) CS202 1.
Introduction to Programming the WWW I CMSC Summer 2004 Lecture 7.
CHAPTER 3 CSS & CSS3 อ. ยืนยง กันทะเนตร คณะเทคโนโลยีสารสนเทศและการสื่อสาร มหาวิทยาลัยพะเยา 1.
XP Review 2 New Perspectives on JavaScript, Comprehensive1 Introducing Cascading Style Sheets Formatting Web Pages with CSS.
CNIT 132 – Week 4 Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of.
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.
CSS Cascading Style Sheets A very brief introduction CSS, Cascading Style Sheets1.
Understanding CSS Cascading Style Sheets control the presentation of content in HTML pages Style Sheets separate formatting from the content –Styles defined.
XP Tutorial 7New Perspectives on HTML and XHTML, Comprehensive 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks Tutorial 7.
Introduction to Programming the WWW I CMSC Summer 2004 Lecture 8.
WebD Introduction to CSS By Manik Rastogi.
CSS.
Working with Cascading Style Sheets
CSS for Styling By Jinzhu Gao.
CS3220 Web and Internet Programming CSS Basics
Formatting Text with CSS
( Cascading style sheet )
UNIT-II CSS.
CSS3 Style of the HTML document CSS2+New Specifications Differences
Tutorial 4 Topic: CSS 3.0 Li Xu
>> The “Box” Model
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
Chapter 3 Style Sheets: CSS
CSS3 Cascading Style Sheet
Cascading Style Sheets
IS333: MULTI-TIER APPLICATION DEVELOPMENT
Chapter 6 More CSS Basics Key Concepts
Cascading Style Sheets - Building a stylesheet
2017, Fall Pusan National University Ki-Joune Li
6 Layout.
Cascading Style Sheets
Basics of Web Design Chapter 6 More CSS Basics Key Concepts
MORE Cascading Style Sheets (The Positioning Model)
Box model, spacing, borders, backgrounds
Cascading Style Sheets
Basics of Web Design Chapter 6 More CSS Basics Key Concepts
Basics of Web Design Chapter 6 More CSS Basics Key Concepts
Cascading Style Sheets™ (CSS)
SEEM4570 Tutorial 3: CSS + CSS3.0
How to use the CSS box model for spacing, borders, and backgrounds
CS3220 Web and Internet Programming CSS Basics
CS3220 Web and Internet Programming CSS Basics
Cascading Style sheet. What is CSS?  CSS stands for Cascading Style Sheets  Cascading: refers to the procedure that determines which style will apply.
Cascading Style Sheets - Building a stylesheet
CS3220 Web and Internet Programming More CSS
Cascading Style Sheets
Web Client Side Technologies Raneem Qaddoura
CS3220 Web and Internet Programming More CSS
Web Programming and Design
Introduction to Cascading Style Sheets (CSS)
CGS 3066: Web Programming and Design Fall 2019
CS3220 Web and Internet Programming More CSS
Presentation transcript:

Web Systems & Technologies CS-3548 Prepared By: Junaid Hassan Lecturer at UOS M.B.Din Campus junaidte14@gmail.com

Introduction to CSS & CSS3 Topics: Introduction to CSS & CSS3

Intro to CSS: CSS means cascading style sheets CSS is a language that describes the style of an HTML document CSS is used to design the web page CSS properties are used to design the visual appearance of the web page CSS describes how HTML elements are to be displayed CSS saves a lot of work by defining styles of multiple web pages at once

CSS Syntax: p { background-color: blue; } Where ‘p’ is called selector ‘background-color’ is called as CSS property ‘blue’ is called the value of property

CSS Selectors: Element selector ID selector Class selector Grouping selectors CSS comments

Ways to Insert CSS: External stylesheet Internal stylesheet Inline style Multiple stylesheets

Cascading Order: What style will be used when there is more than one style specified for an HTML element? Inline style (defined inside HTML element) External and internal stylesheets Browser defined styles

CSS properties: Colors (name, rgb, hex), backgrounds (color, image, repeat, attachment, position), borders (width, style, color), margins (top, right, bottom, left), padding (top, right, bottom, left), width/height (min, max) CSS box model (content, padding, border, margin) Text (color, align, decoration, transform, indent, letter-spacing, line-height, direction, word-spacing, shadow), fonts (family, size, weight), links (link, visited, hover, active), lists (list-style), tables

CSS properties: Display (block, inline, none), max-width, overflow (visible, hidden, scroll, auto), position (static, relative, fixed, absolute), float, inline-block, align Combinator (div p, div > p, div + p, div ~ p), pseudo-class (a:hover, div li:nth-child(3)), pseudo-element (p::first-line, ::first-letter, ::before, ::after), opacity (0-1 for transparancy) background: #ffffff url("img_tree.png") no-repeat right top;

CSS3? CSS3 is the latest standard for CSS Completely compatible with CSS CSS3 has been split into modules Some important CSS3 modules are selectors, box model, backgrounds and border, 2D/3D transformations, animations, text effects etc. CSS3 properties are implemented in modern browsers Some older browsers still doesn’t support CSS3 properties

CSS3 properties: Rounded corners (border-radius), backgrounds(size, origin, clip), colors (RGBA, HSL, HSLA), gradients (smooth transition between 2 or more colors), shadow (text, box) 2D/3D tranformation (translate, rotate etc), transitions, animations Media Queries border-top-left-radius, border-top-right-radius, border-bottom-right-radius and border-bottom-left-radius background-origin: content-box; background-origin: padding-box; background-origin: border-box; (specify where background image is positioned) background-clip: content-box; background-clip: padding-box; background-clip: border-box; (defines the painting area for background) background: linear-gradient(red, yellow); radial-gradient(red, yellow, green)

2D/3D transformation: transform: translate(50px, 100px); transform: rotate(20deg); transform: scale(2, 3);

CSS3 Transitions: Allows to change property values smoothly div { width: 100px;     height: 100px;     background: red;     transition: width 2s; } div:hover {     width: 300px; }

CSS3 Animations: @keyframes example {     from {background-color: red;}     to {background-color: yellow;} } div {     width: 100px;     height: 100px;     background-color: red;     animation-name: example;     animation-duration: 4s; }

Media Queries: Used to make a web page responsive Using media queries we can define css rules for different screen sizes and mobile devices @media (max-width: 992px){ body{background-color: red;} } @media (max-width: 767px){ body{background-color: blue;} @media (max-width: 400px){ body{background-color: orange;}

References: http://w3schools.com/css