SlideShare ist ein Scribd-Unternehmen logo
1 von 41
Downloaden Sie, um offline zu lesen
2 December 2005
Web Technologies
CSS3 and Responsive Web Design
Prof. Beat Signer
Department of Computer Science
Vrije Universiteit Brussel
http://www.beatsigner.com
Beat Signer - Department of Computer Science - bsigner@vub.ac.be 2October 28, 2016
Cascading Style Sheets (CSS)
 Separation of presentation and content
 visualisation of HTML elements defined by styles
 enables multiple presentations of the same content
 media-specific style sheets via the media attribute
<html>
<head>
...
<link ref="stylesheet" type="text/css" href="default.css"
media="screen, tv" />
<link rel="stylesheet" type="text/css" href="alternative.css"
media="print, handheld" />
</head>
<body>
...
</body>
</html>
Beat Signer - Department of Computer Science - bsigner@vub.ac.be 3October 28, 2016
CSS Versions
 CSS1 specification published in 1996
 remember that HTML 3.2 introduced some elements and
attributes (e.g. color) for the visual appearance in 1997
 CSS2 specification published in 1998
 superset of CSS1
 functionality for relative, absolute and fixed positoning of elements
 media types
 CSS3 divided into separate modules (documents)
 2D & 3D transforms
 transitions
 Flexbox
 media queries
 ...
Beat Signer - Department of Computer Science - bsigner@vub.ac.be 4October 28, 2016
CSS Versions
Sergey Mavrody, 2014
Beat Signer - Department of Computer Science - bsigner@vub.ac.be 5October 28, 2016
CSS Syntax
 CSS rule consists of two parts
 a selector
- HTML element
 a declaration block (at least one property and value)
- surrounded by curly braces
- multiple properties are separated with a semicolon
 Example
selector {
property1: value1;
property2: value2;
}
h1 {
color: red;
font-size: 10px;
}
Beat Signer - Department of Computer Science - bsigner@vub.ac.be 6October 28, 2016
Selectors
 Selectors are used to target rules to specific elements in
an HTML document (case sensitive)
 Universal selector
 all elements in the document
 Element/Type selector
 specific element names
 ID selector
 element with a specific value for the id attribute
* { ... }
p { ... }
h1, h2, h3 { ... } /* also called grouping selector */
#intro { ... } /* always more weight than class selector */
Beat Signer - Department of Computer Science - bsigner@vub.ac.be 7October 28, 2016
Selectors …
 Class selector
 elements with the given class attribute value (elements can have
more than one class)
 Child selector
 elements that are direct children of other elements
 Descendant selector
 elements that are descendants of other elements
.main { ... } /* any element with a 'main' class value' */
h1.main { ... }
p>a { ... }
p a { ... }
Beat Signer - Department of Computer Science - bsigner@vub.ac.be 8October 28, 2016
Selectors …
 Attribute selector
 elements with a given attribute value
 Pseudo element selectors
 treated like extra elements
 Pseudo class selector
 act like additional values for a class attribute
p[type] { ... } /* p element with an attribute called type (existence) */
p[type="new"] { ... } /* p element with attribute value 'new' (equality) */
p[type^="n"] { ... } /* type attribute value starts with letter 'n' */
p[type*="do"] { ... } /* type attribute contains substring 'do' */
h1.main:first-letter { ... }
a:link { ... }
a:visited { ... }
a:hover { ... }
Beat Signer - Department of Computer Science - bsigner@vub.ac.be 9October 28, 2016
Rule Order
 For identical selectors, the last rule will be applied
 Furthermore, we have the following internal priorities
(1) rules containing IDs
(2) rules containing classes (or pseudo classes) and attributes
(3) rules containing elements (or pseudo elements)
 Rules for selectors that are more specific than the others
have preference
* { color: red; }
p b { color: pink; } /* more specific than p selector */
p { color: blue; }
p { color: green; } /* last rule for p selector */
Beat Signer - Department of Computer Science - bsigner@vub.ac.be 10October 28, 2016
Inheritance
 Some properties such a color or font-family are
inherited by most child elements
 leads to simpler style sheets
 The inheritance of properties can be enforced via the
inherit keyword
body {
color: red; /* inherited by child elements */
padding: 10px; /* normally not inherited */
}
p {
padding: inherit; /* explicitly inherited from parent element */
}
Beat Signer - Department of Computer Science - bsigner@vub.ac.be 11October 28, 2016
CSS Inclusion
 There are three ways how CSS can be included in HTML
 inline style
 internal style sheet
 external style sheet
 Inline style
 defined via the style attribute of the corresponding
HTML element
 still mixes content and presentation and should therefore be
avoided whenever possible
<h1 style="color:red; font-size:10px">Urgent Tasks</h1>
Beat Signer - Department of Computer Science - bsigner@vub.ac.be 12October 28, 2016
CSS Inclusion ...
 Internal style sheet
 used when a single document has a unique style
 defined in the <head> section
 e.g. used in HTML-encoded emails
<html>
<head>
...
<style>
h1 {color: red; font-size: 10px;}
p {color: blue;}
...
</style>
</head>
<body>
...
</body>
</html>
Beat Signer - Department of Computer Science - bsigner@vub.ac.be 13October 28, 2016
CSS Inclusion ...
 External style sheet (in *.css file)
 changes to the overall appearance of an entire website can be
managed in a single file
- removes a lot of potential redundancy
- saves a lot of time
- leads to more consistent websites
<html>
<head>
...
<link rel="stylesheet" type="text/css" href="default.css" />
</head>
<body>
...
</body>
</html>
Beat Signer - Department of Computer Science - bsigner@vub.ac.be 14October 28, 2016
Multiple Style Sheets (Cascading)
 Multiple styles will cascade into a single one
 properties/values are inherited from more specific style sheets
 Overriding priorities
(1) inline style (highest priority)
(2) internal style sheet
(3) external style sheet
(4) default browser style
 Note that if the link to the external style sheet in the
<head> section is placed after the internal style sheet, then the
external style sheet will override the internal one
 A stylesheet can import other stylesheets via @import
Beat Signer - Department of Computer Science - bsigner@vub.ac.be 15October 28, 2016
Box Model
 Box that wraps every single HTML element (content)
 by default the box is just big enough to keep its content
 padding
- transparent area around the content
 border
- around the padding
 margin
- transparent area around the border
margin
padding
border
content
div {
width: 300px; /* only content area */
padding: 10px;
border: 10px red;
margin: 5px;
}
Beat Signer - Department of Computer Science - bsigner@vub.ac.be 16October 28, 2016
Box Model …
 By default the width of a box only defines the width of
the content
 padding and border are added to that width
 Behaviour can be changed via the box-sizing
property
 content-box (default) or border-box
 width in border-box "mode" includes padding and border width
* {
box-sizing: border-box; /* use border-box for the whole page */
}
Beat Signer - Department of Computer Science - bsigner@vub.ac.be 17October 28, 2016
Box Model …
 Boxes can be either block-level boxes or inline boxes
 block-level boxes start on a new line
- main building blocks of any layout
- e.g. <p>, <h1>, <ul>, or <li>
 inline boxes flow between sourrounding text
- e.g. <b>, <i> or <img>
 Block-level boxes (elements) can be grouped
 e.g. number of elements grouped via <div> in a containing or
parent element
 Behaviour can be changed via display property
li {
display: inline; /* no longer treated as block-level element */
margin-right: 5px; /* list items shown next to each other with space */
}
Beat Signer - Department of Computer Science - bsigner@vub.ac.be 18October 28, 2016
Box Model …
 CSS3 further introduces a new Flexbox layout mode
 new flex and inline-flex values for the display property
Beat Signer - Department of Computer Science - bsigner@vub.ac.be 19October 28, 2016
Measurements
 Absolute or relative units of measurements can be used
 Absolute units
 px: pixels are not necessary consistent across devices
 cm, mm and in: one centimeter is 37.8 pixels, a milimeter 3.78
pixels and an inch 96 pixels (also not consistent across devices)
 pt: a point is equal to 1/72 of an inch (common in print design)
 Relative units
 %: percentage measured against the content
 em: ems are relative to the font size of the element
 rem: rems are relative to the font size of the document
Beat Signer - Department of Computer Science - bsigner@vub.ac.be 20October 28, 2016
Layout
 Elements (boxes) can be positioned via the position
property
 static (default), relative, absolute or fixed position
 In normal flow (static) each block-level element starts
on a new line
p {
position: static; /* optional since it is the default anyway */
width: 400px;
}
Beat Signer - Department of Computer Science - bsigner@vub.ac.be 21October 28, 2016
Layout …
 Relative positioning moves the element in relation to
where it would have been shown
 Absolute position takes box out of the normal flow
p.test {
position: relative;
width: 400px;
left: 100px; /* move 100 pixels to the right */
top: 20px; /* move 20 pixels down */
}
p.test {
position: absolute;
width: 200px;
left: 300px; /* position the element 300 pixels from the left */
top: 0px; /* position element at the top (of the containing element) */
}
Beat Signer - Department of Computer Science - bsigner@vub.ac.be 22October 28, 2016
Layout …
 Fixed positioning renders an element relative to the
browser window
 scrolling no longer changes the position
 Boxes with a relative, absolute or fixed position might
overlap
 z-index property can be used to control the ordering (higher
values are closer to the front)
p.test {
position: fixed;
width: 400px;
right: 0px;
top: 0px; /* positions the paragraph at the top right corner */
}
Beat Signer - Department of Computer Science - bsigner@vub.ac.be 23October 28, 2016
Floats
 Elements can also be positioned via the float property
 succeeding elements will flow around the element
 floating can be stopped via the clear property
<p>...</p>
<img class="floatLeft" src="logo.jpg" alt="logo">
<p>...</p>
<h2 class="clearLeft">History</h2>
floatLeft { float: left; }
clearLeft { clear: left; }
Beat Signer - Department of Computer Science - bsigner@vub.ac.be 24October 28, 2016
Responsive Web Design (RWD)
 Websites originally
designed with a fixed size
to fit common desktop and
laptop screen sizes
 e.g. 960-pixel-wide layout
 Around 2007 mobile
phones able to render
standard HTML pages
 dedicated mobile version of
website (e.g. 320-pixel-wide)
- redirection to m-dot websites
Beat Signer - Department of Computer Science - bsigner@vub.ac.be 25October 28, 2016
Responsive Web Design (RWD) …
 Problem of maintainability as more versions added
 different phone display sizes and new devices (e.g. iPad)
 Design websites that can easily be viewed on devices
with various screen sizes
 Only one version of the website (one HTML structure)
 design rearranges itself to perfectly fit the screen size
- e.g. single column on mobile device and multiple columns on wider desktop
screens
 use different CSS styles based on media queries
 only since CSS3 it is possible to query features such as the
screen width and height or the colour capabilities
 flexibility via relative horizontal measurements (e.g. percentage)
 should automatically look decent on future devices
Beat Signer - Department of Computer Science - bsigner@vub.ac.be 26October 28, 2016
Content Strategy
 Think about the content before thinking about the design
of a website
 address user needs
 Most important information should be at the top of a
page
 Divide content into chunks that can be rearranged on a
page
 All users (regardless of the device) should have access
to all the content of a website
Beat Signer - Department of Computer Science - bsigner@vub.ac.be 27October 28, 2016
The Viewport
 Viewport defines the visible area of a web page
 without scrollbars, browser borders etc.
 HTML5 introduced a new method to control the viewport
via a meta tag
 Avoid large fixed width for elements
 elements (e.g. images) that are wider than the viewport might
lead to horizontal scrollbars (poor user experience)
 Do not rely on a particular viewport width for a page to
render well
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Beat Signer - Department of Computer Science - bsigner@vub.ac.be 28October 28, 2016
Media Queries
 CSS2 allowed media queries for media types
 e.g. screen or print
 CSS3 allows media queries to apply different declaration
blocks based on device properties (e.g. viewport width)
 e.g. typically change the number of columns, navigation, font size
or image size
body {
font-size: 12px;
background-color: red;
}
@media only screen and (min-width: 40em) {
body { background-color: green; }
}
Beat Signer - Department of Computer Science - bsigner@vub.ac.be 29October 28, 2016
Media Queries
 Device properties that can be queried via CSS3
 viewport width (width) and height (height)
 screen width (device-width) and height (device-height)
 orientation (orientation) which can be landscape or portrait
 aspect ratio (aspect-ratio or device-aspect-ratio)
- e.g. 16:9 or 4:3
 resolution (resolution) of the device screen
- e.g. 300 dpi
 does the device support colour (color)
 …
Beat Signer - Department of Computer Science - bsigner@vub.ac.be 30October 28, 2016
Breakpoints
 Breakpoint is the point
where we use a media
query to change the
design
 e.g. change the number of
columns or font size
 Design range is the range
between two breakpoints
 design should look good
anywhere within a design
range
Beat Signer - Department of Computer Science - bsigner@vub.ac.be 31October 28, 2016
Designing Responsive Solutions
 Mobile-first approach
 start with the basic design (default design) for the narrowest
design range and devices that might not support media queries
 Progressive enhancement via different layers ensures
that page is also accessible without CSS and JavaScript
1. HTML
2. CSS (with potential media queries)
3. JavaScript
 Responsive design is often based on grids
 12-column grid is very common
 columns can be grouped
Beat Signer - Department of Computer Science - bsigner@vub.ac.be 32October 28, 2016
Multi-Column Layout
 Compute the percentage for each column and the space
between the columns
 e.g. 4-column layout with 21% for each column, 2% between the
columns and 5% for the left and right border
5% 5%21% 21% 21% 21%2% 2% 2%
<article> <aside>
<footer>
Beat Signer - Department of Computer Science - bsigner@vub.ac.be 33October 28, 2016
Multi-Column Layout …
 Example of a breakpoint between a single column layout
and 2-column layout
@media only screen and (min-width: 40em) {
article {
width: 67%;
float: left;
margin-right: 0;
}
aside {
width: 21%;
float: right;
margin-left: 0;
}
footer {
clear: both;
}
}
Beat Signer - Department of Computer Science - bsigner@vub.ac.be 34October 28, 2016
Images
 Scaling of images can be controlled
 e.g. via max-width property
 Offer different sizes of an image
 e.g. via the HTML5 picture element
img {
max-width: 100%; /* do not scale up images */
height: auto;
}
<picture>
<source srcset="smallfBird.jpg" media="(max-width: 300px)">
<source srcset="bird.jpg">
<img src="bird.jpg" alt="Bird"> /* fallback */
</picture>
Beat Signer - Department of Computer Science - bsigner@vub.ac.be 35October 28, 2016
RWD Frameworks
 Bootstrap
 mobile-first design philosophy
 provides a set of CSS style sheets for the formatting of key HTML
components
 additional reusable components (e.g. advanced buttons)
 JavaScript components (e.g. UI elements)
 Skeleton
 …
Beat Signer - Department of Computer Science - bsigner@vub.ac.be 36October 28, 2016
Use Case: MindXpres
 MindXpres presentations
are currently represented
in an XML document
format
 Compiler (node.js
application) translates
XML to HTML
 Presentation engine
based on HTML5 and
related APIs
 e.g. WebSockets for
connectivity
Beat Signer - Department of Computer Science - bsigner@vub.ac.be 37October 28, 2016
Exercise 6
 No Exercise
 use time to prepare interim project presentation
Beat Signer - Department of Computer Science - bsigner@vub.ac.be 38October 28, 2016
References
 Learning Responsive Web Design:
A Beginner's Guide, Clarissa Peterson,
O'Reilly Media (1st edition), June 2014
ISBN-13: 978-1449362942
 HTML and CSS: Design and Build Websites,
Jon Duckett, Wiley (1st edition),
November 2011
ISBN-13: 978-1118008188
Beat Signer - Department of Computer Science - bsigner@vub.ac.be 39October 28, 2016
References …
 Cascading Style Sheets (CSS) Snapshot 2010,
W3C Working Group Note
 http://www.w3.org/TR/CSS/
 Molly E. Holzschlag, Core CSS (Part I, II & III)
(refcardz #19, #25 and #34)
 http://refcardz.dzone.com/refcardz/corecss-part1
 http://refcardz.dzone.com/refcardz/corecss2
 http://refcardz.dzone.com/refcardz/corecss3
 CSS Tutorial
 http://www.w3schools.com/css/
Beat Signer - Department of Computer Science - bsigner@vub.ac.be 40October 28, 2016
References ...
 MDN CSS Reference
 https://developer.mozilla.org/en-US/docs/Web/CSS/Reference
 Webplatform.orgl
 http://docs.webplatform.org/wiki/css
 Bootstrap
 http://getbootstrap.com
 R. Roels and B. Signer, MindXpres: An Extensible
Content-driven Cross-Media Presentation Platform,
Proceedings of WISE 2014, 15th International
Conference on Web Information System Engineering,
Thessaloniki, Greece, October, 2014
 http://beatsigner.com/publications/roels_WISE2014.pdf
2 December 2005
Next Lecture
JavaScript and jQuery

Weitere ähnliche Inhalte

Andere mochten auch

Semantic Web and Web 3.0 - Web Technologies (1019888BNR)
Semantic Web and Web 3.0 - Web Technologies (1019888BNR)Semantic Web and Web 3.0 - Web Technologies (1019888BNR)
Semantic Web and Web 3.0 - Web Technologies (1019888BNR)Beat Signer
 
Course Review - Lecture 12 - Next Generation User Interfaces (4018166FNR)
Course Review - Lecture 12 - Next Generation User Interfaces (4018166FNR)Course Review - Lecture 12 - Next Generation User Interfaces (4018166FNR)
Course Review - Lecture 12 - Next Generation User Interfaces (4018166FNR)Beat Signer
 
Web 2.0 Patterns and Technologies - Web Technologies (1019888BNR)
Web 2.0 Patterns and Technologies - Web Technologies (1019888BNR)Web 2.0 Patterns and Technologies - Web Technologies (1019888BNR)
Web 2.0 Patterns and Technologies - Web Technologies (1019888BNR)Beat Signer
 
Web Search and SEO - Web Technologies (1019888BNR)
Web Search and SEO - Web Technologies (1019888BNR)Web Search and SEO - Web Technologies (1019888BNR)
Web Search and SEO - Web Technologies (1019888BNR)Beat Signer
 
Structured Query Language (SQL) - Lecture 5 - Introduction to Databases (1007...
Structured Query Language (SQL) - Lecture 5 - Introduction to Databases (1007...Structured Query Language (SQL) - Lecture 5 - Introduction to Databases (1007...
Structured Query Language (SQL) - Lecture 5 - Introduction to Databases (1007...Beat Signer
 
Sql Server execution plans
Sql Server execution plansSql Server execution plans
Sql Server execution plansFlorin Cardasim
 
XML on SQL Server
XML on SQL ServerXML on SQL Server
XML on SQL Servertorp42
 
7a advanced tsql
7a   advanced tsql7a   advanced tsql
7a advanced tsqlNauman R
 
Security, Privacy and Trust - Web Technologies (1019888BNR)
Security, Privacy and Trust - Web Technologies (1019888BNR)Security, Privacy and Trust - Web Technologies (1019888BNR)
Security, Privacy and Trust - Web Technologies (1019888BNR)Beat Signer
 
Gesture-based Interaction - Lecture 08 - Next Generation User Interfaces (401...
Gesture-based Interaction - Lecture 08 - Next Generation User Interfaces (401...Gesture-based Interaction - Lecture 08 - Next Generation User Interfaces (401...
Gesture-based Interaction - Lecture 08 - Next Generation User Interfaces (401...Beat Signer
 
Information Architectures - Lecture 04 - Next Generation User Interfaces (401...
Information Architectures - Lecture 04 - Next Generation User Interfaces (401...Information Architectures - Lecture 04 - Next Generation User Interfaces (401...
Information Architectures - Lecture 04 - Next Generation User Interfaces (401...Beat Signer
 
Interactive Tabletops and Surfaces - Lecture 07 - Next Generation User Interf...
Interactive Tabletops and Surfaces - Lecture 07 - Next Generation User Interf...Interactive Tabletops and Surfaces - Lecture 07 - Next Generation User Interf...
Interactive Tabletops and Surfaces - Lecture 07 - Next Generation User Interf...Beat Signer
 
Interaction Design - Lecture 2 - Next Generation User Interfaces (4018166FNR)
Interaction Design - Lecture 2 - Next Generation User Interfaces (4018166FNR)Interaction Design - Lecture 2 - Next Generation User Interfaces (4018166FNR)
Interaction Design - Lecture 2 - Next Generation User Interfaces (4018166FNR)Beat Signer
 
XML and Related Technologies - Web Technologies (1019888BNR)
XML and Related Technologies - Web Technologies (1019888BNR)XML and Related Technologies - Web Technologies (1019888BNR)
XML and Related Technologies - Web Technologies (1019888BNR)Beat Signer
 
Virtual and Augmented Reality - Lecture 10 - Next Generation User Interfaces ...
Virtual and Augmented Reality - Lecture 10 - Next Generation User Interfaces ...Virtual and Augmented Reality - Lecture 10 - Next Generation User Interfaces ...
Virtual and Augmented Reality - Lecture 10 - Next Generation User Interfaces ...Beat Signer
 
Multimodal Interaction - Lecture 05 - Next Generation User Interfaces (401816...
Multimodal Interaction - Lecture 05 - Next Generation User Interfaces (401816...Multimodal Interaction - Lecture 05 - Next Generation User Interfaces (401816...
Multimodal Interaction - Lecture 05 - Next Generation User Interfaces (401816...Beat Signer
 
Requirements Analysis, Prototyping and Evaluation - Lecture 03 - Next Generat...
Requirements Analysis, Prototyping and Evaluation - Lecture 03 - Next Generat...Requirements Analysis, Prototyping and Evaluation - Lecture 03 - Next Generat...
Requirements Analysis, Prototyping and Evaluation - Lecture 03 - Next Generat...Beat Signer
 

Andere mochten auch (20)

Semantic Web and Web 3.0 - Web Technologies (1019888BNR)
Semantic Web and Web 3.0 - Web Technologies (1019888BNR)Semantic Web and Web 3.0 - Web Technologies (1019888BNR)
Semantic Web and Web 3.0 - Web Technologies (1019888BNR)
 
Course Review - Lecture 12 - Next Generation User Interfaces (4018166FNR)
Course Review - Lecture 12 - Next Generation User Interfaces (4018166FNR)Course Review - Lecture 12 - Next Generation User Interfaces (4018166FNR)
Course Review - Lecture 12 - Next Generation User Interfaces (4018166FNR)
 
Web 2.0 Patterns and Technologies - Web Technologies (1019888BNR)
Web 2.0 Patterns and Technologies - Web Technologies (1019888BNR)Web 2.0 Patterns and Technologies - Web Technologies (1019888BNR)
Web 2.0 Patterns and Technologies - Web Technologies (1019888BNR)
 
Web Search and SEO - Web Technologies (1019888BNR)
Web Search and SEO - Web Technologies (1019888BNR)Web Search and SEO - Web Technologies (1019888BNR)
Web Search and SEO - Web Technologies (1019888BNR)
 
Structured Query Language (SQL) - Lecture 5 - Introduction to Databases (1007...
Structured Query Language (SQL) - Lecture 5 - Introduction to Databases (1007...Structured Query Language (SQL) - Lecture 5 - Introduction to Databases (1007...
Structured Query Language (SQL) - Lecture 5 - Introduction to Databases (1007...
 
Sql Server execution plans
Sql Server execution plansSql Server execution plans
Sql Server execution plans
 
D drops
D drops D drops
D drops
 
XML on SQL Server
XML on SQL ServerXML on SQL Server
XML on SQL Server
 
7a advanced tsql
7a   advanced tsql7a   advanced tsql
7a advanced tsql
 
Security, Privacy and Trust - Web Technologies (1019888BNR)
Security, Privacy and Trust - Web Technologies (1019888BNR)Security, Privacy and Trust - Web Technologies (1019888BNR)
Security, Privacy and Trust - Web Technologies (1019888BNR)
 
Gesture-based Interaction - Lecture 08 - Next Generation User Interfaces (401...
Gesture-based Interaction - Lecture 08 - Next Generation User Interfaces (401...Gesture-based Interaction - Lecture 08 - Next Generation User Interfaces (401...
Gesture-based Interaction - Lecture 08 - Next Generation User Interfaces (401...
 
Information Architectures - Lecture 04 - Next Generation User Interfaces (401...
Information Architectures - Lecture 04 - Next Generation User Interfaces (401...Information Architectures - Lecture 04 - Next Generation User Interfaces (401...
Information Architectures - Lecture 04 - Next Generation User Interfaces (401...
 
Interactive Tabletops and Surfaces - Lecture 07 - Next Generation User Interf...
Interactive Tabletops and Surfaces - Lecture 07 - Next Generation User Interf...Interactive Tabletops and Surfaces - Lecture 07 - Next Generation User Interf...
Interactive Tabletops and Surfaces - Lecture 07 - Next Generation User Interf...
 
SQL Functions
SQL FunctionsSQL Functions
SQL Functions
 
Interaction Design - Lecture 2 - Next Generation User Interfaces (4018166FNR)
Interaction Design - Lecture 2 - Next Generation User Interfaces (4018166FNR)Interaction Design - Lecture 2 - Next Generation User Interfaces (4018166FNR)
Interaction Design - Lecture 2 - Next Generation User Interfaces (4018166FNR)
 
XML and Related Technologies - Web Technologies (1019888BNR)
XML and Related Technologies - Web Technologies (1019888BNR)XML and Related Technologies - Web Technologies (1019888BNR)
XML and Related Technologies - Web Technologies (1019888BNR)
 
Virtual and Augmented Reality - Lecture 10 - Next Generation User Interfaces ...
Virtual and Augmented Reality - Lecture 10 - Next Generation User Interfaces ...Virtual and Augmented Reality - Lecture 10 - Next Generation User Interfaces ...
Virtual and Augmented Reality - Lecture 10 - Next Generation User Interfaces ...
 
Multimodal Interaction - Lecture 05 - Next Generation User Interfaces (401816...
Multimodal Interaction - Lecture 05 - Next Generation User Interfaces (401816...Multimodal Interaction - Lecture 05 - Next Generation User Interfaces (401816...
Multimodal Interaction - Lecture 05 - Next Generation User Interfaces (401816...
 
Requirements Analysis, Prototyping and Evaluation - Lecture 03 - Next Generat...
Requirements Analysis, Prototyping and Evaluation - Lecture 03 - Next Generat...Requirements Analysis, Prototyping and Evaluation - Lecture 03 - Next Generat...
Requirements Analysis, Prototyping and Evaluation - Lecture 03 - Next Generat...
 
Sql operators & functions 3
Sql operators & functions 3Sql operators & functions 3
Sql operators & functions 3
 

Ähnlich wie CSS3 and Responsive Web Design - Web Technologies (1019888BNR)

CSS3 and Responsive Web Design - Web Technologies (1019888BNR)
CSS3 and Responsive Web Design - Web Technologies (1019888BNR)CSS3 and Responsive Web Design - Web Technologies (1019888BNR)
CSS3 and Responsive Web Design - Web Technologies (1019888BNR)Beat Signer
 
How Cascading Style Sheets (CSS) Works
How Cascading Style Sheets (CSS) WorksHow Cascading Style Sheets (CSS) Works
How Cascading Style Sheets (CSS) WorksAmit Tyagi
 
Front-End Methodologies
Front-End MethodologiesFront-End Methodologies
Front-End MethodologiesArash Manteghi
 
Web 2 | CSS - Cascading Style Sheets
Web 2 | CSS - Cascading Style SheetsWeb 2 | CSS - Cascading Style Sheets
Web 2 | CSS - Cascading Style SheetsMohammad Imam Hossain
 
CSS Fundamentals: selectors and Properties
CSS Fundamentals: selectors and PropertiesCSS Fundamentals: selectors and Properties
CSS Fundamentals: selectors and PropertiesPedro Valente
 
Web Programming& Scripting Lab
Web Programming& Scripting LabWeb Programming& Scripting Lab
Web Programming& Scripting LabSwapnali Pawar
 
Webpage style with CSS
Webpage style with CSSWebpage style with CSS
Webpage style with CSSHemant Patidar
 
JavaScript and jQuery - Web Technologies (1019888BNR)
JavaScript and jQuery - Web Technologies (1019888BNR)JavaScript and jQuery - Web Technologies (1019888BNR)
JavaScript and jQuery - Web Technologies (1019888BNR)Beat Signer
 
Cascading Style Sheets - Part 01
Cascading Style Sheets - Part 01Cascading Style Sheets - Part 01
Cascading Style Sheets - Part 01Hatem Mahmoud
 
Howcssworks 100207024009-phpapp01
Howcssworks 100207024009-phpapp01Howcssworks 100207024009-phpapp01
Howcssworks 100207024009-phpapp01Likitha47
 

Ähnlich wie CSS3 and Responsive Web Design - Web Technologies (1019888BNR) (20)

CSS3 and Responsive Web Design - Web Technologies (1019888BNR)
CSS3 and Responsive Web Design - Web Technologies (1019888BNR)CSS3 and Responsive Web Design - Web Technologies (1019888BNR)
CSS3 and Responsive Web Design - Web Technologies (1019888BNR)
 
CSS
CSSCSS
CSS
 
How Cascading Style Sheets (CSS) Works
How Cascading Style Sheets (CSS) WorksHow Cascading Style Sheets (CSS) Works
How Cascading Style Sheets (CSS) Works
 
Front-End Methodologies
Front-End MethodologiesFront-End Methodologies
Front-End Methodologies
 
An Introduction to CSS
An Introduction to CSSAn Introduction to CSS
An Introduction to CSS
 
Pfnp slides
Pfnp slidesPfnp slides
Pfnp slides
 
Web 2 | CSS - Cascading Style Sheets
Web 2 | CSS - Cascading Style SheetsWeb 2 | CSS - Cascading Style Sheets
Web 2 | CSS - Cascading Style Sheets
 
Css3
Css3Css3
Css3
 
CSS Fundamentals: selectors and Properties
CSS Fundamentals: selectors and PropertiesCSS Fundamentals: selectors and Properties
CSS Fundamentals: selectors and Properties
 
Web Programming& Scripting Lab
Web Programming& Scripting LabWeb Programming& Scripting Lab
Web Programming& Scripting Lab
 
Css
CssCss
Css
 
css v1 guru
css v1 gurucss v1 guru
css v1 guru
 
Webpage style with CSS
Webpage style with CSSWebpage style with CSS
Webpage style with CSS
 
CSS.pptx
CSS.pptxCSS.pptx
CSS.pptx
 
Css introduction
Css  introductionCss  introduction
Css introduction
 
JavaScript and jQuery - Web Technologies (1019888BNR)
JavaScript and jQuery - Web Technologies (1019888BNR)JavaScript and jQuery - Web Technologies (1019888BNR)
JavaScript and jQuery - Web Technologies (1019888BNR)
 
Cascading Style Sheets - Part 01
Cascading Style Sheets - Part 01Cascading Style Sheets - Part 01
Cascading Style Sheets - Part 01
 
Howcssworks 100207024009-phpapp01
Howcssworks 100207024009-phpapp01Howcssworks 100207024009-phpapp01
Howcssworks 100207024009-phpapp01
 
CSS1.pptx
CSS1.pptxCSS1.pptx
CSS1.pptx
 
Session ii(html)
Session ii(html)Session ii(html)
Session ii(html)
 

Mehr von Beat Signer

Introduction - Lecture 1 - Human-Computer Interaction (1023841ANR)
Introduction - Lecture 1 - Human-Computer Interaction (1023841ANR)Introduction - Lecture 1 - Human-Computer Interaction (1023841ANR)
Introduction - Lecture 1 - Human-Computer Interaction (1023841ANR)Beat Signer
 
Indoor Positioning Using the OpenHPS Framework
Indoor Positioning Using the OpenHPS FrameworkIndoor Positioning Using the OpenHPS Framework
Indoor Positioning Using the OpenHPS FrameworkBeat Signer
 
Personalised Learning Environments Based on Knowledge Graphs and the Zone of ...
Personalised Learning Environments Based on Knowledge Graphs and the Zone of ...Personalised Learning Environments Based on Knowledge Graphs and the Zone of ...
Personalised Learning Environments Based on Knowledge Graphs and the Zone of ...Beat Signer
 
Cross-Media Technologies and Applications - Future Directions for Personal In...
Cross-Media Technologies and Applications - Future Directions for Personal In...Cross-Media Technologies and Applications - Future Directions for Personal In...
Cross-Media Technologies and Applications - Future Directions for Personal In...Beat Signer
 
Bridging the Gap: Managing and Interacting with Information Across Media Boun...
Bridging the Gap: Managing and Interacting with Information Across Media Boun...Bridging the Gap: Managing and Interacting with Information Across Media Boun...
Bridging the Gap: Managing and Interacting with Information Across Media Boun...Beat Signer
 
Codeschool in a Box: A Low-Barrier Approach to Packaging Programming Curricula
Codeschool in a Box: A Low-Barrier Approach to Packaging Programming CurriculaCodeschool in a Box: A Low-Barrier Approach to Packaging Programming Curricula
Codeschool in a Box: A Low-Barrier Approach to Packaging Programming CurriculaBeat Signer
 
The RSL Hypermedia Metamodel and Its Application in Cross-Media Solutions
The RSL Hypermedia Metamodel and Its Application in Cross-Media Solutions The RSL Hypermedia Metamodel and Its Application in Cross-Media Solutions
The RSL Hypermedia Metamodel and Its Application in Cross-Media Solutions Beat Signer
 
Case Studies and Course Review - Lecture 12 - Information Visualisation (4019...
Case Studies and Course Review - Lecture 12 - Information Visualisation (4019...Case Studies and Course Review - Lecture 12 - Information Visualisation (4019...
Case Studies and Course Review - Lecture 12 - Information Visualisation (4019...Beat Signer
 
Dashboards - Lecture 11 - Information Visualisation (4019538FNR)
Dashboards - Lecture 11 - Information Visualisation (4019538FNR)Dashboards - Lecture 11 - Information Visualisation (4019538FNR)
Dashboards - Lecture 11 - Information Visualisation (4019538FNR)Beat Signer
 
Interaction - Lecture 10 - Information Visualisation (4019538FNR)
Interaction - Lecture 10 - Information Visualisation (4019538FNR)Interaction - Lecture 10 - Information Visualisation (4019538FNR)
Interaction - Lecture 10 - Information Visualisation (4019538FNR)Beat Signer
 
View Manipulation and Reduction - Lecture 9 - Information Visualisation (4019...
View Manipulation and Reduction - Lecture 9 - Information Visualisation (4019...View Manipulation and Reduction - Lecture 9 - Information Visualisation (4019...
View Manipulation and Reduction - Lecture 9 - Information Visualisation (4019...Beat Signer
 
Visualisation Techniques - Lecture 8 - Information Visualisation (4019538FNR)
Visualisation Techniques - Lecture 8 - Information Visualisation (4019538FNR)Visualisation Techniques - Lecture 8 - Information Visualisation (4019538FNR)
Visualisation Techniques - Lecture 8 - Information Visualisation (4019538FNR)Beat Signer
 
Design Guidelines and Principles - Lecture 7 - Information Visualisation (401...
Design Guidelines and Principles - Lecture 7 - Information Visualisation (401...Design Guidelines and Principles - Lecture 7 - Information Visualisation (401...
Design Guidelines and Principles - Lecture 7 - Information Visualisation (401...Beat Signer
 
Data Processing and Visualisation Frameworks - Lecture 6 - Information Visual...
Data Processing and Visualisation Frameworks - Lecture 6 - Information Visual...Data Processing and Visualisation Frameworks - Lecture 6 - Information Visual...
Data Processing and Visualisation Frameworks - Lecture 6 - Information Visual...Beat Signer
 
Data Presentation - Lecture 5 - Information Visualisation (4019538FNR)
Data Presentation - Lecture 5 - Information Visualisation (4019538FNR)Data Presentation - Lecture 5 - Information Visualisation (4019538FNR)
Data Presentation - Lecture 5 - Information Visualisation (4019538FNR)Beat Signer
 
Analysis and Validation - Lecture 4 - Information Visualisation (4019538FNR)
Analysis and Validation - Lecture 4 - Information Visualisation (4019538FNR)Analysis and Validation - Lecture 4 - Information Visualisation (4019538FNR)
Analysis and Validation - Lecture 4 - Information Visualisation (4019538FNR)Beat Signer
 
Data Representation - Lecture 3 - Information Visualisation (4019538FNR)
Data Representation - Lecture 3 - Information Visualisation (4019538FNR)Data Representation - Lecture 3 - Information Visualisation (4019538FNR)
Data Representation - Lecture 3 - Information Visualisation (4019538FNR)Beat Signer
 
Human Perception and Colour Theory - Lecture 2 - Information Visualisation (4...
Human Perception and Colour Theory - Lecture 2 - Information Visualisation (4...Human Perception and Colour Theory - Lecture 2 - Information Visualisation (4...
Human Perception and Colour Theory - Lecture 2 - Information Visualisation (4...Beat Signer
 
Introduction - Lecture 1 - Information Visualisation (4019538FNR)
Introduction - Lecture 1 - Information Visualisation (4019538FNR)Introduction - Lecture 1 - Information Visualisation (4019538FNR)
Introduction - Lecture 1 - Information Visualisation (4019538FNR)Beat Signer
 
Towards a Framework for Dynamic Data Physicalisation
Towards a Framework for Dynamic Data PhysicalisationTowards a Framework for Dynamic Data Physicalisation
Towards a Framework for Dynamic Data PhysicalisationBeat Signer
 

Mehr von Beat Signer (20)

Introduction - Lecture 1 - Human-Computer Interaction (1023841ANR)
Introduction - Lecture 1 - Human-Computer Interaction (1023841ANR)Introduction - Lecture 1 - Human-Computer Interaction (1023841ANR)
Introduction - Lecture 1 - Human-Computer Interaction (1023841ANR)
 
Indoor Positioning Using the OpenHPS Framework
Indoor Positioning Using the OpenHPS FrameworkIndoor Positioning Using the OpenHPS Framework
Indoor Positioning Using the OpenHPS Framework
 
Personalised Learning Environments Based on Knowledge Graphs and the Zone of ...
Personalised Learning Environments Based on Knowledge Graphs and the Zone of ...Personalised Learning Environments Based on Knowledge Graphs and the Zone of ...
Personalised Learning Environments Based on Knowledge Graphs and the Zone of ...
 
Cross-Media Technologies and Applications - Future Directions for Personal In...
Cross-Media Technologies and Applications - Future Directions for Personal In...Cross-Media Technologies and Applications - Future Directions for Personal In...
Cross-Media Technologies and Applications - Future Directions for Personal In...
 
Bridging the Gap: Managing and Interacting with Information Across Media Boun...
Bridging the Gap: Managing and Interacting with Information Across Media Boun...Bridging the Gap: Managing and Interacting with Information Across Media Boun...
Bridging the Gap: Managing and Interacting with Information Across Media Boun...
 
Codeschool in a Box: A Low-Barrier Approach to Packaging Programming Curricula
Codeschool in a Box: A Low-Barrier Approach to Packaging Programming CurriculaCodeschool in a Box: A Low-Barrier Approach to Packaging Programming Curricula
Codeschool in a Box: A Low-Barrier Approach to Packaging Programming Curricula
 
The RSL Hypermedia Metamodel and Its Application in Cross-Media Solutions
The RSL Hypermedia Metamodel and Its Application in Cross-Media Solutions The RSL Hypermedia Metamodel and Its Application in Cross-Media Solutions
The RSL Hypermedia Metamodel and Its Application in Cross-Media Solutions
 
Case Studies and Course Review - Lecture 12 - Information Visualisation (4019...
Case Studies and Course Review - Lecture 12 - Information Visualisation (4019...Case Studies and Course Review - Lecture 12 - Information Visualisation (4019...
Case Studies and Course Review - Lecture 12 - Information Visualisation (4019...
 
Dashboards - Lecture 11 - Information Visualisation (4019538FNR)
Dashboards - Lecture 11 - Information Visualisation (4019538FNR)Dashboards - Lecture 11 - Information Visualisation (4019538FNR)
Dashboards - Lecture 11 - Information Visualisation (4019538FNR)
 
Interaction - Lecture 10 - Information Visualisation (4019538FNR)
Interaction - Lecture 10 - Information Visualisation (4019538FNR)Interaction - Lecture 10 - Information Visualisation (4019538FNR)
Interaction - Lecture 10 - Information Visualisation (4019538FNR)
 
View Manipulation and Reduction - Lecture 9 - Information Visualisation (4019...
View Manipulation and Reduction - Lecture 9 - Information Visualisation (4019...View Manipulation and Reduction - Lecture 9 - Information Visualisation (4019...
View Manipulation and Reduction - Lecture 9 - Information Visualisation (4019...
 
Visualisation Techniques - Lecture 8 - Information Visualisation (4019538FNR)
Visualisation Techniques - Lecture 8 - Information Visualisation (4019538FNR)Visualisation Techniques - Lecture 8 - Information Visualisation (4019538FNR)
Visualisation Techniques - Lecture 8 - Information Visualisation (4019538FNR)
 
Design Guidelines and Principles - Lecture 7 - Information Visualisation (401...
Design Guidelines and Principles - Lecture 7 - Information Visualisation (401...Design Guidelines and Principles - Lecture 7 - Information Visualisation (401...
Design Guidelines and Principles - Lecture 7 - Information Visualisation (401...
 
Data Processing and Visualisation Frameworks - Lecture 6 - Information Visual...
Data Processing and Visualisation Frameworks - Lecture 6 - Information Visual...Data Processing and Visualisation Frameworks - Lecture 6 - Information Visual...
Data Processing and Visualisation Frameworks - Lecture 6 - Information Visual...
 
Data Presentation - Lecture 5 - Information Visualisation (4019538FNR)
Data Presentation - Lecture 5 - Information Visualisation (4019538FNR)Data Presentation - Lecture 5 - Information Visualisation (4019538FNR)
Data Presentation - Lecture 5 - Information Visualisation (4019538FNR)
 
Analysis and Validation - Lecture 4 - Information Visualisation (4019538FNR)
Analysis and Validation - Lecture 4 - Information Visualisation (4019538FNR)Analysis and Validation - Lecture 4 - Information Visualisation (4019538FNR)
Analysis and Validation - Lecture 4 - Information Visualisation (4019538FNR)
 
Data Representation - Lecture 3 - Information Visualisation (4019538FNR)
Data Representation - Lecture 3 - Information Visualisation (4019538FNR)Data Representation - Lecture 3 - Information Visualisation (4019538FNR)
Data Representation - Lecture 3 - Information Visualisation (4019538FNR)
 
Human Perception and Colour Theory - Lecture 2 - Information Visualisation (4...
Human Perception and Colour Theory - Lecture 2 - Information Visualisation (4...Human Perception and Colour Theory - Lecture 2 - Information Visualisation (4...
Human Perception and Colour Theory - Lecture 2 - Information Visualisation (4...
 
Introduction - Lecture 1 - Information Visualisation (4019538FNR)
Introduction - Lecture 1 - Information Visualisation (4019538FNR)Introduction - Lecture 1 - Information Visualisation (4019538FNR)
Introduction - Lecture 1 - Information Visualisation (4019538FNR)
 
Towards a Framework for Dynamic Data Physicalisation
Towards a Framework for Dynamic Data PhysicalisationTowards a Framework for Dynamic Data Physicalisation
Towards a Framework for Dynamic Data Physicalisation
 

Kürzlich hochgeladen

FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxAmanpreet Kaur
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseAnaAcapella
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 

Kürzlich hochgeladen (20)

FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 

CSS3 and Responsive Web Design - Web Technologies (1019888BNR)

  • 1. 2 December 2005 Web Technologies CSS3 and Responsive Web Design Prof. Beat Signer Department of Computer Science Vrije Universiteit Brussel http://www.beatsigner.com
  • 2. Beat Signer - Department of Computer Science - bsigner@vub.ac.be 2October 28, 2016 Cascading Style Sheets (CSS)  Separation of presentation and content  visualisation of HTML elements defined by styles  enables multiple presentations of the same content  media-specific style sheets via the media attribute <html> <head> ... <link ref="stylesheet" type="text/css" href="default.css" media="screen, tv" /> <link rel="stylesheet" type="text/css" href="alternative.css" media="print, handheld" /> </head> <body> ... </body> </html>
  • 3. Beat Signer - Department of Computer Science - bsigner@vub.ac.be 3October 28, 2016 CSS Versions  CSS1 specification published in 1996  remember that HTML 3.2 introduced some elements and attributes (e.g. color) for the visual appearance in 1997  CSS2 specification published in 1998  superset of CSS1  functionality for relative, absolute and fixed positoning of elements  media types  CSS3 divided into separate modules (documents)  2D & 3D transforms  transitions  Flexbox  media queries  ...
  • 4. Beat Signer - Department of Computer Science - bsigner@vub.ac.be 4October 28, 2016 CSS Versions Sergey Mavrody, 2014
  • 5. Beat Signer - Department of Computer Science - bsigner@vub.ac.be 5October 28, 2016 CSS Syntax  CSS rule consists of two parts  a selector - HTML element  a declaration block (at least one property and value) - surrounded by curly braces - multiple properties are separated with a semicolon  Example selector { property1: value1; property2: value2; } h1 { color: red; font-size: 10px; }
  • 6. Beat Signer - Department of Computer Science - bsigner@vub.ac.be 6October 28, 2016 Selectors  Selectors are used to target rules to specific elements in an HTML document (case sensitive)  Universal selector  all elements in the document  Element/Type selector  specific element names  ID selector  element with a specific value for the id attribute * { ... } p { ... } h1, h2, h3 { ... } /* also called grouping selector */ #intro { ... } /* always more weight than class selector */
  • 7. Beat Signer - Department of Computer Science - bsigner@vub.ac.be 7October 28, 2016 Selectors …  Class selector  elements with the given class attribute value (elements can have more than one class)  Child selector  elements that are direct children of other elements  Descendant selector  elements that are descendants of other elements .main { ... } /* any element with a 'main' class value' */ h1.main { ... } p>a { ... } p a { ... }
  • 8. Beat Signer - Department of Computer Science - bsigner@vub.ac.be 8October 28, 2016 Selectors …  Attribute selector  elements with a given attribute value  Pseudo element selectors  treated like extra elements  Pseudo class selector  act like additional values for a class attribute p[type] { ... } /* p element with an attribute called type (existence) */ p[type="new"] { ... } /* p element with attribute value 'new' (equality) */ p[type^="n"] { ... } /* type attribute value starts with letter 'n' */ p[type*="do"] { ... } /* type attribute contains substring 'do' */ h1.main:first-letter { ... } a:link { ... } a:visited { ... } a:hover { ... }
  • 9. Beat Signer - Department of Computer Science - bsigner@vub.ac.be 9October 28, 2016 Rule Order  For identical selectors, the last rule will be applied  Furthermore, we have the following internal priorities (1) rules containing IDs (2) rules containing classes (or pseudo classes) and attributes (3) rules containing elements (or pseudo elements)  Rules for selectors that are more specific than the others have preference * { color: red; } p b { color: pink; } /* more specific than p selector */ p { color: blue; } p { color: green; } /* last rule for p selector */
  • 10. Beat Signer - Department of Computer Science - bsigner@vub.ac.be 10October 28, 2016 Inheritance  Some properties such a color or font-family are inherited by most child elements  leads to simpler style sheets  The inheritance of properties can be enforced via the inherit keyword body { color: red; /* inherited by child elements */ padding: 10px; /* normally not inherited */ } p { padding: inherit; /* explicitly inherited from parent element */ }
  • 11. Beat Signer - Department of Computer Science - bsigner@vub.ac.be 11October 28, 2016 CSS Inclusion  There are three ways how CSS can be included in HTML  inline style  internal style sheet  external style sheet  Inline style  defined via the style attribute of the corresponding HTML element  still mixes content and presentation and should therefore be avoided whenever possible <h1 style="color:red; font-size:10px">Urgent Tasks</h1>
  • 12. Beat Signer - Department of Computer Science - bsigner@vub.ac.be 12October 28, 2016 CSS Inclusion ...  Internal style sheet  used when a single document has a unique style  defined in the <head> section  e.g. used in HTML-encoded emails <html> <head> ... <style> h1 {color: red; font-size: 10px;} p {color: blue;} ... </style> </head> <body> ... </body> </html>
  • 13. Beat Signer - Department of Computer Science - bsigner@vub.ac.be 13October 28, 2016 CSS Inclusion ...  External style sheet (in *.css file)  changes to the overall appearance of an entire website can be managed in a single file - removes a lot of potential redundancy - saves a lot of time - leads to more consistent websites <html> <head> ... <link rel="stylesheet" type="text/css" href="default.css" /> </head> <body> ... </body> </html>
  • 14. Beat Signer - Department of Computer Science - bsigner@vub.ac.be 14October 28, 2016 Multiple Style Sheets (Cascading)  Multiple styles will cascade into a single one  properties/values are inherited from more specific style sheets  Overriding priorities (1) inline style (highest priority) (2) internal style sheet (3) external style sheet (4) default browser style  Note that if the link to the external style sheet in the <head> section is placed after the internal style sheet, then the external style sheet will override the internal one  A stylesheet can import other stylesheets via @import
  • 15. Beat Signer - Department of Computer Science - bsigner@vub.ac.be 15October 28, 2016 Box Model  Box that wraps every single HTML element (content)  by default the box is just big enough to keep its content  padding - transparent area around the content  border - around the padding  margin - transparent area around the border margin padding border content div { width: 300px; /* only content area */ padding: 10px; border: 10px red; margin: 5px; }
  • 16. Beat Signer - Department of Computer Science - bsigner@vub.ac.be 16October 28, 2016 Box Model …  By default the width of a box only defines the width of the content  padding and border are added to that width  Behaviour can be changed via the box-sizing property  content-box (default) or border-box  width in border-box "mode" includes padding and border width * { box-sizing: border-box; /* use border-box for the whole page */ }
  • 17. Beat Signer - Department of Computer Science - bsigner@vub.ac.be 17October 28, 2016 Box Model …  Boxes can be either block-level boxes or inline boxes  block-level boxes start on a new line - main building blocks of any layout - e.g. <p>, <h1>, <ul>, or <li>  inline boxes flow between sourrounding text - e.g. <b>, <i> or <img>  Block-level boxes (elements) can be grouped  e.g. number of elements grouped via <div> in a containing or parent element  Behaviour can be changed via display property li { display: inline; /* no longer treated as block-level element */ margin-right: 5px; /* list items shown next to each other with space */ }
  • 18. Beat Signer - Department of Computer Science - bsigner@vub.ac.be 18October 28, 2016 Box Model …  CSS3 further introduces a new Flexbox layout mode  new flex and inline-flex values for the display property
  • 19. Beat Signer - Department of Computer Science - bsigner@vub.ac.be 19October 28, 2016 Measurements  Absolute or relative units of measurements can be used  Absolute units  px: pixels are not necessary consistent across devices  cm, mm and in: one centimeter is 37.8 pixels, a milimeter 3.78 pixels and an inch 96 pixels (also not consistent across devices)  pt: a point is equal to 1/72 of an inch (common in print design)  Relative units  %: percentage measured against the content  em: ems are relative to the font size of the element  rem: rems are relative to the font size of the document
  • 20. Beat Signer - Department of Computer Science - bsigner@vub.ac.be 20October 28, 2016 Layout  Elements (boxes) can be positioned via the position property  static (default), relative, absolute or fixed position  In normal flow (static) each block-level element starts on a new line p { position: static; /* optional since it is the default anyway */ width: 400px; }
  • 21. Beat Signer - Department of Computer Science - bsigner@vub.ac.be 21October 28, 2016 Layout …  Relative positioning moves the element in relation to where it would have been shown  Absolute position takes box out of the normal flow p.test { position: relative; width: 400px; left: 100px; /* move 100 pixels to the right */ top: 20px; /* move 20 pixels down */ } p.test { position: absolute; width: 200px; left: 300px; /* position the element 300 pixels from the left */ top: 0px; /* position element at the top (of the containing element) */ }
  • 22. Beat Signer - Department of Computer Science - bsigner@vub.ac.be 22October 28, 2016 Layout …  Fixed positioning renders an element relative to the browser window  scrolling no longer changes the position  Boxes with a relative, absolute or fixed position might overlap  z-index property can be used to control the ordering (higher values are closer to the front) p.test { position: fixed; width: 400px; right: 0px; top: 0px; /* positions the paragraph at the top right corner */ }
  • 23. Beat Signer - Department of Computer Science - bsigner@vub.ac.be 23October 28, 2016 Floats  Elements can also be positioned via the float property  succeeding elements will flow around the element  floating can be stopped via the clear property <p>...</p> <img class="floatLeft" src="logo.jpg" alt="logo"> <p>...</p> <h2 class="clearLeft">History</h2> floatLeft { float: left; } clearLeft { clear: left; }
  • 24. Beat Signer - Department of Computer Science - bsigner@vub.ac.be 24October 28, 2016 Responsive Web Design (RWD)  Websites originally designed with a fixed size to fit common desktop and laptop screen sizes  e.g. 960-pixel-wide layout  Around 2007 mobile phones able to render standard HTML pages  dedicated mobile version of website (e.g. 320-pixel-wide) - redirection to m-dot websites
  • 25. Beat Signer - Department of Computer Science - bsigner@vub.ac.be 25October 28, 2016 Responsive Web Design (RWD) …  Problem of maintainability as more versions added  different phone display sizes and new devices (e.g. iPad)  Design websites that can easily be viewed on devices with various screen sizes  Only one version of the website (one HTML structure)  design rearranges itself to perfectly fit the screen size - e.g. single column on mobile device and multiple columns on wider desktop screens  use different CSS styles based on media queries  only since CSS3 it is possible to query features such as the screen width and height or the colour capabilities  flexibility via relative horizontal measurements (e.g. percentage)  should automatically look decent on future devices
  • 26. Beat Signer - Department of Computer Science - bsigner@vub.ac.be 26October 28, 2016 Content Strategy  Think about the content before thinking about the design of a website  address user needs  Most important information should be at the top of a page  Divide content into chunks that can be rearranged on a page  All users (regardless of the device) should have access to all the content of a website
  • 27. Beat Signer - Department of Computer Science - bsigner@vub.ac.be 27October 28, 2016 The Viewport  Viewport defines the visible area of a web page  without scrollbars, browser borders etc.  HTML5 introduced a new method to control the viewport via a meta tag  Avoid large fixed width for elements  elements (e.g. images) that are wider than the viewport might lead to horizontal scrollbars (poor user experience)  Do not rely on a particular viewport width for a page to render well <meta name="viewport" content="width=device-width, initial-scale=1.0">
  • 28. Beat Signer - Department of Computer Science - bsigner@vub.ac.be 28October 28, 2016 Media Queries  CSS2 allowed media queries for media types  e.g. screen or print  CSS3 allows media queries to apply different declaration blocks based on device properties (e.g. viewport width)  e.g. typically change the number of columns, navigation, font size or image size body { font-size: 12px; background-color: red; } @media only screen and (min-width: 40em) { body { background-color: green; } }
  • 29. Beat Signer - Department of Computer Science - bsigner@vub.ac.be 29October 28, 2016 Media Queries  Device properties that can be queried via CSS3  viewport width (width) and height (height)  screen width (device-width) and height (device-height)  orientation (orientation) which can be landscape or portrait  aspect ratio (aspect-ratio or device-aspect-ratio) - e.g. 16:9 or 4:3  resolution (resolution) of the device screen - e.g. 300 dpi  does the device support colour (color)  …
  • 30. Beat Signer - Department of Computer Science - bsigner@vub.ac.be 30October 28, 2016 Breakpoints  Breakpoint is the point where we use a media query to change the design  e.g. change the number of columns or font size  Design range is the range between two breakpoints  design should look good anywhere within a design range
  • 31. Beat Signer - Department of Computer Science - bsigner@vub.ac.be 31October 28, 2016 Designing Responsive Solutions  Mobile-first approach  start with the basic design (default design) for the narrowest design range and devices that might not support media queries  Progressive enhancement via different layers ensures that page is also accessible without CSS and JavaScript 1. HTML 2. CSS (with potential media queries) 3. JavaScript  Responsive design is often based on grids  12-column grid is very common  columns can be grouped
  • 32. Beat Signer - Department of Computer Science - bsigner@vub.ac.be 32October 28, 2016 Multi-Column Layout  Compute the percentage for each column and the space between the columns  e.g. 4-column layout with 21% for each column, 2% between the columns and 5% for the left and right border 5% 5%21% 21% 21% 21%2% 2% 2% <article> <aside> <footer>
  • 33. Beat Signer - Department of Computer Science - bsigner@vub.ac.be 33October 28, 2016 Multi-Column Layout …  Example of a breakpoint between a single column layout and 2-column layout @media only screen and (min-width: 40em) { article { width: 67%; float: left; margin-right: 0; } aside { width: 21%; float: right; margin-left: 0; } footer { clear: both; } }
  • 34. Beat Signer - Department of Computer Science - bsigner@vub.ac.be 34October 28, 2016 Images  Scaling of images can be controlled  e.g. via max-width property  Offer different sizes of an image  e.g. via the HTML5 picture element img { max-width: 100%; /* do not scale up images */ height: auto; } <picture> <source srcset="smallfBird.jpg" media="(max-width: 300px)"> <source srcset="bird.jpg"> <img src="bird.jpg" alt="Bird"> /* fallback */ </picture>
  • 35. Beat Signer - Department of Computer Science - bsigner@vub.ac.be 35October 28, 2016 RWD Frameworks  Bootstrap  mobile-first design philosophy  provides a set of CSS style sheets for the formatting of key HTML components  additional reusable components (e.g. advanced buttons)  JavaScript components (e.g. UI elements)  Skeleton  …
  • 36. Beat Signer - Department of Computer Science - bsigner@vub.ac.be 36October 28, 2016 Use Case: MindXpres  MindXpres presentations are currently represented in an XML document format  Compiler (node.js application) translates XML to HTML  Presentation engine based on HTML5 and related APIs  e.g. WebSockets for connectivity
  • 37. Beat Signer - Department of Computer Science - bsigner@vub.ac.be 37October 28, 2016 Exercise 6  No Exercise  use time to prepare interim project presentation
  • 38. Beat Signer - Department of Computer Science - bsigner@vub.ac.be 38October 28, 2016 References  Learning Responsive Web Design: A Beginner's Guide, Clarissa Peterson, O'Reilly Media (1st edition), June 2014 ISBN-13: 978-1449362942  HTML and CSS: Design and Build Websites, Jon Duckett, Wiley (1st edition), November 2011 ISBN-13: 978-1118008188
  • 39. Beat Signer - Department of Computer Science - bsigner@vub.ac.be 39October 28, 2016 References …  Cascading Style Sheets (CSS) Snapshot 2010, W3C Working Group Note  http://www.w3.org/TR/CSS/  Molly E. Holzschlag, Core CSS (Part I, II & III) (refcardz #19, #25 and #34)  http://refcardz.dzone.com/refcardz/corecss-part1  http://refcardz.dzone.com/refcardz/corecss2  http://refcardz.dzone.com/refcardz/corecss3  CSS Tutorial  http://www.w3schools.com/css/
  • 40. Beat Signer - Department of Computer Science - bsigner@vub.ac.be 40October 28, 2016 References ...  MDN CSS Reference  https://developer.mozilla.org/en-US/docs/Web/CSS/Reference  Webplatform.orgl  http://docs.webplatform.org/wiki/css  Bootstrap  http://getbootstrap.com  R. Roels and B. Signer, MindXpres: An Extensible Content-driven Cross-Media Presentation Platform, Proceedings of WISE 2014, 15th International Conference on Web Information System Engineering, Thessaloniki, Greece, October, 2014  http://beatsigner.com/publications/roels_WISE2014.pdf
  • 41. 2 December 2005 Next Lecture JavaScript and jQuery