CCT260H - Christopher Evan Jones

Slides:



Advertisements
Similar presentations
Use Tables for Layout Control Day 7. You will learn to: Understand Tables Create a Simple Table Modify Your Tables Appearance Create Page Layouts with.
Advertisements

Chapter 3 – Web Design Tables & Page Layout
HTML and CSS. HTML Hyper Text Markup Language Tells browser how to display text and images.
Cascading Style Sheets
Cascading Style Sheets
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.
Chapter 3 – Designing your web pages Dr. Stephanos Mavromoustakos.
Introduction to CSS. What is CSS? A CSS (cascading style sheet) file allows you to separate your web sites (X)HTML content from it’s style. Use your (X)HTML.
Very quick intro HTML and CSS. Sample html A Web Title.
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.
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.
1 Pengantar Teknologi Internet W03: CSS Cascading Style Sheets.
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,
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.
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:
Unit 20 - Client Side Customisation of Web Pages
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.
Week 9 Using the Box Properties. 9-2 The CSS Visual Formatting Model Describes how the element content boxes should be displayed by the browser –Based.
4.01 Cascading Style Sheets
ITP 104.  While you can do things like this:  Better to use styles instead:
Principles of Web Design 6 th Edition Chapter 10 – Data Tables.
CSS The Definitive Guide Chapter 8.  Allows one to define borders for  paragraphs  headings  divs  anchors  images  and more.
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › 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.
CS134 Web Design & Development Cascading Style Sheets (CSS) Mehmud Abliz.
CIS234A- Lecture 7 Instructor Greg D’Andrea. Tables A table can be displayed on a Web page either in a text or graphical format. A text table: – contains.
Layout with Styles Castro Chapter 11. Tables vs. CSS You can produce “liquid layouts” (layouts that stretch as the browser is resized) using tables or.
Web Design (12) CSS Introduction. Cascading Style Sheets - Defined CSS is the W3C standard for defining the presentation of documents written in HTML.
1 Preparation for site Create a folder in MyDocuments: beavercheese. Create a subfolder, images Classes, career, DW beginner Download.
Stylizing a Navigational Menu Web Design Section 6-3 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development.
 Add one element at a time  If it doesn’t do what you want, › Delete it › DON’T just keep piling on more items.
WebD Introduction to CSS By Manik Rastogi.
CSS.
Cascading Style Sheets (CSS) Internal Style Sheets Classes
IS1500: Introduction to Web Development
CSS Box Model.
CSS Box Model.
CSS HTML and website development.
The Box Model in CSS Web Design – Sec 4-8
4.01 Cascading Style Sheets
( Cascading style sheet )
Semester - Review.
CSS Layouts: Grouping Elements
Fix the CSS syntax errors below
Webpage layout using CSS
CSS Rule Selector Declaration Block Value Attribute Name body {
>> Introduction to CSS
Cascading Style Sheets
Cascading Style Sheets (Layout)
The Box Model in CSS Web Design – Sec 4-8
Cascading Style Sheets
IS333: MULTI-TIER APPLICATION DEVELOPMENT
Styles and the Box Model
The Internet 10/13/11 The Box Model
CSS Box Model.
For the World Wide Web Styling Tables with CSS
More CSS Page layout Boriana Koleva Room: C54
How to use the CSS box model for spacing, borders, and backgrounds
Training & Development
Floating and Positioning
CSS Box Model.
Web Design & Development
Principles of Web Design 5th Edition
4.01 Cascading Style Sheets
Introduction to Cascading Style Sheets (CSS)
Presentation transcript:

CCT260H - Christopher Evan Jones Layout 2010-01-26 CCT260H - Christopher Evan Jones

CCT260H - Christopher Evan Jones Last Lab Introduction to Styles Attributes Fonts Family and Sizes Colours 2010-01-26 CCT260H - Christopher Evan Jones

CCT260H - Christopher Evan Jones Divisions Recall the <body> tag Think of this tag as being a large division Web site can contain a number of containers These are created with divisions or the <div> tag A division can also contain other division 2010-01-26 CCT260H - Christopher Evan Jones

CCT260H - Christopher Evan Jones Planning Your Site Think about what divisions you will need Start with the highest level: the body Then divide up your page Starting with the biggest divisions, down to the smallest Title Menu Main Area Content Footer 2010-01-26 CCT260H - Christopher Evan Jones

Coding Your Site Title Main Area Content Create your elements Footer <body> <div id=“title”> </div> <div id=“menu”> <div id=“mainarea”> <div id=“content”> <div id=“footer”> Title Menu Main Area Content Note that ‘id’ or ‘class’ values cannot contain spaces Footer 2010-01-26 CCT260H - Christopher Evan Jones

Preparing Your Style <head> <style type="text/css"> div { border: solid 1px; } #title #menu #mainarea { } #content #footer </style> </head> Notice that instead of using a period (.) we use the hash symbol (#) to reference the id name of an element Adds a simple thin black border around each division This is just for clarity while editing and we will remove this after we’re done 2010-01-26 CCT260H - Christopher Evan Jones

Preparing Your Style Doesn’t look like much… does it? 2010-01-26 CCT260H - Christopher Evan Jones

Positioning Your Divisions By default, <div>s take up the entire width of this page and resize the length to fit your content You can force the size your <div> using pixels or ratios e.g. height: 100px; width: 50%; And, you can tell a division stay on one side e.g. float: left; float: right; 2010-01-26 CCT260H - Christopher Evan Jones

Formatting Your Divisions You can space your <div>s by adding margins margin: 5px; margin-top: 10px; Or padding padding: 5px; padding-left: 20px; Or borders border: solid 5px green; 2010-01-26 CCT260H - Christopher Evan Jones

Formatting Your Divisions <head> <style type="text/css"> div { border: solid 1px; margin: 5px; padding: 5px; } #title height: 50px; #menu width: 150px; float: left; height: 400px; #mainarea { margin-left: 180px; margin-top: 10px; } #content #footer height: 30px; text-align: right; </style> </head> 2010-01-26 CCT260H - Christopher Evan Jones

CCT260H - Christopher Evan Jones Formatted Divisions 2010-01-26 CCT260H - Christopher Evan Jones

CCT260H - Christopher Evan Jones Completing Divisions border-bottom: double 5px gray; background-color: #DDDDDD; font-size: 2em; Now that it is laid out, you can: Remove the borders Or add other borders for visual separation Use the styles from last lab (font-size, font-family, font-weight, color, background-color) to format and style the content border-right: solid 2px gray; background-color: #eeeeee; text-align:center; font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif; text-align: right; font-size: 0.8em; color:#AAAAAA; 2010-01-26 CCT260H - Christopher Evan Jones

Filling Your Divisions 2010-01-26 CCT260H - Christopher Evan Jones

CCT260H - Christopher Evan Jones Lab Three Create a new page (see Lab One) Create a layout for your page Give it some style (colours, borders, spacing) Copy the content of your last lab into your new page (everything between the <body> and </body> tags) 2010-01-26 CCT260H - Christopher Evan Jones

CCT260H - Christopher Evan Jones Choosing a Layout Sample layouts: http://blog.html.it/layoutgala/ Play with divisions: http://www.w3schools.com/css/tryit.asp?filename=trycss_boxmodel_width_doctype Play with borders: http://www.w3schools.com/css/css_border.asp 2010-01-26 CCT260H - Christopher Evan Jones