Advance CSS (Menu and Layout). CSS Navigation MENU.

Slides:



Advertisements
Similar presentations
The University of Adelaide HTML Basics: Getting your code to work Peter Murdoch March 2014 PREPARING GOOD LOOKING DOCUMENTS.
Advertisements

HTML and CSS. HTML Hyper Text Markup Language Tells browser how to display text and images.
An in-class debugging exercise. All based upon real errors.
Web Engineering 1 Ishaq Khan Shinwari MCS City University Peshawar.
Cascading Style Sheets
Cascading Style Sheets
Chapter 6 More CSS Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
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.
CSS Digital Media: Communication and design 2007.
Today CSS HTML A project.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
Murach's PHP and MySQL, C1© 2010, Mike Murach & Associates, Inc.Slide 1.
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.
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
Advance CSS (Menu and Layout) Miftahul Huda. CSS Navigation MENU It's truly remarkable what can be achieved through CSS, especially with navigation menus.
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.
Cascading Style Sheet CSS CS1520 Ali Alanjawi. 2 TA Information Ali Alanjawi Homepage: Office:
Navigation Bars Level 2 Extended Certificate Unit B12 Doing Business Online.
CSS(Cascading Style Sheets )
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.
Tutorial 4: Creating page layout with css
TUTORIAL 8: Enhancing a Web Site with Advanced CSS
Lecture 2 - HTML and CSS Review SFDV3011 – Advanced Web Development 1.
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.
>> CSS Layouts. Recall Properties of Box – Border (style, width, color) – Padding – Margin – Display – Background – Dimension Welcome Padding Area Border.
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
Cascading Style Sheets (Layout)
>> CSS Layouts.
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
How to use the CSS box model for spacing, borders, and backgrounds
Presentation transcript:

Advance CSS (Menu and Layout)

CSS Navigation MENU

Buat File HTML dengan isi Services About us Contact us #nav-menu ul { list-style: none; padding: 0; margin: 0; } Percobaan 1

Percobaan 2 Tambahkan pada file HTML setelah tag tadi lihat perubahaannya #nav-menu li { float: left; margin: em; }

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; }

Percobaan 3 Memisahkan file html dan css Buat file coba.css, pindahkan isi dari tag … dari file html ke file coba.css dan hilangkan tag, simpan kedua file. Tambahkan diawal baris file html

#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; } #nav-menu li a { float: none } #nav-menu { width:130em } #nav-menu li a { float: none } #nav-menu { width:130em } #nav-menu li a:link {color: #FF0000} #nav-menu li a:visited {color: #00FF00} #nav-menu li a:hover {color: #FF00FF; background: url(menu1.jpg) #000 bottom left repeat-x;} #nav-menu li a:active {color: #0000FF;} Percobaan 4 - coba.css

Percobaan 5 Buat Layout halaman web seperti dibawah ini, gunakan

File HTML untuk percobaan 5 Header Column 1 Column 2 Column 3 Footer Percobaan 6

File CSS untuk percobaan 5 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;} Percobaan 7

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: