 CSS Presentation and layout is based on the CSS Box Model.  The CSS Box Model states that every element on a page is a rectangular box.  This includes:

Slides:



Advertisements
Similar presentations
Use Tables for Layout Control Day 7. You will learn to: Understand Tables Create a Simple Table Modify Your Tables Appearance Create Page Layouts with.
Advertisements

Chapter 3 – Web Design Tables & Page Layout
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.
Chapter 7 Page Layout Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
Cascading Style Sheets. CSS stands for Cascading Style Sheets and is a simple styling language which allows attaching style to HTML elements. CSS is a.
CSS cont. October 5, Unit 4. Padding We can add borders around the elements of our pages To increase the space between the content and the border, use.
Web Development & Design Foundations with XHTML Chapter 7 Key Concepts.
Recognizing the Benefits of Using CSS 1. The Evolution of CSS CSS was developed to standardize display information CSS was slow to be supported by browsers.
กระบวนวิชา CSS. What is CSS? CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to.
Web Design with Cascading Style Sheet Lan Vu. Overview Introduction to CSS Designing CSS Using Visual Studio to create CSS Using template for web design.
Tutorial 4: Creating page layout with css
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.
Tutorial 2: Formatting Text. Objectives Session 2.1 – Learn the functions of the Common toolbar – Change the size of text – Discern which fonts to use.
Chapter Concepts Discuss Fonts Understand Fonts
XP Creating Web Pages with HTML Using Tables. XP Objectives Create a text table Create a table using the,, and tags Create table headers and captions.
Using HTML Tables.
1 The Box Model. 2 XHTML Elements Block and inline elements Block is a stand alone element and inline goes inside block elements CSS allows you to control.
TUTORIAL 8: Enhancing a Web Site with Advanced CSS
© 2011 Delmar, Cengage Learning Chapter 2 Developing a Web Page.
Copyright © Texas Education Agency, All rights reserved. 1 Web Technologies Website Development with Dreamweaver.
Excel Part 2 Formatting a Workbook. XP Objectives Format text, numbers, and dates Change font colors and fill colors Merge a range into a single cell.
Understanding CSS Essentials: Content Flow, Positioning, and Styling
CONCEPTS FOR FLUID LAYOUT Web Page Layout. Website Layouts Most websites have organized their content in multiple columns (formatted like a magazine or.
Chapter 12 Cascading Style Sheets: Part II The Web Warrior Guide to Web Design Technologies.
(CSS) More Details Instructor: Mr. Ahmed Al Astal ITGD4104 Department Requirement for senior student University of Palestine Faculty of IT.
 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.
MySQL and PHP Review CSS. Cascading Style Sheet (CSS) Style sheets are files or forms that describe the layout and appearance of a document. Cascading.
Designing a Web Page with Tables. A text table: contains only text, evenly spaced on the Web page in rows and columns uses only standard word processing.
 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.
© 2012 The McGraw-Hill Companies, Inc. All rights reserved. word 2010 Chapter 3 Formatting Documents.
Tutorial #6 – Creating Fixed Width Layouts. Tutorial #5 Review – Box Model Every html element is surround by a box Content, Padding, Border, Margin Can.
INTRODUCTORY Tutorial 4 Exploring Graphic Elements and Images.
DIV, Span, CSS.
XP Review 2 New Perspectives on JavaScript, Comprehensive1 Introducing Cascading Style Sheets Formatting Web Pages with CSS.
Microsoft Expression Web 3 – Illustrated Unit F: Enhancing a Design 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.
XHTML Formatting font with a style declaration. Formatting Font HTML uses the font tag to change size and family of font But… the font tag is being deprecated.
INTRODUCTORY Tutorial 5 Using CSS for Layout and Printing.
CIS234A Lecture 5 Instructor Greg D’Andrea. Font Styles Review Font-Family: generic family, font family Font-Size: em, pt, px, %, mm, cm, in Font-Style:
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.
Microsoft Expression Web-Illustrated Unit F: Enhancing a Design with CSS.
CHAPTER 4 CREATING STYLES AND LAYOUTS WITH CSS. CHAPTER OBJECTIVES Create ID-based styles Position content with CSS Format text with CSS Identify CSS.
Web Technologies Beginning Cascading Style Sheets (CSS) 1Copyright © Texas Education Agency, All rights reserved.
Tutorial 4 Creating Page Layouts with CSS
Positioning Objects with CSS and Tables
Web Page Tables GMU-Teaching with Technology. Table Characteristics: Looks like a news page Contains columns and rows.
CIS234A Lecture 6 Instructor Greg D’Andrea. Span and Div The span and div elements are a generic means by which we can add structure to documents. The.
 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.
1 CS428 Web Engineering Lecture 07 Font, Text & Background (CSS - II)
HTML & CSS Contents: the different ways we can use to apply CSS to The HTML documents CSS Colors and Background CSS Fonts CSS Text CSS box model: padding,
CONCEPTS FOR FLUID LAYOUT Web Page Layout. Essential Questions What challenges do mobile devices present to Web designers? What are the basic concepts.
CSS.
CSS Box Model.
CSS Box Model.
The Box Model in CSS Web Design – Sec 4-8
CSS Layouts: Grouping Elements
Chapter 2 Developing a Web Page.
Cascading Style Sheets (Layout)
The Box Model in CSS Web Design – Sec 4-8
The Internet 10/13/11 The Box Model
Fixed Positioning.
CSS Box Model.
More CSS Page layout Boriana Koleva Room: C54
CSS Box Model.
Multipage Sites.
Session IV Chapter 15 - How Work with Fonts and Printing
Presentation transcript:

 CSS Presentation and layout is based on the CSS Box Model.  The CSS Box Model states that every element on a page is a rectangular box.  This includes: divs, images, headers, paragraphs, lists, and more.

 Each box has one core component (the content area)  Three optional components: borders, padding, and margins.  (Optional components do not appear unless specified in a style sheet)

 Content Area: › the innermost box › Contains the text, images, or other content  Padding Area: › Creates space between the content & border  Borders: › Enclose both the padding & the content area

 Margin: › Creates space surrounding the other three components (borders, padding, content) › Can also provide space between separate elements  For every element you can provide different padding, border, and margin properties to each of the four sides of the box.

 Masthead: used for the main header and branding area for the site  Top_nav: can be used for horizontal navigation  Left_col: a left-hand column  Page_content: an area to the right of the column that holds the site content, both images and text  Container: a div that contains both the left_col and the page_content divs  Footer: a div at the bottom of the page that holds text-based navigation and copyright notice

 Background images are applied through a style rule not directly inserted into an HTML page.  Once you’ve created a style rule to have a background image display in a div, it shows up on all pages that have that div as part of their structure.

 When you add the background-image property to a style rule, you can specify values for 4 properties: › Background-repeat: controls whether & how the image repeats across the element. › Background-attachment: controls whether the image scrolls with the element’s content or stays fixed as the content scrolls over it.

› (X) Background-position: control where the image is placed relative to the element’s left edge. › (Y) Background-position): control where the image is placed relative to the element’s top edge. › Table F-1 page 125 › We want to add background images to the Tradewinds site – page 124

 The select or Eyedropper tool allows you to sample a color or select it by clicking it on your screen.  When you want to exactly match the color in an existing style rule or image, the eyedropper tool is your best bet.

 Web Safe Colors: colors that display reliably on all computer monitors that have 256 colors or less. › Now most generally used for mobile devices (smart phones or handhelds)  Lets Try the Eyedropper tool in our Tradewinds website – page 126

 Predefined swatches appear when you click a color list arrow.  Provide access to basic colors.  Best when specifying basic black & white  Lets try setting a color using swatch in our Tradewinds website – page 128

 Border-style: choose from 11 different options (not all are well-supported by browsers  Border-width: use keywords (thin, medium, or thick) or specify a value in pixels › Best to specify in pixels- different browsers interpret keywords differently  Border- color: choose color by using hex value  Lets create a border in our Tradewinds website – page 130

 Adding margins and padding (white spaces): › looks less cluttered › Improves appearance › Increases readability  Lets fix the margins and padding on our Tradewinds website – page 132

 Webpage footers feature: › Text-only navigation › Copyright notice › Links to reference areas:  Private policy & Contact information  De-emphasize (less noticeable/ not distracting)  Lets fix the footer on our Tradewinds webpage – page 134

 Font Family: prioritized list of fonts (instead of a single font) › In case the visitor’s computer doesn’t have a specific font installed  By default, Expression offers only 3 sets of font-families but you can create your own.

 Web Safe fonts: fonts likely to be available on Windows, MAC, & Linux- based computer systems  Generic font families: part of the CSS specification › Displayed if no other fonts on the list are available › 3 generic font families are consistently understood:  Serif, sans serif, & monospace

 Serif: › such as Times New Roman › has visible strokes at the ends of the character  Sans-serif: › such as Arial › Has no strokes at the end of the character  Monospace: › Such as Courier › Has equal space between characters  Lets add font families to our Tradewinds website – page 136

 Creating interesting styles for heading is a great way to make your site more readable & more visually pleasing.  Lets adjust the headings in our Tradewinds website – page 138

 Complete the Concept Review › Page  Complete the Skills Review › Page  Complete the Real-Life Challenge › Page 145  Prepare for Exam