Neal Stublen Course Road Map  Create web page layouts using CSS  Manage CSS  Test website validity  Create navigation menus using.

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 CSS Properties –Box properties-- List properties –Table properties-- Classification properties –(Audio.
LIS650 lecture 4 Thomas Krichel today Advice CSS Properties –Box properties –List properties –Classification properties Fun with selectors.
Copenhagen, 6 December 2004 Modern CSS Principles Miruna Bădescu Finsiel Romania.
Neal Stublen Course Road Map  Create web page layouts using CSS  Manage CSS  Test website validity  Create navigation menus using.
1 Cascading Style Sheets Continued Different kinds of selectors in a style sheet –Simple- Pseudo-Class –Contextual- Pseudo-Element –Class Image Styles.
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.
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.
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.
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 6 Creating Fixed-Width Layouts
TUTORIAL 4: CREATING PAGE LAYOUT WITH CSS Session 4.3.
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.
Using CSS for Page Layout. Types of HTML Elements Block-Level Element –Creates blocks of content e.g. div, h1..h6, p, ul, ol, li, table, form –They start.
XP 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks Tutorial 7.
MORE Cascading Style Sheets (The Positioning Model)
4.01 Cascading Style Sheets
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.
Advanced CSS - Page Layout. Advanced CSS  Compound Selectors:  Is a Dreamweaver term, not a CSS term.  Describes more advanced types of selectors such.
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.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
Copyright © Terry Felke-Morris CSS Flow & Positioning 1 Copyright © Terry Felke-Morris.
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
Neal Stublen Course Road Map  Create web page layouts using CSS  Manage CSS  Test website validity  Create navigation menus using.
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.
Neal Stublen Course Road Map  Create web page layouts using CSS  Manage CSS  Test website validity  Create navigation menus using.
Week 8 – Part 2 Page Layout Basics Key Concepts 1.
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.
1 CS428 Web Engineering Lecture 08 Border, Margin, Padding … (CSS - III)
WEB DEVELOPMENT IMMERSIVE BUILDING PAGE LAYOUTS. 2 Box Model Scaling Positioning Boxes Box Aesthetics HTML 5 Semantic Tags CSS Resets TOPICS GENERAL ASSEMBLYWEB.
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.
Cascading Style Sheets (CSS) Part II IT210: Web-based IT.
Web Development & Design Foundations with XHTML Chapter 6 Key Concepts.
CONTROLLING Page layout
Tutorial 4 Creating Page Layouts with CSS
CSS - Quiz #3 Lecture Code:
BEGINNER WEB DESIGN. INTRODUCTION Vocabulary Design Tools of the Trade HTML CSS.
Understanding CSS Cascading Style Sheets control the presentation of content in HTML pages Style Sheets separate formatting from the content –Styles defined.
CHAPTER 15 Floating and Positioning. FLOAT VS. POSITION  Floating an element moves it to the left or right, allowing the following text to wrap around.
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.
Laying out Elements with CSS
Cascading Style Sheets Layout
CSS Layouts: Positioning and Navbars
CSS Layouts: Grouping Elements
Webpage layout using CSS
CS3220 Web and Internet Programming Page Layout with CSS
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
The Internet 10/25/11 XHTML Tables
Basics of Web Design Chapter 7 Page Layout Basics Key Concepts
Objectives Create a reset style sheet Explore page layout designs
6 Layout.
MORE Cascading Style Sheets (The Positioning Model)
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 H T M L 5
Web Development & Design Foundations with HTML5
Floating and Positioning
CS3220 Web and Internet Programming Page Layout with CSS
Web Development & Design Foundations with HTML5
Positioning Boxes Using CSS
Presentation transcript:

Neal Stublen

Course Road Map  Create web page layouts using CSS  Manage CSS  Test website validity  Create navigation menus using CSS  Incorporate meta content and multimedia

Course Road Map  Create forms  Create advanced styles and page layouts  Optimize for accessibility  Optimize for search engine indexing  Publish a website

Course Prerequisites  Familiarity with basic HTML  Assumption that you have only worked with basic HTML, not a lot of CSS experience (maybe none)

Applying Styles  Styles can be applied to any HTML element Using an attribute on the tag Using the section of a page Using a CSS file (more on this later)

Style Attribute This is red text.

Style Section.important { color: #ff0000 } This is red text.

 What's a box layout?  How do we organize sections of a box layout? position float clear What’s Ahead?

Examine a Web Page  Web pages are typically divided into distinct sections or areas. What are some of these common areas? Header Navigation menus Content Sidebar Footer

ide and Conquer  Content sections are broken down using... tags  Formatting applied to a tag is applied to all elements within the tag  A line break appears at both the start and end of the tag  Styling can be applied to control size and position

Overflow Property  How does the browser display content that extends beyond boundaries? scroll hidden visible auto inherit

What about ? ... tags also group content, but they remain inline (no line breaks)

Practice Activity  Creating Layouts, Activity 1 Use a tag to highlight a date (p.7) Create scrollable div (p.10)

What's a box layout?  A web page built with elements to control size and position  Alternatives: Fluid layouts Table layouts Frames

Box Properties  border  margin spacing between element border and another element  padding spacing between element border and element content  background-color

Different Box Models  Traditional (Netscape 4, IE4/5) padding and border are included in the element width  W3C padding and border are outside the element width  Browser mode can determine model

Position Property  static (default) use position specified by web page  absolute specified coordinates relative to container element  fixed specified coordinates relative to browser window  relative relative to the element’s default position

Z-index Property  Determines overlap order of elements  Only for elements with absolute position

Float Property  Floating an element moves it as far as possible to the right or left  Other elements will wrap around a floated element  left element floats to left  right element floats to right  none (default) element does not float

Clear Property  Prevents an element from floating because an adjacent element was floated  left no floating elements to the left  right no floating elements to the right  both no floating elements to either side  none (default) floating elements anywhere

Float and Clear Interaction  Floating one element implies floating another  Clearing one element does not imply clearing another  Clear takes priority over float

Practice Activity  Creating Layouts, Activity 2 Create header, footer, and container divs (p.17) Apply styles for position and appearance (p.20)

Practice Activity  Creating Layouts, Activity 3 Create two content columns (p.23) Apply styles for column position and appearance (p.26)

Practice Activity  Creating Layouts, Activity 4 Create a footer layer (p.29) Apply styles to the footer layer (p.30)

Which style attribute controls the spacing between two elements? A. border B. margin C. padding D. spacing Review

Which style attribute controls the spacing between two elements? A. border B. margin C. padding D. spacing Review

Which style(s) ensure(s) an element is positioned flush against the left margin? A. float: left B. clear: left C. float: none D. clear: both

Review Which style(s) ensure(s) an element is positioned flush against the left margin? A. float: left B. clear: left C. float: none D. clear: both

Review Which style(s) ensure(s) an element is positioned flush against the left margin? A. float: left B. clear: left C. float: none D. clear: both

Review Which selector modifies the style of an element with class="header"? A. header {... } B..header {... } C. #header {... } D. class.header { … }

Review Which selector modifies the style of an element with class="header"? A. header {... } B..header {... } C. #header {... } D. class.header { … }