 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.

Slides:



Advertisements
Similar presentations
LIS650 lecture 4 Thomas Krichel today Advice CSS Properties –Box properties –List properties –Classification properties Fun with selectors.
Advertisements

Slice and Dice: From PSD Image to XHTML+CSS Svetlin Nakov Telerik Corporation
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.
Chapter 3 – Web Design Tables & Page Layout
1 Cascading Style Sheets Continued Different kinds of selectors in a style sheet –Simple- Pseudo-Class –Contextual- Pseudo-Element –Class Image Styles.
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.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 4 Key Concepts 1 Copyright © Terry Felke-Morris.
Very quick intro HTML and CSS. Sample html A Web Title.
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.
FORMATTING IN CONTEXT. FOLLOW UPS ANCHOR POINTS MUST BE UNIQUE  If you have more than one, how does it know where to go?  They can be repeated across.
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.
User Interface Design using jQuery Mobile CIS 136 Building Mobile Apps 1.
Principles of Web Design 5 th Edition Chapter Nine Site Navigation.
SM5312 week 11: CSS Menus & Navigation Bars1 An Introduction to Cascading Style Sheets CSS Menus and Navigation Bars Nick Foxall.
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.
Building a Website: Cascading Style Sheets (CSS) Fall 2013.
CIS 1310 – HTML & CSS 6 Layout. CIS 1310 – HTML & CSS Learning Outcomes  Describe & Apply the CSS Box Model  Configure Float with CSS  Designate Positioning.
Web Pages and Style Sheets Bert Wachsmuth. HTML versus XHTML XHTML is a stricter version of HTML: HTML + stricter rules = XHTML. XHTML Rule violations:
Diliev.com & pLOVEdiv.com  DIliev.com.
กระบวนวิชา 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 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:
TUTORIAL 4: CREATING PAGE LAYOUT WITH CSS Session 4.3.
Interface Programming 1 Week 5. Interface Programming 1 CALENDAR.
 Next - Previous  Horizontal Bar  Vertical Menu.
4.01 Cascading Style Sheets
1 The Structure of a Web Table beginning of the table structure first row of three in the table end of the table structure table cells You do not need.
Primaries: magenta, yellow, and cyan This color system is called subtractive because: each primary color absorbs (subtracts) a certain part of the color.
CHAPTER 11 Tables. How Are Tables Used Data Display  Very tidy and very useful Better Text Alignment  Putting text in tables allows you to format indents.
ITP 104.  While you can do things like this:  Better to use styles instead:
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
 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.
 Komodo Edit Project › Helping you find your folder  Laptop › Delete what you don’t need › Keep class “doodles” in a single “sandbox” folder  Isis.
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.
Tutorial #6 – Creating Fixed Width Layouts. Tutorial #5 Review – Box Model Every html element is surround by a box Content, Padding, Border, Margin Can.
CIS234A- Lecture 7 Instructor Greg D’Andrea. Tables A table can be displayed on a Web page either in a text or graphical format. A text table: – contains.
Week 8 – Part 2 Page Layout Basics Key Concepts 1.
Principles of Web Design 6 th Edition Chapter 9 – Site Navigation.
DIV, Span, 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.
INT222 - Internet Fundamentals Shi, Yue (Sunny) Office: T2095 SENECA COLLEGE.
CONTROLLING Page layout
1 Preparation for site Create a folder in MyDocuments: beavercheese. Create a subfolder, images Classes, career, DW beginner Download.
Web111a_chapt04.ppt HTM: Section 4 Tables Table Types Text table elements Easy to use Use fixed-font text (font family monospace) Andale Mono Courier Monaco.
 Pictures  Page backgrounds  Element backgrounds (list items!)  Link displays (arrows)  List markers.
 Add one element at a time  If it doesn’t do what you want, › Delete it › DON’T just keep piling on more items.
Introduction to Programming the WWW I CMSC Winter 2003 Lecture 5.
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,
PERSPECTIVES: TUTORIAL 4 CREATING PAGE LAYOUTS WITH CSS.
Header, Footer, and Navigation toolbars CIS 136 Building Mobile Apps 1.
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,
NAVIGATION USING HTML TO SET UP THE BASIC STRUCTURE OF A NAV BAR.
>> Navigation and Layouts in CSS
CSS Layouts: Positioning and Navbars
Semester - Review.
CSS Layouts: Grouping Elements
Creating Page Layouts with CSS
Cascading Style Sheets (Layout)
Images and Backgrounds
Colors.
Styles and the Box Model
Fixed Positioning.
Web Development & Design Foundations with H T M L 5
Multipage Sites.
Presentation transcript:

 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

 Pictures  Backgrounds  Link displays  List markers

 Your own  Publicly available › Flickr and the Creative Commons Flickr › Google and labeled for reuse Google  IMPORTANT TO ASSURE NO COPYRIGHT INFRINGEMENT

caption

 Default: window size › Advantage: grows and shrinks easily › Disadvantage: harder to design  Making body fixed width › Advantage: easier to control › Disadvantage: scroll bars and unused space  Using fixed width section in default body › Combines advantage of fixed width without scroll bar › Allows complex backgrounds

 Body background › Need to assure readability › Simple images (see resources) › For busier images: use overlay  Use div or section or …  Opacity (0 to 1) to let it show through › Background-image  Background-size  Background-repeat

 Three possible models › NEXT and PREV (when fixed order) › Navigation bar to the parts › Single page with links (hub & spokes)  When use?  Mix and match? Multiple ways?

 Link to the exact spot › Heading, not paragraph › Top of the page  Make it easy to get to the navigation (top)  TOO MUCH NAVIGATION IS AS BAD AS NONE!  NEVER DEPEND ON BROWSER BACK BUTTON

 Consistent placement  Top, bottom, both  Often at the left and right edges  Next class  Structurally keep them together  Text  Images

 IDENTICAL CONTENT ON ALL PAGES › May want to distinguish current page  Horizontal or Vertical  Horizontal best practice › separate section: nav › inline list › top (below title) or top and bottom  Vertical two styles › Table of contents › Side bar (next week)  Better for long lists  Takes width

 Should you distinguish?  Two different bars › Horizontal (site) and vertical (page) › Color, size, font differentiation

 Remove bullets from list li { list-style-type: none; }  Make the list horizontal li { display: inline; }  Position where you want it (left, right, center, top, bottom)

 Format the individual link boxes li { border: 1px solid black; padding: 10px; margin: 0px 1px 0px 1 px; }  Padding will space within box, margin between boxes › May want to make it negative  Size of box › Vertical: line-height › Horizontal: based on text or define width

 Focus on layout  Simple is best  Basic parts › Header › Nav(igation) – may be in header › Section or div for main body › Footer

 Recommendation › Keep nav bar code the same on all pages › Simple copy and paste  This page: › Can use href=“#” or disable link › But then have to remember to change it  Exception: › If you want to format this page differently

 Margins  Positions  Heights

 How wide should your elements be? › Consistency › Enough white space  People have spent time working on it › 978 model 978 model  Example Example