GIMP WEB 2.0 MENUS. Web 2.0 Menus: Horizontal Navigation Bar

Similar documents
GIMP WEB 2.0 MENUS WEB 2.0 MENUS: HORIZONTAL NAVIGATION BAR CREATING AN HTML LIST

GIMP WEB 2.0 MENUS. Web 2.0 Menus: Horizontal Navigation Bar with Dynamic Background Image

GIMP WEB 2.0 MENUS. Before we begin this tutorial let s visually compare a standard navigation bar and a web 2.0 navigation bar.

<style type="text/css"> <!-- body {font-family: Verdana, Arial, sans-serif} ***set font family for entire Web page***

AGENDA :: MULTIMEDIA TOOLS :: (1382) :: CLASS NOTES

Create a Web Page with Spry Navigation Bar. March 30, 2010

Creating a Navigation Bar with a Rollover Effect

NAVIGATION INSTRUCTIONS

HTML Summary. All of the following are containers. Structure. Italics Bold. Line Break. Horizontal Rule. Non-break (hard) space.

GIMP WEB 2.0 MENUS. Web 2.0 Menus: Horizontal Navigation Bar. Hover Effect:

WEBSITE PROJECT 2 PURPOSE: INSTRUCTIONS: REQUIREMENTS:

Exam II CIS 228: The Internet Prof. St. John Lehman College City University of New York 5 November 2009

Web Design and Development Tutorial 03

Lesson 5 Introduction to Cascading Style Sheets

Zen Garden. CSS Zen Garden

CSS.

Web Engineering CSS. By Assistant Prof Malik M Ali

Chapter 1 Getting Started with HTML 5 1. Chapter 2 Introduction to New Elements in HTML 5 21

KillTest *KIJGT 3WCNKV[ $GVVGT 5GTXKEG Q&A NZZV ]]] QORRZKYZ IUS =K ULLKX LXKK [VJGZK YKX\OIK LUX UTK _KGX

CSS Module in 2 Parts

Make a Website. A complex guide to building a website through continuing the fundamentals of HTML & CSS. Created by Michael Parekh 1

Web Design and Development ACS Chapter 11. Creating Lists 11/16/2017 1

CSS Cascading Style Sheets

Programmazione Web a.a. 2017/2018 HTML5

Block & Inline Elements

Chapter 7 BMIS335 Web Design & Development

Styles, Style Sheets, the Box Model and Liquid Layout

CSS: Layout Part 2. clear. CSS for layout and formatting: clear

Introduction to WEB PROGRAMMING

The default style for an unordered (bulleted) list is the bullet, or dot. You can change the style to either a square or a circle as follows:

CSS means Cascading Style Sheets. It is used to style HTML documents.

Wanted! Introduction. Step 1: Styling your poster. Activity Checklist. In this project, you ll learn how to make your own poster.

Page Layout Using Tables

Web Publishing Intermediate 2

Unit 10 - Client Side Customisation of Web Pages. Week 5 Lesson 1 CSS - Selectors

Multimedia Systems and Technologies Lab class 6 HTML 5 + CSS 3

<body bgcolor=" " fgcolor=" " link=" " vlink=" " alink=" "> These body attributes have now been deprecated, and should not be used in XHTML.

Cascading Style Sheets CSCI 311

COMP 101 Spring 2017 EXAM 2 2 March 2017

HTMLnotesS15.notebook. January 25, 2015

CSS. Selectors & Measurments. Copyright DevelopIntelligence LLC

Basics of Web Design, 3 rd Edition Instructor Materials Chapter 2 Test Bank

Guidelines for doing the short exercises

HTML and CSS: An Introduction

Using Advanced Cascading Style Sheets

5 Snowdonia. 94 Web Applications with C#.ASP

- The CSS1 specification was developed in CSSs provide the means to control and change presentation of HTML documents

Final Exam Study Guide

Lab 1: Introducing HTML5 and CSS3

CMPT 165 INTRODUCTION TO THE INTERNET AND THE WORLD WIDE WEB

3. Each of these mark examples contains an error. a. <input name= country value= Your country here. /> b. <checkbox name= color value= teal />

CS 350 Internet Applications I Name: Exam II (CSS) October 29, 2013

CSS worksheet. JMC 105 Drake University

Using Dreamweaver. 6 Styles in Websites. 1. Linked or Imported Stylesheets. 2. Embedded Styles. 3. Inline Styles

Create a cool image gallery using CSS visibility and positioning property

Downloads: Google Chrome Browser (Free) - Adobe Brackets (Free) -

Implementing a chat button on TECHNICAL PAPER

In the early days of the Web, designers just had the original 91 HTML tags to work with.

Web Development & Design Foundations with HTML5 & CSS3 Instructor Materials Chapter 2 Test Bank

Parashar Technologies HTML Lecture Notes-4

Introduction to Web Design CSS Reference

3.1 Introduction. 3.2 Levels of Style Sheets. - HTML is primarily concerned with content, rather than style. - There are three levels of style sheets

Introduction to Web Design CSS Reference

Creating a CSS driven menu system Part 1

ICT IGCSE Practical Revision Presentation Web Authoring

ADDING CSS TO YOUR HTML DOCUMENT. A FEW CSS VALUES (colour, size and the box model)

recall: a Web page is a text document that contains additional formatting information in the HyperText Markup Language (HTML)

Using Dreamweaver CC. 6 Styles in Websites. Exercise 1 Linked Styles vs Embedded Styles

Lesson 1 HTML Basics. The Creative Computer Lab. creativecomputerlab.com

Introduction to using HTML to design webpages

Session 3.1 Objectives Review the history and concepts of CSS Explore inline styles, embedded styles, and external style sheets Understand style

Module 2 (VII): CSS [Part 4]

Deccansoft Software Services

- HTML is primarily concerned with content, rather than style. - However, tags have presentation properties, for which browsers have default values

Website Development with HTML5, CSS and Bootstrap

Designing the Home Page and Creating Additional Pages

CSC 121 Computers and Scientific Thinking

Welcome Please sit on alternating rows. powered by lucid & no.dots.nl/student

CSS Cascading Style Sheets

Exercises. Task 1 Use My Computer to create a folder for the website. Step 1

Teach Yourself HTML5 & CSS 3: Week 5 Task 13 - Anchors Part 3

3.1 Introduction. 3.2 Levels of Style Sheets. - The CSS1 specification was developed in There are three levels of style sheets

- The CSS1 specification was developed in CSS2 was released in CSS2.1 reflects browser implementations

2005 WebGUI Users Conference

Responsive web design (RWD) CSS3 Media queries. Mobile vs desktop web sites. Web Development 1 CS1115/CS5002

Lab 4 CSS CISC1600, Spring 2012

CSS: Beyond the Code. Karen Perone Rodman Public Library.

Web Recruitment Module Customisation

HTML and CSS COURSE SYLLABUS

HTML. Mohammed Alhessi M.Sc. Geomatics Engineering. Internet GIS Technologies كلية اآلداب - قسم الجغرافيا نظم المعلومات الجغرافية

ICT IGCSE Practical Revision Presentation Web Authoring

Cascading Style Sheets (CSS)

Getting Started with Eric Meyer's CSS Sculptor 1.0

THE HITCHHIKERS GUIDE TO HTML

A Balanced Introduction to Computer Science, 3/E

Index. alt, 38, 57 class, 86, 88, 101, 107 href, 24, 51, 57 id, 86 88, 98 overview, 37. src, 37, 57. backend, WordPress, 146, 148

Cascading Style Sheets

CSS THE M\SS1NG MANUAL. David Sawyer McFarland. POGUE PRESS" O'REILLr Beijing Cambridge Farnham Köln Paris Sebastopol Taipei Tokyo

Using Dreamweaver CS6

Assignments (4) Assessment as per Schedule (2)

Transcription:

GIMP WEB 2.0 MENUS Web 2.0 Menus: Horizontal Navigation Bar WEB 2.0 MENUS: HORIZONTAL NAVIGATION BAR Hover effect: You may create your button in GIMP. Mine is 122 pixels by 48 pixels. You can use whatever size you want, but you will need to adjust the css code to reference your button size. CREATING AN HTML LIST Most horizontal or vertical navigation bars begin with a simple unordered list <ul> tag and the hyperlinks as list items <li> tags. Step 1: In a text editor, create an html file with the <html>, <head>, <title>, </title>, </head>, <body>, </body>, and </html> tags and save as horizontal_icon_navigation_bar.html in the PortableApps/GIMP/menus/ folder. Step 2: Between the beginning and ending <body> tags, type Web 2.0 Menus Horizontal Navigation Bar Page 1 of 8

<div id = "nav_bar"> <ul> <li><a href="#"><img src = "house.png" />Home</a></li> <li><a href="#"><img src = "users.png" />About Us</a></li> <li><a href="#"><img src = "services.png" />Services</a></li> <li><a href="#"><img src = "facebook.png" />Facebook</a></li> <li class = "last"><a href="#"><img src = "mobile-phone.png" />Contact Us</a></li> </ul> </div> Step 3: Save with the same name in the same folder. Step 4: View in a browser. STYLING THE UNORDERED LIST WITH A CASCADING STYLE SHEET The links are then styled with Cascading Style Sheets (CSS). The following instructions use an embedded style in the <head> section of the html file, but you may prefer to create a separate css file. Step 1: Between the beginning and ending <head> tags in the html file, add a style section as shown below and add the two style definitions. </title> Web 2.0 Menus Horizontal Navigation Bar Page 2 of 8

<style> </head> </style> Step 2: To set the width and height of the Navigation Bar, center it between the left and right margins, and give it a color navy, click between the beginning and ending <style> tags and enter the following code: #nav_bar /* sets the width of the bar */ width:1000px; /* sets the height of the nav bar */ height: 75px; /* centers the text links bar between the left and right margins */ margin-left: auto; margin-right:auto; background-color: navy; Save and test in the browser: Step 3: Enter the following code in the #nav_bar definition to change the link text font size to 12px, and bold: Web 2.0 Menus Horizontal Navigation Bar Page 3 of 8

font-size: 12px; font-weight: bold; Save and test in the browser: Step 4: Remove the bullets by adding the following style definition: #nav_bar ul list-style-type: none; Step 5: Now let s style the links so they display horizontally rather than vertically. Remember, you do this by using float: left. Set the width of the links to the same width as the buttons. Center the text. Add a left and right padding -- this is the space between the buttons. Enter the following code: #nav_bar li /* displays the link text horizontally rather than vertically */ float: left; /* sets the width of the links -- should be the same as the width of the button */ Web 2.0 Menus Horizontal Navigation Bar Page 4 of 8

width: 122px; text-align: center; /* the space to leave between each button -- this would leave 60 pixels */ padding-left: 30px; padding-right: 30px; Step 6: Now you will style the links. Display block treats the button and text as one unit. Center the text and graphic vertically. You will need to add padding on the top and bottom to fully display the button. Remove the underline, change the text color to white and bold. Type the following style definition: #nav_bar li a /* treats the button and text as one unit */ display: block; /* add a top margin to center the text and graphic vertically */ margin-top: 15px; /*since the button is wider than the text link, add padding on the top and bottom of the text to display the button fully */ padding-bottom: 4px; padding-top: 4px; text-decoration: none; color: white; Web 2.0 Menus Horizontal Navigation Bar Page 5 of 8

font-weight:bold; Save and test in the browser: Step 7: Now we need to do the styles when the user hovers over the link text. This is done with a:hover. When the users hover over a text link, we want to display a button, change the text to black and bold. Type the following code: #nav_bar li a:hover /* shortcut to use the image as a background once*/ background: url(button.png) no-repeat; /* changes the color of the font from white to black to display on the silver */ color: black; font-weight: bold; Save and test in the browser. You will need to hover over a text link to see the effect. Step 8: Now all that we need to do is remove the border around image and leave some space between the image and the text. Type the following: li img /* removes the blue border around the image that displays because it is a hyperlink */ Web 2.0 Menus Horizontal Navigation Bar Page 6 of 8

border:none; /* set this to the number of pixels you want between each image and text link */ margin-right: 7px; Save and test in the browser: Complete code displays below: <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> <title>icon Menu</title> <style type = "text/css" media = "screen"> #nav_bar /* sets the width of the bar */ width:1000px; /* sets the height of the nav bar */ height: 75px; /* centers the text links bar between the left and right margins */ margin-left: auto; margin-right:auto; background-color: navy; font-size: 12px; font-weight: bold; #nav_bar ul list-style-type: none; #nav_bar li /* displays the link text horizontally rather than vertically */ float: left; /* sets the width of the links -- should be the same as the width of the button */ width: 122px; text-align: center; /* the space to leave between each button -- this would leave 60 pixels */ padding-left: 30px; padding-right: 30px; Web 2.0 Menus Horizontal Navigation Bar Page 7 of 8

#nav_bar li a /* treats the button and text as one unit */ display: block; /* add a top margin to center the text and graphic vertically */ margin-top: 15px; /*since the button is wider than the text link, add padding on the top and bottom of the text to display the button fully */ padding-bottom: 4px; padding-top: 4px; text-decoration: none; color: white; font-weight:bold; #nav_bar li a:hover /* shortcut to use the image as a background once*/ background: url(button.png) no-repeat; /* changes the color of the font from white to black to display on the silver */ color: black; font-weight: bold; li img /* removes the blue border around the image that displays because it is a hyperlink */ border:none; /* set this to the number of pixels you want between each image and text link */ margin-right: 7px; </style> </head> <body> <nav> <ul> <li><a href="#"><img src = "house.png" />Home</a></li> <li><a href="#"><img src = "users.png" />About Us</a></li> <li><a href="#"><img src = "services.png" />Services</a></li> <li><a href="#"><img src = "facebook.png" />Facebook</a></li> <li class = "last"><a href="#"><img src = "mobile-phone.png" />Contact Us</a></li> </ul> </nav> </body> </html> BE SURE TO CHECK THE DISPLAY IN BOTH FIREFOX AND I.E. TO BE SURE THAT ALL OF THE STYLES WORK PROPERLY IN BOTH BROWSERS. Web 2.0 Menus Horizontal Navigation Bar Page 8 of 8