INTRODUCTORY Tutorial 7 Creating Liquid Layouts. XP Objectives Discern the differences among various types of layouts Create a liquid layout Create a.

Slides:



Advertisements
Similar presentations
CSS-Formatting Review Cascading Style Sheets addstyle to your HTML web pages.
Advertisements

Cascading Style Sheets
Cascading Style Sheets
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
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.
Today CSS HTML A project.
CSS. Intro to CSS Cascading Style Sheets – styles and enhances appearance of webpage.css extension.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
Very quick intro HTML and CSS. Sample html A Web Title.
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.
Web Development & Design Foundations with XHTML Chapter 7 Key Concepts.
Cascading Style Sheets By: Valerie Kuna. What are Cascading Style Sheets? Cascading Style Sheets (CSS) are a standard for specifying the presentation.
Web Development & Design Foundations with XHTML Chapter 7 Key Concepts.
Advance CSS (Menu and Layout) Miftahul Huda. CSS Navigation MENU It's truly remarkable what can be achieved through CSS, especially with navigation menus.
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.
1 Dreamweaver CS5 intermediate class by Cookie Setton Build a CSS website WITHOUT TABLES Just when you thought you were starting to understand HTML coding,
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.
Class four: the box model and positioning. is an HTML tag which allows you to create an element out of inline text. It doesn’t mean anything! try it:
Unit 20 - Client Side Customisation of Web Pages
CSS normally control the html elements. Three Ways to Insert CSS There are three ways of inserting a style sheet: External style sheet Internal style.
Tutorial 4: Creating page layout with css
Tutorial 5 Working with the Box Model. XP Objectives Understand the box model Create padding, margins, and borders Wrap text around an image Float a block-level.
Tutorial 6 Creating Fixed-Width Layouts
CONCEPTS FOR FLUID LAYOUT Web Page Layout. Website Layouts Most websites have organized their content in multiple columns (formatted like a magazine or.
XP Introducing Cascading Style Sheets With Cascading Style Sheets (CSS), you can create one or more documents that control the appearance of some or all.
Tutorial 3 Introducing Cascading Style Sheets. XP New Perspectives on Blended HTML, XHTML, and CSS2 Objectives Learn about Cascading Style Sheets Write.
Lecture Cascading Style Sheets (CSS) Internal Style Sheets Classes.
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.
CSS (Cascading Style Sheets): How the web is styled Create Rules that specify how the content of an HTML Element should appear. CSS controls how your web.
TUTORIAL 8: Enhancing a Web Site with Advanced CSS
XP 1 Tutorial 4 Designing a Web Page with Tables.
Tutorial 6 Creating Tables and CSS Layouts. Objectives Session 6.1 – Create a data table to display and organize data – Modify table properties and layout.
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.
Advanced CSS - Page Layout. Advanced CSS  Compound Selectors:  Is a Dreamweaver term, not a CSS term.  Describes more advanced types of selectors such.
INTRODUCTORY Tutorial 7 Creating Tables. XP New Perspectives on Blended HTML, XHTML, and CSS2 Objectives Discern the difference between data tables and.
Tutorial 4: Using CSS for Page Layout. 2 Objectives Session 4.1 Explore CSS layout Compare types of floating layouts Examine code for CSS layouts View.
XP Tutorial 7New Perspectives on HTML and XHTML, Comprehensive 1 Working with Cascading Style Sheets Tutorial 7.
Tutorial #6 – Creating Fixed Width Layouts. Tutorial #5 Review – Box Model Every html element is surround by a box Content, Padding, Border, Margin Can.
Lecture 2 - HTML and CSS Review SFDV3011 – Advanced Web Development 1.
CSS Tutorial 1 Introduction Syntax How to use style specifications. Styles.
INTRODUCTORY Tutorial 4 Exploring Graphic Elements and Images.
Which formula gives you the desired effect? Desired Results ABCD Click on the letter of the correct answer. A is incorrect. The sidebar and main have the.
Course created by Sarah Phillips BBCD Melbourne BAPDCOM Version 1 – April 2013.
Internet Technology Dr Jing LU Updated Dr Violet Snell / Dr Kalin Penev 1 Internet Technology (week 6)  Recap: Validating HTML  Page Layout.
INTRODUCTORY Tutorial 5 Using CSS for Layout and Printing.
CNIT 132 – Week 4 Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of.
Introduction to CSS Layout
CSS FOUNDATIONS IN-DEPTH The nitty-gritty of css...
Understanding CSS Cascading Style Sheets control the presentation of content in HTML pages Style Sheets separate formatting from the content –Styles defined.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 3 Introducing Cascading Style Sheets.
XP Tutorial 7New Perspectives on HTML and XHTML, Comprehensive 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks Tutorial 7.
CONCEPTS FOR FLUID LAYOUT Web Page Layout. Essential Questions What challenges do mobile devices present to Web designers? What are the basic concepts.
CSS Introductions. Objectives To take control of the appearance of a Web site by creating style sheets. To use a style sheet to give all the pages of.
Mimi Opkins.  One of the major benefits of using CSS is that you’re not forced to lay your sites out in tables.  The layout possibilities of CSS give.
Cascading Style Sheets (CSS) Internal Style Sheets Classes
Working with Cascading Style Sheets
Introduction to CSS Layout
Concepts for fluid layout
Cascading Style Sheets (Layout)
Chapter 7 Page Layout Basics Key Concepts
Web Development & Design Foundations with HTML5 8th Edition
Web Development & Design Foundations with HTML5
Web Development & Design Foundations with H T M L 5
Web Development & Design Foundations with HTML5
Concepts for fluid layout
Presentation transcript:

INTRODUCTORY Tutorial 7 Creating Liquid Layouts

XP Objectives Discern the differences among various types of layouts Create a liquid layout Create a nested div Conform the footer width to the main column width New Perspectives on Blended HTML, XHTML, and CSS2

XP Objectives Create a three-column layout Modify the layout width Create print styles Link a file to a print style sheet New Perspectives on Blended HTML, XHTML, and CSS3

XP Creating a Two-Column Liquid Layout Must decide between a portrait or landscape orientation A liquid layout is a design that expands or contracts in proportion to the size of the user’s viewport – Measurements are specified using percentages In an elastic layout, em values are used instead of percentage values In a hybrid layout, part of the content may have a liquid layout, and the remainder has a fixed-width layout New Perspectives on Blended HTML, XHTML, and CSS4

XP Creating a Two-Column Liquid Layout New Perspectives on Blended HTML, XHTML, and CSS5

XP Creating a Two-Column Liquid Layout To create a two-column liquid layout: – Decide the width (in percentages) of the narrower of the two columns. Generally, the sidebar column is narrow and the main column is wide. – Decide whether you want the sidebar column to appear on the left or the right – In the style sheet, enter the code for the sidebar and main id selectors. Assign a width (as a percentage) to the sidebar column. Do not assign a width to the main column – In the document body, enter start and end div tags for the sidebar and main divs – If you are not floating all the id selectors, change the source order so that the floated content appears before nonfloated content – If necessary, change the margins and cellpadding of your columns New Perspectives on Blended HTML, XHTML, and CSS6

XP Creating a Two-Column Liquid Layout New Perspectives on Blended HTML, XHTML, and CSS7

XP Creating a Two-Column Liquid Layout New Perspectives on Blended HTML, XHTML, and CSS8

XP Creating a Two-Column Liquid Layout To reposition the sidebar column, change the float property to right, and change the margin-left property to margin-right New Perspectives on Blended HTML, XHTML, and CSS9

XP Creating a Two-Column Liquid Layout Using styles to create a horizontal navbar from an unordered list New Perspectives on Blended HTML, XHTML, and CSS10

XP Creating a Two-Column Liquid Layout Creating a hover effect and a footer – The hover effect changes the appearance of an element when your mouse hovers over it New Perspectives on Blended HTML, XHTML, and CSS11

XP Creating Nested Divs A nested div is a div within another div – Used previously to create a structure with container and wrapper divs New Perspectives on Blended HTML, XHTML, and CSS12

XP Creating Nested Divs New Perspectives on Blended HTML, XHTML, and CSS13

XP Creating Three-Column Liquid Layouts Create a style for the universal selector to zero out padding and margins for all elements Style the body element New Perspectives on Blended HTML, XHTML, and CSS14

XP Creating Three-Column Liquid Layouts Enter the code and styles for the header and navbar – If necessary create a hover effect for the navbar New Perspectives on Blended HTML, XHTML, and CSS15

XP Creating Three-Column Liquid Layouts To create a three-column liquid layout: – Decide on the width (in percentages) for each of the narrower two sidebar columns – Decide how you want the sidebar columns to float – In the style sheet, enter the code for the sidebar and main id selectors. Assign widths to both sidebar columns. Do not assign a width to the main column – In the document body, enter start and end div tags for the sidebars and the main divs – If necessary, change the source order so that the floated content appears before nonfloated content New Perspectives on Blended HTML, XHTML, and CSS16

XP Creating Three-Column Liquid Layouts New Perspectives on Blended HTML, XHTML, and CSS17

XP Creating Three-Column Liquid Layouts New Perspectives on Blended HTML, XHTML, and CSS18

XP Modifying the Layout Width Add a start div tag for the container, just below the start body tag, and an end div tag just above the end body tag Style the container id selector New Perspectives on Blended HTML, XHTML, and CSS19

XP Modifying the Layout Width New Perspectives on Blended HTML, XHTML, and CSS20

XP Using Print Styles A print style is a style designated to create output for printed copy To create print styles: – Change the text color to black and the background color to white – Specify a font size in points – Specify the font family as a serif font – Style the navbar, banner, and images to have a display property value of none – Set the line height to 120% or greater – Use rule to set the page size and margin New Perspectives on Blended HTML, XHTML, and CSS21

XP Using Print Styles New Perspectives on Blended HTML, XHTML, and CSS22