INTRODUCTORY Tutorial 5 Using CSS for Layout and Printing.

Slides:



Advertisements
Similar presentations
LIS650 lecture 4 Thomas Krichel today Advice CSS Properties –Box properties-- List properties –Table properties-- Classification properties.
Advertisements

LIS650 lecture 4 Thomas Krichel today Advice CSS Properties –Box properties –List properties –Classification properties Fun with selectors.
Chapter 3 – Web Design Tables & Page Layout
Working with Web Tables
CSS Layout Crash Course An Advance CSS Tutorial. Inline vs. Block Many HTML elements have a default display setting of Block. Block elements take up the.
Cascading Style Sheets
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
Part 5 Introduction to CSS. CSS Display - Block and Inline Elements A block element is an element that takes up the full width available, and has a line.
INTRODUCTORY Tutorial 7 Creating Liquid Layouts. XP Objectives Discern the differences among various types of layouts Create a liquid layout Create a.
CIS 1310 – HTML & CSS 6 Layout. CIS 1310 – HTML & CSS Learning Outcomes  Describe & Apply the CSS Box Model  Configure Float with CSS  Designate Positioning.
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
16 HTML Tables and Frames Section 16.1 Create a basic table using HTML Define borders Merge cells Align content in tables Section 16.2 Create a frames-based.
Web-based Application Development Lecture 9 February 7, 2006 Anita Raja.
XHTML1 Tables and Lists. XHTML2 Objectives In this chapter, you will: Create basic tables Structure tables Format tables Create lists.
XP 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks Tutorial 7.
Tutorial 4 Creating Special Effects with CSS
MORE Cascading Style Sheets (The Positioning Model)
Working with Cascading Style Sheets. 2 Objectives Introducing Cascading Style Sheets Using Inline Styles Using Embedded Styles Using an External Style.
Web Development & Design Foundations with XHTML Chapter 6 Key Concepts.
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.
Tutorial 5 Working with Web Tables. XP Objectives Explore the structure of a Web table Create headings and cells in a table Create cells that span multiple.
Tutorial 4 Creating Special Effects with CSS. XP Objectives Work with CSS selectors Create styles for lists Create and apply class styles Create a rollover.
Cascading Style Sheets CSS. CSS Positioning Normal Flow Top -> bottom | left -> right Arranged in the order they appear in the code make room for one.
Cascading Style Sheets CSS. div … Used like a container to group content Gives context to the elements in the grouping Give it a descriptive name with.
Tutorial 4 Creating Special Effects with CSS
CSS Positioning Creating Special Effects with CSS CS202 Working with Cascading Style Sheets (Chapter 4) CS202 1.
CONCEPTS FOR FLUID LAYOUT Web Page Layout. Website Layouts Most websites have organized their content in multiple columns (formatted like a magazine or.
Website Development with Dreamweaver
Neal Stublen Course Road Map  Create web page layouts using CSS  Manage CSS  Test website validity  Create navigation menus using.
INTRODUCTION TO HTML5 Semantic Layout in HTML5.  The new semantic layout in HTML5 refers to a new class of elements that is designed to help you understand.
Tutorial 5 Working with Tables and Columns
Tutorial 5 Working with Tables and Columns
XP Tutorial 7New Perspectives on HTML and XHTML, Comprehensive 1 Working with Cascading Style Sheets Tutorial 7.
CSCE 102 – Chapter 6 (Web Design and Layout) CSCE General Applications Programming Benito Mendoza Benito Mendoza 1 By Benito Mendoza.
Tutorial #6 – Creating Fixed Width Layouts. Tutorial #5 Review – Box Model Every html element is surround by a box Content, Padding, Border, Margin Can.
Chapter 5 Quick Links Slide 2 Performance Objectives Understanding Framesets and Frames Creating Framesets and Frames Selecting Framesets and Frames Using.
Tutorial 5 Working with Web Tables. XP Objectives Explore the structure of a Web table Create headings and cells in a table Create cells that span multiple.
XP Review 2 New Perspectives on JavaScript, Comprehensive1 Introducing Cascading Style Sheets Formatting Web Pages with CSS.
Layout with Styles Castro Chapter 11. Tables vs. CSS You can produce “liquid layouts” (layouts that stretch as the browser is resized) using tables or.
Cascading Style Sheets Positioning Controls Visibility.
Internet Technology Dr Jing LU Updated Dr Violet Snell / Dr Kalin Penev 1 Internet Technology (week 6)  Recap: Validating HTML  Page Layout.
Positioning and Printing Creating Special Effects 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.
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.
Cascading Style Sheets Positioning Controls Visibility.
Tutorial 4 Creating Special Effects with CSS. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Work with CSS selectors.
Tutorial 4 Creating Special Effects with CSS. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Work with CSS selectors.
Tutorial 4 Creating Special Effects with CSS. XP Objectives Work with CSS selectors Create styles for lists Create and apply class styles Create a rollover.
Tutorial 4 Creating Page Layouts with CSS
Web Site Development - Process of planning and creating a website.
CIS67 Foundations for Creating Web Pages Professor Al Fichera Rev. September 22, 2010—All HTML code brought to XHTML standards. Reference for CIS127 and.
XP Tutorial 7New Perspectives on HTML and XHTML, Comprehensive 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks Tutorial 7.
Tutorial 5 Working with Web Tables. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Learn and Apply the structure 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.
Working with Cascading Style Sheets
CSS Layouts: Grouping Elements
Cascading Style Sheets
Floating & Positioning
Advanced CSS BIS1523 – Lecture 20.
Creating Layouts Using CSS
Styles and the Box Model
Fixed Positioning.
MORE Cascading Style Sheets (The Positioning Model)
Tutorial 6 Creating Dynamic Pages
Cascading Style Sheets
Tutorial 4 Creating Special Effects with CSS
Presentation transcript:

INTRODUCTORY Tutorial 5 Using CSS for Layout and Printing

XP New Perspectives on Blended HTML, XHTML, and CSS2 Objectives Create boxes for layout Size and position boxes Determine how to control overflow for a box Use the tag to create formatting sections of a document

XP Objectives List the positioning properties Use the z-index property to stack elements Use the media attribute and its values Create print styles Use multiple style sheets New Perspectives on Blended HTML, XHTML, and CSS3

XP Sizing and Positioning Boxes Web page developers refer to the header area as the masthead, banner, or header They call the main window the main, content, body, container, box, or frame area They often refer to the bottom of the page as the footer New Perspectives on Blended HTML, XHTML, and CSS4

XP Sizing and Positioning Boxes Designers typically use layouts that include one or more of the following design components: – a horizontal banner, or bar, at the top of the page that usually includes a corporate logo – a sidebar, which is a narrow vertical column commonly used for links – the main document window, which is the largest window and contains most of the page content – a footer, which is a row at the bottom of the page, which usually displays the contact information for the Web site, such as the address New Perspectives on Blended HTML, XHTML, and CSS5

XP Sizing and Positioning Boxes New Perspectives on Blended HTML, XHTML, and CSS6

XP Sizing and Positioning Boxes New Perspectives on Blended HTML, XHTML, and CSS7 The overflow property is used to determine what happens if there is too much text (or an image is too large) to be displayed in the space for the box – visible allows the box to expand as much as possible – hidden does not display overflow text; no scroll bars – scroll displays scroll bars so users can scroll through the box; the size of the box remains the same. – auto displays scroll bars only if necessary; the size of the box remains the same

XP Sizing and Positioning Boxes New Perspectives on Blended HTML, XHTML, and CSS8

XP Sizing and Positioning Boxes New Perspectives on Blended HTML, XHTML, and CSS9 To add a background image to a sidebar:

XP Sizing and Positioning Boxes To center the text of the sidebar: New Perspectives on Blended HTML, XHTML, and CSS10

XP Sizing and Positioning Boxes New Perspectives on Blended HTML, XHTML, and CSS11 If you lay out pages using boxes, create styles for elements by using descendant selectors If you are styling the same element more than once, make sure that the elements all have the same properties (though they can have different values)

XP Using the Positioning Properties The largest box is the browser window itself (the HTML element) Inside this box is the body box, which in turn contains other smaller boxes, such as headings, paragraphs, and em and strong elements This is called the normal flow of the HTML document New Perspectives on Blended HTML, XHTML, and CSS12

XP Using the Positioning Properties New Perspectives on Blended HTML, XHTML, and CSS13 The positioning properties allow you to display an element out of the normal flow CSS positioning allows you to create pages with elements with layering, which means that you can have text or images overlap each other The position property takes several values, with the two most important values being absolute and relative

XP Using the Positioning Properties New Perspectives on Blended HTML, XHTML, and CSS14 When you use absolute positioning, the element is displayed in the exact position you specify When you use relative positioning, you are shifting the element’s position from the point where that element normally would be displayed

XP Using the Positioning Properties The left property with: – A positive value positions an element a certain distance from the left edge of the screen, moving the element to the right – A negative value positions an element to the left The top property with: – A positive value positions an element a certain distance from the top edge of the screen, moving the element down – A negative value positions an element above the normal position New Perspectives on Blended HTML, XHTML, and CSS15

XP Using the Positioning Properties New Perspectives on Blended HTML, XHTML, and CSS16

XP Using the Positioning Properties The z-index property is used to stack elements in the browser window The value for the z-index property determines the stacking order – The higher the z-index value, the higher the text or the image is in the stack New Perspectives on Blended HTML, XHTML, and CSS17

XP Using the Positioning Properties New Perspectives on Blended HTML, XHTML, and CSS18 Although HTML does not have a headers and footers feature, it is a common convention to set the style for the last line of a Web page and describe that line as being the footer box

XP Using Print Styles To make sure a Web page prints correctly, you need to create a print style The media attribute determines where the output will go – The most common values are screen, which limits output to the screen print, which is designed to format your page to print appropriately New Perspectives on Blended HTML, XHTML, and CSS19

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

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