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:

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.
1 Cascading Style Sheets Continued Different kinds of selectors in a style sheet –Simple- Pseudo-Class –Contextual- Pseudo-Element –Class Image Styles.
CSS Layout Crash Course An Advance CSS Tutorial. Inline vs. Block Many HTML elements have a default display setting of Block. Block elements take up the.
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.
Murach's PHP and MySQL, C1© 2010, Mike Murach & Associates, Inc.Slide 1.
Web Standards XHTML and CSS. Today’s Show ► Discuss web standards ► XHTML ► Layout Without Tables ► CSS ► Why Web Standards?
Adding styles. Three alternatives HIT151 Web 'n' Net Web Page Basics /*stylesheet*/ h1,h2,h3 { font-family: verdana, arial, 'sans serif'; } p,table,li.
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
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.
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.
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:
Recognizing the Benefits of Using CSS 1. The Evolution of CSS CSS was developed to standardize display information CSS was slow to be supported by browsers.
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.
กระบวนวิชา 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.
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.
Tutorial 4: Creating page layout with css
Cascading Style Sheet (CSS) Instructor: Dr. Fang (Daisy) Tang
Class three: CSS review, backgrounds, font formatting, 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.
 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.
Lesson 03 // Cascading Style Sheets. CSS Stands for Cascading Style Sheets. We’ll be using a combination of Html and CSS to create websites. CSS is a.
Course created by Sarah Phillips BBCD Melbourne BAPDCOM Version 1 – April 2013.
Internet Technology Dr Jing LU Updated Dr Violet Snell / Dr Kalin Penev 1 Internet Technology (week 6)  Recap: Validating HTML  Page Layout.
Copyright © Osmosys O S M O S Y SO S M O S Y S D e p l o y i n g E x p e r i e n c e & E x p e r t i s e™ CSS Training.
Chapter 7.  Change body and link styles  Create a drop-down menu  Change color and font styles in the menu  Create a pop-up effect using CSS  Utilize.
WebD Introduction to CSS By Manik Rastogi.
CSS.
Cascading Style Sheets (CSS) Internal Style Sheets Classes
Creating Page Layouts with CSS
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.
The Internet 10/13/11 The Box Model
CSS Borders and Margins.
MORE Cascading Style Sheets (The Positioning Model)
How to use the CSS box model for spacing, borders, and backgrounds
Principles of Web Design 5th Edition
Transitioning Opacity
Session IV Chapter 15 - How Work with Fonts and Printing
Presentation transcript:

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: Sam & Sally's Cafe

Let’s use to format the copyright in the footer. html: © css: footer span { font-family: KameronRegular, ''Times New Roman'', serif; }

, like, doesn’t mean anything. It’s meant to divide up the page into parts. Try it: …

the webpage height content width border padding margin

header body navigation footer the webpage right column left column right column content

#hours { background-color: #66839E; padding:1em; color:#fff; width:12em; }

#hours { background-color: #66839E; padding:1em; color:#fff; width:12em; position:relative; }

#hours { background-color: #66839E; padding:1em; color:#fff; width:12em; position:relative; top:1em; right:-2.5em; }

#hours { background-color: #66839E; padding:1em; color:#fff; width:12em; position:absolute; top:1em; right:-2.5em; }

#reservations { background-color: #66839E; padding:1em; color:#fff; width:12em; position:absolute; top:20em; right:-2.5em; }

…unless you set position:inherit.

footer { font-family: OstrichSansBold, Verdana, Geneva, sans-serif; font-size: 2em; text-align: center; position:fixed; bottom:0; left:0; right:0; }

footer { font-family:OstrichSansBold,Arial,Helvetica,sans-serif; font-size:1em; line-height:1.5em; text-align:center; background-color: #66839E; color: #fff; min-width:600px; position:fixed; bottom:0; left:0; right:0; }

a relatively positioned element inside a static element uses the window to position itself. a relatively or absolutely positioned element inside a relatively positioned element uses that parent element to position itself.

#content { position:relative; background: orange; }

#content { position:relative; background: orange; padding:1em 12.5em 1em 1em; clear:both; }

body { background-color:#F1F2E4; font-family:KameronRegular, "Times New Roman", serif; width:80%; margin:0 auto; min-width:600px; }

lets you wrap text around an element. img { float:left; margin:.5em; width:12em; }

let’s practice floating to the right: #img3 { float:right; margin:.5em; width:12em; }

nav ul { font-family: OstrichSansBold, Arial, Helvetica, sans-serif; font-size:2em; padding: 0; margin: 0; width: 100%; list-style-type: none; }

nav ul li{ line-height: 1.5em; padding-bottom: 1%; float: left; width: 24.95%; text-align: center; }

nav ul li a { text-decoration:none; display: block; color: #66839E; }

nav ul li a:hover { color: #FFF; background-color: #66839E; }

a keyword added to a selector to indicate a specific state. here’s some link-related selectors: :hover :visited :active

HTML5shiv ( CSS3 PIE ( Just download scripts and include on site – will have to reference scripts in HTML or CSS

In :

 Mozilla Developer Network  Codecademy  HTMLdog  W3schools  LearnStreet