 Media Queries  CSS3 Grid  CSS3 Flexbox  CSS3 Multi-column  Recommendations  Resources.

Slides:



Advertisements
Similar presentations
Web Engineering 1 Ishaq Khan Shinwari MCS City University Peshawar.
Advertisements

Cascading Style Sheets
Layout using CSS. Using multiple classes In the head:.important{font-style:italic;}.title{color:red;} In the body: Here's a type of paragraph that is.
Very quick intro HTML and CSS. Sample html A Web Title.
Cascading Style Sheets (CSS): Pixel-Level Control with HTML Ease
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.
INTRODUCTORY Tutorial 7 Creating Liquid Layouts. XP Objectives Discern the differences among various types of layouts Create a liquid layout Create a.
Advance CSS (Menu and Layout) Miftahul Huda. CSS Navigation MENU It's truly remarkable what can be achieved through CSS, especially with navigation menus.
Cascade Style Sheet Demo. Cascading Style Sheets Cascading Style Sheets (CSS) is a simple mechanism for adding style (e.g., fonts, colors, spacing) to.
กระบวนวิชา 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.
Cascading Style Sheets Color and Background Controls Border and Margin Controls (Boxes)
Tutorial 4: Creating page layout with css
HTML & CSS for the gaming board Game Title Score Stats Board Controls #grid { display: -ms-grid; -ms-grid-columns: auto 1fr; -ms-grid-rows:
Week 9 Using the Box Properties. 9-2 The CSS Visual Formatting Model Describes how the element content boxes should be displayed by the browser –Based.
Miscellaneous 2. Multiple Columns Create multiple columns for laying out text - like in newspapers! Properties: – column-count – column-gap – column-rule.
Basics of Web Design Chapter 6 More CSS Basics Key Concepts 1.
1 CS428 Web Engineering Lecture 10 Images, Tables, Forms, Border-Radius (CSS – V)
Tutorial #8 – Creating Data Tables. Tutorial #6 Review – Layouts Two Column Fixed Width, Three Column Fixed Width Class VS. ID Container Universal Selector.
TUTORIAL 8: Enhancing a Web Site with Advanced CSS
Cascading Style Sheets 1 Color and Backgrounds. Cascading Style Sheets 2 Color and Backgrounds Computer color basics Expression of color values using.
CIT 256 Mobile Web Development Dr. Beryl Hoffman.
Intro to RESPONSIVE DESIGN. Why? What?
Developer Day Designing Windows Store Apps with Expression Blend Christian Moser Developer and Designer, Zühlke
Principles of Web Design 6 th Edition Chapter 7 – Page Layouts.
HTML5, part II – design Štěpán Developer Evangelist Microsoft, Czech Republic.
MIME Type: text/cache-manifest.
COMP 135 Web Site Design Intermediate Week 8. Responsive Web Design Responsive Design Adaptive Design.
1 Cascading Style Sheets (CSS) Part 2. 2 The Sources of Style Sheets.
Ins & Outs of. CSS3 is Modular Can we use it now?
 Word doc for you to download › Link at the beginning of class › 10 Questions › Answers to be added inline  Post to Sakai when completed › No resubmits.
 Remember that HTML is just text  Need to point to pictures  Use the img tag  alt: › screen reader › REQUIRED for this class and to validate.
Tutorial 5 Working with Tables and Columns
Tutorial 5 Working with Tables and Columns
COMP213 – Web Interface Design
CSS Table Properties.
Tutorial #6 – Creating Fixed Width Layouts. Tutorial #5 Review – Box Model Every html element is surround by a box Content, Padding, Border, Margin Can.
Basics of Web Design Chapter 6 More CSS Basics Key Concepts.
Floating Elements CS The CSS float property (reference) 2 img.headericon { float: right; width: 130px; } CSS  removed from normal document flow;
COMP 135 Web Site Design Intermediate
CSS WORKSHOP Design Principles for Web Standards.
>> The “Box” Model. Pre-requisite Create a new project in Netbeans called Week5 Create a new html file and name it box.html Create a new css file and.
3.2 Cascading Style Sheets. 2 Positioning Elements Normally, elements are laid out on the page in the order that they are defined in the XHTML document.
INFO1300 LAB7 OCT.11TH RESPONSIVE DESIGN. WHAT IS RESPONSIVE WEB DESIGN A mix of flexible grids and layouts, images and an intelligent use of CSS media.
Today’s objectives Layouts | floats Measurement units Type properties
CONTROLLING Page layout
Responsive vs. Adaptive Web Design A responsive web design will "fluidly change and respond to fit any screen or device size" An adaptive design will "change.
OV Copyright © 2008 Element K Content LLC. All rights reserved. Working with Web Pages  An Introduction to Cascading Style Sheets  Format a Web.
Cascading Style Sheet (CSS) SAMPLE IT133 Pengembangan Web.
 Add one element at a time  If it doesn’t do what you want, › Delete it › DON’T just keep piling on more items.
Tutorial #5 Working with the Box Model. Tutorial #4 Review - CSS Create a homework page Final Project Discussion Exam on Blackboard Styling Lists (List-style-type,
CS 120: Introduction to Web Programming Lecture 10: Extra Features and Website Design Part 1 Tarik Booker CS 120 California State University, Los Angeles.
>> CSS Layouts. Recall Properties of Box – Border (style, width, color) – Padding – Margin – Display – Background – Dimension Welcome Padding Area Border.
Agenda The User Interface The CSS Box Model The Flexbox Box Model Grid Layouts.
Webpage layout using CSS
Display Property.
Windows Summit /17/2018 © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be.
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
Creating a Webpage with External CSS
How to use the CSS box model for spacing, borders, and backgrounds
Responsive Web Design (RWD)
Murach's HTML and CSS, 4th Edition
CSS Layout: Flexbox.
Web Client Side Technologies Raneem Qaddoura
CSc 337 Lecture 5: Grid layout.
Session IV Chapter 15 - How Work with Fonts and Printing
Cascading Style Sheets CSS LAYOUT WITH GRID
Presentation transcript:

 Media Queries  CSS3 Grid  CSS3 Flexbox  CSS3 Multi-column  Recommendations  Resources

<style (orientation: landscape) { body { background-color: Green} #landscape {display: block} #portrait {display: none} (orientation: portrait) { body { background-color: Maroon} #landscape {display: none} #portrait {display: block} } </style> <div id="landscape">Detected mode: landscape</div> <div id="portrait"> Detected mode: portrait</div>

Growth #mainContainer { display: -ms-grid; -ms-grid-columns: 1fr 6fr 130px; } #banner { -ms-grid-column: 1; -ms-grid-column-span: 3; } #toc { -ms-grid-column: 1; -ms-grid-row: 2; } #textArea { -ms-grid-column: 2; -ms-grid-row: 2; } #images { -ms-grid-column: 3; -ms-grid-row: 2; -ms-grid-row-span: 2; } #footer { -ms-grid-column: 1; -ms-grid-column-span: 2; -ms-grid-row: 3; } Growth textArea toc footer images banner

#mainContainer { display: -ms-grid; -ms-grid-columns: 1fr 6fr 130px; } textArea toc images 130px Left over space 1 fraction 6 fractions

Back Play Forward #playControl { display: -ms-box; -ms-box-orient: horizontal; -ms-box-align: middle; } button { -ms-box-flex: 1; }

Back Play Forward #playControl { display: -ms-box; -ms-box-orient: horizontal; /* alignment perpendicular to the axis defined by the -ms-box-orient property) */ -ms-box-align: middle; /*excess space distribution along the axis defined by the -ms-box-orient property) */ -ms-box-pack: center; }

@media all and (min-width: 300px) and (max-width: 400px) { #playControl { -ms-box-orient: vertical; /*excess space distribution along the axis defined by the -ms-box-orient property) */ -ms-box-pack: center; }

@media all and (max-width: 299px) { #playControl { -ms-box-orient: vertical; } #playButton { -ms-box-flex: 10; -ms-box-ordinal-group: 1; } #backButton { -ms-box-ordinal-group: 2; } #fwdButton { -ms-box-ordinal-group: 2; }

div { column-width: 12em; column-rule: thin solid black; column-gap: 2em; } … … 12em 2em