Advance CSS (Menu and Layout) Miftahul Huda. CSS Navigation MENU It's truly remarkable what can be achieved through CSS, especially with navigation menus.

Slides:



Advertisements
Similar presentations
HTML and CSS. HTML Hyper Text Markup Language Tells browser how to display text and images.
Advertisements

Advance CSS (Menu and Layout). CSS Navigation MENU.
CSS Styling CSS Box Model & CS110: Computer Science and the Internet.
Cascading Style Sheets
Cascading Style Sheets
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
Layout using CSS. Using multiple classes In the head:.important{font-style:italic;}.title{color:red;} In the body: Here's a type of paragraph that is.
Today CSS HTML A project.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
Slide 1 CMPS 211 Internet Programming Spring 2008 Dynamic Effects with Styles Chapter 12 2/6/08.
Chapter 7 Page Layout Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
Very quick intro HTML and CSS. Sample html A Web Title.
Cascading Style Sheets (CSS): Pixel-Level Control with HTML Ease
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.
Links.  Styling Links  Links can be styled with any CSS property (e.g. color, font-family, background-color).  Special for links are that they can.
Web Development & Design Foundations with XHTML Chapter 7 Key Concepts.
Principles of Web Design 5 th Edition Chapter Nine Site Navigation.
Cascading Style Sheets By: Valerie Kuna. What are Cascading Style Sheets? Cascading Style Sheets (CSS) are a standard for specifying the presentation.
Session 4: CSS Positioning Fall 2006 LIS Web Team.
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.
Web Development & Design Foundations with XHTML Chapter 7 Key Concepts.
End User Computing An Introduction to CSS Sujana Jyothi Research Lab1, Callan Building, Department of Computer Science
CSS BASICS. CSS Rules Components of a CSS Rule  Selector: Part of the rule that targets an element to be styled  Declaration: Two or more parts: a.
Building a Website: Cascading Style Sheets (CSS) Fall 2013.
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.
1 Pengantar Teknologi Internet W03: CSS Cascading Style Sheets.
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.
HTML for Beginners & JavaScript Magic - Step By Step - Thrandur Arnthorsson thrandur.net.
1 Dreamweaver CS5 intermediate class by Cookie Setton Build a CSS website WITHOUT TABLES Just when you thought you were starting to understand HTML coding,
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.
Cascade Style Sheet Demo. Cascading Style Sheets Cascading Style Sheets (CSS) is a simple mechanism for adding style (e.g., fonts, colors, spacing) to.
กระบวนวิชา 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:
ADVANCED CSS William Neely CEO, Piecewise.com. CSS FONTS AND TEXT CSS ‣ Line-height allows to indicate the amount of space between lines; allows for equal.
Unit 20 - Client Side Customisation of Web Pages
CSS normally control the html elements. Three Ways to Insert CSS There are three ways of inserting a style sheet: External style sheet Internal style.
Web Design with Cascading Style Sheet Lan Vu. Overview Introduction to CSS Designing CSS Using Visual Studio to create CSS Using template for web design.
More CSS CS HTML id attribute 2 Coding Horror! Our mission is to combine programming and “human” factors with geekiness! output  A unique ID for.
Tutorial 4: Creating page layout with css
CSS (Cascading Style Sheets): How the web is styled Create Rules that specify how the content of an HTML Element should appear. CSS controls how your web.
TUTORIAL 8: Enhancing a Web Site with Advanced CSS
CSS Tutorial 1 Introduction Syntax How to use style specifications. Styles.
Week 8 – Part 2 Page Layout Basics Key Concepts 1.
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.
Cascading Style Sheet (CSS) SAMPLE IT133 Pengembangan Web.
NAVIGATION USING HTML TO SET UP THE BASIC STRUCTURE OF A NAV BAR.
WebD Introduction to CSS By Manik Rastogi.
CSS.
Semester - Review.
Unit 3 - Review.
Creating Page Layouts with CSS
Advanced CSS BIS1523 – Lecture 20.
Cascading Style Sheets (Layout)
>> CSS Layouts.
Web Development & Design Foundations with HTML5 7th Edition
Chapter 7 Page Layout Basics Key Concepts
Web Development & Design Foundations with HTML5 8th Edition
Cascading Style Sheets
Basics of Web Design Chapter 7 Page Layout Basics Key Concepts
6 Layout.
How to use the CSS box model for spacing, borders, and backgrounds
Principles of Web Design 5th Edition
Introduction to Cascading Style Sheets (CSS)
Presentation transcript:

Advance CSS (Menu and Layout) Miftahul Huda

CSS Navigation MENU It's truly remarkable what can be achieved through CSS, especially with navigation menus. Using the immense power of CSS, we're going to turn this:

The HTML code for our CSS menu Services About us Contact us That's it! Quite simple really. Removing the bullets First thing we'll do is remove the bullets, by creating a new CSS rule: #nav-menu ul { list-style: none; padding: 0; margin: 0; }

Displaying the menu items inline To get these menu items all on to one line we'll insert this CSS rule: #nav-menu li { float: left; margin: em; } The float CSS command is the really important one here as that aligns the menu items up against each other. The margin CSS command gives each menu item no margin to the top or bottom and a 0.15em margin to the left and right. Our CSS navigation menu now looks like: Removing the bullets First thing we'll do is remove the bullets, by creating a new CSS rule: #nav-menu ul { list-style: none; padding: 0; margin: 0; }

#nav-menu ul { list-style: none; padding: 0; margin: 0; } #nav-menu li { float: left; margin: em; } #nav-menu li a { background: url(menu.jpg) #fff bottom left repeat-x; height: 2em; line-height: 2em; float: left; width: 9em;

display: block; border:1px solid blue; color: #0d2474; -moz-border-radius:10px; text-decoration: none; text-align: center; } /* Hide from IE5-Mac \*/ #nav-menu li a { float: none } /* End hide */ #nav-menu { width:130em }

/* Hide from IE5-Mac \*/ #nav-menu li a { float: none } /* End hide */ #nav-menu { width:130em } #nav-menu li a:link {color: #FF0000} /* unvisited link */ #nav-menu li a:visited {color: #00FF00} /* visited link */ #nav-menu li a:hover {color: #FF00FF; background: url(menu1.jpg) #000 bottom left repeat-x;} /* mouse over link */ #nav-menu li a:active {color: #0000FF;}/* selected link */

WEB Layout Using CSS In this tutorial you will learn to create a three column layout using css, and divs Here is the sample sketch of layout.

1.First of all we need to create a container for page contents. 2.Now create three partitions of it by creating three divs (header, content and footer) inside the container tag. 3.Finally add three more divs inside the content part. We will use these three divs to create columns in content area. Html code for above code is: Header Column 1 Column 2 Column 3 Footer

Now move to css part create the following code in your css file: body { margin:0; padding:0; } #container { margin:0; width:960px; } #container #header { height:100px; background-color:#FFFFCC; text-align:center; font:24px Verdana, Arial, Helvetica, sans-serif; } #container #content { font:12px Verdana, Arial, Helvetica, sans-serif; text-align:center; }

#content.col1 { float:left; width:200px; height:400px; background-color:#99CCFF; } #content.col2 { float:left; width:540px; margin-left:10px; background-color:#CC99FF; height:400px; } #content.col3 { float:right; width:200px; background-color:#99FFCC; height:400px; }

#container #footer { clear:both; background-color:#996633; font:12px Arial, Helvetica, sans-serif; text-align:center; }

Float property inside the col1, col2 and col3 classes will align the three divs left to right. Note that in the footer I used clear: both. Clear property should be used to clear heights of floating elements. “Both” used to clear right and left floating elements. Here is the result: