>> Navigation and Layouts in CSS

Slides:



Advertisements
Similar presentations
Cascading Style Sheets
Advertisements

Web Development & Design Foundations with XHTML Chapter 7 Key Concepts.
SM5312 week 11: CSS Menus & Navigation Bars1 An Introduction to Cascading Style Sheets CSS Menus and Navigation Bars Nick Foxall.
INTRODUCTORY Tutorial 7 Creating Liquid Layouts. XP Objectives Discern the differences among various types of layouts Create a liquid layout Create a.
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.
With CSS, a color is most often specified by: a HEX value - like "#ff0000" an RGB value - like "rgb(255,0,0)" a color name - like "red“ Example h1.
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.
Web Pages and Style Sheets Bert Wachsmuth. HTML versus XHTML XHTML is a stricter version of HTML: HTML + stricter rules = XHTML. XHTML Rule violations:
Unit 20 - Client Side Customisation of Web Pages
Basic use of columns is to organize a list of navigation links down the left or right side of the page next to a main content area. (Fig. 1) Another common.
Chapter 6 Working with Frames.
TUTORIAL 8: Enhancing a Web Site with Advanced CSS
CIT 256 Mobile Web Development Dr. Beryl Hoffman.
Tutorial 6 Creating Tables and CSS Layouts. Objectives Session 6.1 – Create a data table to display and organize data – Modify table properties and layout.
ITP 104.  While you can do things like this:  Better to use styles instead:
 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.
WEB DESIGN AND PROGRAMMING Advanced CSS Techniques.
 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.
Tutorial #6 – Creating Fixed Width Layouts. Tutorial #5 Review – Box Model Every html element is surround by a box Content, Padding, Border, Margin Can.
Today’s Agenda Advanced CSS Techniques Floating Z-index Centering Sliding Doors Fluid Layouts CSS3 Advanced CSS Lab Mini Project #2.
Web Design Part I. Click Menu Site to create a new site root.
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.
CIT 256 CSS Intro & Dreamweaver Built-in Layouts Dr. Beryl Hoffman.
Page Layout CHAPTER 5 1 CHARLES WYKE-SMITH: STYLIN’ WITH CSS: A DESIGNER’S GUIDE (3 ND EDITION)
Positioning Objects with CSS and Tables
Today’s objectives  Announcements  Positioning  Measurement units.
Group 9: Through examples, explain how to build a css navigation bar. Presented by: Daniel Ku, Matt Iannacci & Iphia Henry.
Understanding CSS Cascading Style Sheets control the presentation of content in HTML pages Style Sheets separate formatting from the content –Styles defined.
 Add one element at a time  If it doesn’t do what you want, › Delete it › DON’T just keep piling on more items.
>> CSS Layouts. Recall Properties of Box – Border (style, width, color) – Padding – Margin – Display – Background – Dimension Welcome Padding Area Border.
CONCEPTS FOR FLUID LAYOUT Web Page Layout. Essential Questions What challenges do mobile devices present to Web designers? What are the basic concepts.
NAVIGATION USING HTML TO SET UP THE BASIC STRUCTURE OF A NAV BAR.
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.
CSS.
Laying out Elements with CSS
Implementing Responsive Design
CSS Layouts: Positioning and Navbars
Semester - Review.
CSS Layouts: Grouping Elements
Unit 3 - Review.
Concepts for fluid layout
>> The “Box” Model
Creating Page Layouts with CSS
Box model.
Cascading Style Sheets (Layout)
Creating a Baseline Grid
CS3220 Web and Internet Programming Page Layout with CSS
>> CSS Layouts.
Objectives Create a media query Work with the browser viewport
CSS part 2 Outro.
CSS.
Objectives Create a reset style sheet Explore page layout designs
Creating Layouts Using CSS
IBM Kenexa BrassRing on Cloud Responsive Apply: Visual Branding Tool
Styles and the Box Model
Fixed Positioning.
CSS Box Model.
CSS and Box Model.
Responsive Framework.
Responsive Web Design (RWD)
CS3220 Web and Internet Programming Page Layout with CSS
Laying out Elements with CSS
CSS Boxes CS 1150 Fall 2016.
Concepts for fluid layout
CSc 337 Lecture 5: Grid layout.
Session IV Chapter 15 - How Work with Fonts and Printing
Presentation transcript:

>> Navigation and Layouts in CSS

Web-based Systems | Misbhauddin Using lists Navigation Links Web-based Systems | Misbhauddin

Web-Based Systems - Misbhauddin Step 1: Add Links Use <a> tag For href value, use # Change Color: LOVE-HATE Try Now: Links Home About Attendees Agenda Alumni Directory Survey Contact Web-Based Systems - Misbhauddin

Step 2: “Div-ify” Components Put Logo in its own div with id=“logo” Put Links in its own div called “nav” Try Now: Web-Based Systems - Misbhauddin

Step 3: Use Lists to organize Use an unordered list to organize all the navigation links. Try Now: Web-Based Systems - Misbhauddin

Web-Based Systems - Misbhauddin Step 4: Remove Bullets Use property list-style:none; Try Now: Web-Based Systems - Misbhauddin

Step 5: Display Items Inline Use property display:inline; Try Now: Adjust margins margin-right Web-Based Systems - Misbhauddin

Web-based Systems | Misbhauddin Laying out content in HTML using CSS Content Layout Web-based Systems | Misbhauddin

Web-Based Systems - Misbhauddin Layout Types in CSS Fixed-Width Layouts Main Wrapper is set to a specific immovable width Common width: 760px The “Good” Easier to Style Optimal for readability The “Bad” Line-width-to-text-size ratio does not increase with text sizing Small monitor people (640x480) will have a scrollbar Too narrow on large screen displays VISIT http://green-beast.com/ Web-Based Systems - Misbhauddin

Web-Based Systems - Misbhauddin Layout Types in CSS Fluid Layouts Main Wrapper is not specified or only with a % value The “Good” Can be used with any viewing device (in theory) Makes most use of the screen The “Bad” Too much content and clutter the screen CSS property max-width is not supported in IE. So? Try reading a line of text on a screen size with more than 1000 pixels. VISIT http://graybit.com/main.php Web-Based Systems - Misbhauddin

Web-Based Systems - Misbhauddin Layout Types in CSS Elastic Layouts Main Wrapper & other elements are measured in ems ems: unit of measure proportional to text/font size The “Good” Resizes at the same rate – no disproportionality The “Bad” Not much benefit – Only Cool VISIT http://www.csszengarden.com/?cssfile=http://green-beast.com/portfolio/zen/css/zen.css Web-Based Systems - Misbhauddin

Web-Based Systems - Misbhauddin Layout for the Course Fixed Layout with centered version Wrapper is fixed using the width property Margin is set to 0 auto; which means the top and bottom margin in zero and the left and right margin is automatic (hence centered based on the width) Web-Based Systems - Misbhauddin

Web-Based Systems - Misbhauddin Responsive Design Strategy of making a site that "responds" to the browser and device that it is being shown on Done using media queries @media screen and (min-width:600px) { nav { float: left; width: 25%; } section { margin-left: 25%; Web-Based Systems - Misbhauddin

Web-Based Systems - Misbhauddin Text Columns – Easy Way New set of CSS properties that let you easily make multi-column text Properties column-count column-gap Not supported by all browsers Use –moz- and -webkit- vendor prefixes Web-Based Systems - Misbhauddin

Do this for the Join Button in the exercise Custom Buttons in CSS Steps [using <BUTTON> tag] Make the appropriate selector in CSS Set an appropriate width and height Set the background color Text align to center Remove the border Steps [using <a> tag] Do all the above Vertical Alignment Set display to table-cell Set vertical-align to middle Works for centering in any div tag Do this for the Join Button in the exercise Web-Based Systems - Misbhauddin