Week 8 – Part 2 Page Layout Basics Key Concepts 1.

Slides:



Advertisements
Similar presentations
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
Advertisements

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.
Web Development & Design Foundations with XHTML Chapter 7 Key Concepts.
Principles of Web Design 5 th Edition Chapter Nine Site Navigation.
Web Development & Design Foundations with XHTML Chapter 7 Key Concepts.
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.
CIS 1310 – HTML & CSS 6 Layout. CIS 1310 – HTML & CSS Learning Outcomes  Describe & Apply the CSS Box Model  Configure Float with CSS  Designate Positioning.
Navigation Bars Level 2 Extended Certificate Unit B12 Doing Business Online.
Unit 20 - Client Side Customisation of Web Pages
Chapter 9. Links  When styling a link, you must tell CSS both what you want to style, and when you want the style to happen  Web browsers keep track.
PART II dmfd. Digital Media: Communication and DesignF2007 Comments Remember: make a homepage using CSS Next Tuesday: guest lecture on Web.
Web Development & Design Foundations with XHTML Chapter 6 Key Concepts.
Web Development & Design Foundations with XHTML Chapter 6 Key Concepts.
Page Layout & Mobile Web Using columns, grid systems, etc… to layout sites for desktops and mobile.
LING 408/508: Programming for Linguists
Web Development & Design Foundations with XHTML
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
Basics of Web Design 1 Copyright © 2016 Pearson Education, Inc., Hoboken NJ.
Doman’s Sections Information in this presentation includes text and images from
Week 8 – Part 3 More on Links, Layout, and Mobile Key Concepts 1.
Copyright © Terry Felke-Morris CSS Flow & Positioning 1 Copyright © Terry Felke-Morris.
Tutorial #4 Formatting Text and Links. Tutorial #3 Review - CSS CSS format Selector { property1: value1; /* Comments */ } Embedded, In-Line, and External.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
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.
Lesson 03 // Cascading Style Sheets. CSS Stands for Cascading Style Sheets. We’ll be using a combination of Html and CSS to create websites. CSS is a.
CSS Tutorial 1 Introduction Syntax How to use style specifications. Styles.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
CSS Class 2 -Add margins to elements on a page. -Set width and height of elements. - CSS shorthand properties for box model. -Style links. -Style tables.
Principles of Web Design 6 th Edition Chapter 9 – Site Navigation.
Course created by Sarah Phillips BBCD Melbourne BAPDCOM Version 1 – April 2013.
Cascading Style Sheets (CSS). A style sheet is a document which describes the presentation semantics of a document written in a mark-up language such.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
LING 408/508: Programming for Linguists Lecture 10 September 30 th.
Web Development & Design Foundations with HTML5 7th Edition
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
Internet Technology Dr Jing LU Updated Dr Violet Snell / Dr Kalin Penev 1 Internet Technology (week 6)  Recap: Validating HTML  Page Layout.
INT222 - Internet Fundamentals Shi, Yue (Sunny) Office: T2095 SENECA COLLEGE.
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.
Copyright © Osmosys O S M O S Y SO S M O S Y S D e p l o y i n g E x p e r i e n c e & E x p e r t i s e™ CSS Training.
Web Development & Design Foundations with XHTML Chapter 6 Key Concepts.
CONTROLLING Page layout
Developing Web Applications with HTML and CSS “Selectors and Properties”
Chapter 7.  Change body and link styles  Create a drop-down menu  Change color and font styles in the menu  Create a pop-up effect using CSS  Utilize.
Unit 3 - Review. Topics 1. Tag, Attribute, Value 2. CSS Rule Syntax + link 3. Categories of Selectors 4. Inline vs Block Tags 5. CSS Layout 6. CSS Box.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 4 Formatting Text and Links.
NAVIGATION USING HTML TO SET UP THE BASIC STRUCTURE OF A NAV BAR.
1 Cascading Style Sheets
WebD Introduction to CSS By Manik Rastogi.
Cascading Style Sheets Layout
Web Development & Design Foundations with HTML5 7th Edition
Web Development & Design Foundations with XHTML
Cascading Style Sheets (Layout)
Web Development & Design Foundations with HTML5 7th Edition
Chapter 7 Page Layout Basics Key Concepts
Web Development & Design Foundations with HTML5 8th Edition
Web Development & Design Foundations with HTML5
Basics of Web Design Chapter 7 Page Layout Basics Key Concepts
6 Layout.
Float Property Elements that seem to “float" on the right or left side of either the browser window or another element are often configured using.
Web Development & Design Foundations with H T M L 5
Web Development & Design Foundations with HTML5 8th Edition
Web Development & Design Foundations with H T M L 5
Web Development & Design Foundations with HTML5
Web Development & Design Foundations with XHTML
Web Development & Design Foundations with HTML5
School of Business Administration
Presentation transcript:

Week 8 – Part 2 Page Layout Basics Key Concepts 1

1.Configure float 2.Configure fixed positioning 3.Configure relative positioning 4.Configure absolute positioning 5.Create two-column page layouts 6.Configure vertical navigation in an unordered list 7.Configure horizontal navigation in an unordered list. 8.Add interactivity to hyperlinks with CSS pseudo-classes 9.Configure CSS sprites

 Browser display of elements in the order they are coded in the Web page document Figure 7.1 Figure 7.2

 Elements that seem to “float" on the right or left side of either the browser window or another element are often configured using the CSS float property. h1 {background-color: #A8C682; padding: 5px; color: #000000; } p {font-family: Arial, sans-serif; } #yls {float: right; margin: 0 0 5px 5px; border: solid; }

 Useful to “clear” or terminate a float  Values are left, right, and both The h2 text is displayed in normal flow. clear: left; was applied to the h2. Now the h2 text displays AFTER the floated image.

Configures the display of elements on a web page. Useful to “clear” or terminate a float before the end of a container element Values are auto, hidden, and scroll The background does not extend as far as you’d expect. overflow: auto; was applied to the container div. Now the background extends and the h2 text displays AFTER the floated image. overflow: auto; was applied to the container div. Now the background extends and the h2 text displays AFTER the floated image.

#wrapper {width: 80%; margin-left: auto; margin-right: auto; background-color: #EAEAEA; } header { background-color: #CCCCFF; } h1 { margin: 0; padding: 10px; } nav { float: left; width: 150px; padding: 10px; } main { margin-left: 160px; padding: 10px; background-color: #FFFFFF; } footer { text-align: center; font-style: italic; background-color: #CCCCFF; }

<nav Home Menu Directions Contact  CSS removes the list marker and underline: nav ul { list-style-type: none; } nav a { text-decoration: none; }

 Configures how and if an element is displayed  display: none; o The element will not be displayed.  display: block; o The element is rendered as a block element – even if it is actually an inline element, such as a hyperlink.  display: inline; o The element will be rendered as an inline element – even if it is actually a block element – such as a. 10

 HTML: <nav Home Menu Directions Contact  CSS removes the list marker, removes the underline, adds padding, and configures the list items for inline display. nav ul { list-style-type: none;} nav a { text-decoration: none; padding-right: 10px; } nav li {display: inline; }

 Pseudo-classes and the anchor element  :link – default state for a hyperlink  :visited –a hyperlink that has been visited  :focus – triggered when the hyperlink has focus  :hover – triggered when the mouse moves over the hyperlink  :active – triggered when the hyperlink is being clicked a:link {color:#000066;} a:visited {color:#003366;} a:focus {color:#FF0000;} a:hover {color:#0099CC;} a:active {color:#FF0000;}

a:link {color: #ff0000; } a:hover { text-decoration: none; color: #000066; }

14

 nav { position: fixed; } 15

 Changes the location of an element in relation to where it would otherwise appear in normal flow p { position: relative; left: 30px; font-family: Arial, sans-serif; }

 Precisely specifies the location of an element outside of normal flow in relation to its first parent non-static element p { position: absolute; left: 200px; top: 100px; font-family: Arial, sans-serif; width: 300px; }

 Sprite  an image file that contains multiple small graphics  advantage: saves download time

 Manually check syntax errors  Use W3C CSS Validator to check syntax errors   Configure temporary background colors  Configure temporary borders  Use CSS comments to find the unexpected /* the browser ignores this code */  Don’t expect your pages to look exactly the same in all browsers!  Be patient! 19

 This chapter expanded your CSS skillset.  You configured web pages with floating elements with CSS.  You were introduced to fixed, relative, and absolute positioning.  You configured web pages with two-column page layouts  You used unordered lists to provide structure for navigation hyperlinks.  You added interactivity to hyperlinks with CSS pseudo-classes.  You configured a CSS sprite image. 20