Moving Boxes The CSS ‘box’ Model and moving elements around the page 1.

Slides:



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

Web Pages Week 10 This week: CSS Next week: CSS – Part 2.
Cascading Style Sheets
CSS CSS Precise Aesthetic Control. Cascading Style Sheets Though they can be put in HTML header, usually a separate page that the HTML links to Contains.
End User Computing An Introduction to CSS Sujana Jyothi Research Lab1, Callan Building, Department of Computer Science
1 Pengantar Teknologi Internet W03: CSS Cascading Style Sheets.
Web Pages and Style Sheets Bert Wachsmuth. HTML versus XHTML XHTML is a stricter version of HTML: HTML + stricter rules = XHTML. XHTML Rule violations:
Unit 20 - Client Side Customisation of Web Pages
Murach’s ASP.NET 3.5/C#, C5© 2008, Mike Murach & Associates, Inc.Slide 1.
Design, Formatting, CSS, & Colors 27 February, 2011.
Beginning Web Site Creation: Dreamweaver CS4. XHTMLCSS  Describes the structure  Content  Collection of styles  Formatting body { background-color:
Chapter 7 Using Advanced Cascading Style Sheets HTML5 & CSS 7 th Edition.
Lecture Cascading Style Sheets (CSS) Internal Style Sheets Classes.
Streamlining Website Development in Dreamweaver Roger L. Runquist Western Illinois University Roger L. Runquist Western Illinois University.
Web Workshop: CSS Objectives: - “What is CSS?” - Structure of CSS - How to use CSS in your webpage.
CSS Basics LIS Webteam April 8, Why CSS? What’s wrong with HTML? Structure vs Style Early web design used hacks to style webpages with HTML – like.
The.htm/.html Mystery When saving the template files in Internet Explorer, they will be named.htm by default. To be consistent with how the code was written.
4.01 Cascading Style Sheets
TUTORIAL 8: Enhancing a Web Site with Advanced CSS
CSS Style Rules Guang Tong, Zhan L;lo’p[ Css Style Rule Guang Tong Zhan Three ways to insert CSS 1 External style sheet 2 Internal style sheet 3 Inline.
Principles of Web Design 6 th Edition Chapter 10 – Data Tables.
The Characteristics of CSS
CSS – Presentation of Information. Types of Style Sheets External Embedded h1{color:red; font-family: Arial;} Inline Text is here.
Chapter 12 Cascading Style Sheets: Part II The Web Warrior Guide to Web Design Technologies.
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
WRT235: Writing in Electronic Environments CSS Classes, IDs, divs.
XHTML/CSS Week 3. This Week  Quiz to revise last week (XHTML and DW)  CSS - Part 2  Using HTML Tables.
CS134 Web Design & Development Cascading Style Sheets (CSS) Mehmud Abliz.
Tutorial #6 – Creating Fixed Width Layouts. Tutorial #5 Review – Box Model Every html element is surround by a box Content, Padding, Border, Margin Can.
Creating Your Own Webpage COSC Cascading Stylesheets Think of: HTML: content of your webpage HTML has tags CSS: presentation and appearance of your.
HTML GUIDE Press F5 and then Click on the links on the left to get to the section you want Section 1: Getting Started Section 2: Moving Banner Section.
Creating a Web Site Review of Concepts. Templates Templates are special HTML files that are used to quickly create pages on a web site. They contain the.
Cascading Style Sheets
1 © Netskills Quality Internet Training, University of Newcastle Using Style Sheets in Dreamweaver CS © Netskills, Quality Internet Training, University.
26 HTML Tables … surround table … surround each row … surround each cell … like, but bold and centered by default (for table headings) … table title No.
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 DEVELOPMENT IMMERSIVE BUILDING PAGE LAYOUTS. 2 Box Model Scaling Positioning Boxes Box Aesthetics HTML 5 Semantic Tags CSS Resets TOPICS GENERAL ASSEMBLYWEB.
CSS Layout Cascading Style Sheets. Lesson Overview  In this lesson, you will learn:  CSS Box Model  CSS properties for border  CSS properties for.
CSS Layout Cascading Style Sheets. Lesson Overview  In this lesson, you will learn:  CSS properties for margin  CSS properties for dimensions (width,
11/12/2015 Box Model Reed Crouch. 11/12/2015  HTML elements can be considered as boxes. In CSS, the term "box model" is used when referring to layout.
Web Design (12) CSS Introduction. Cascading Style Sheets - Defined CSS is the W3C standard for defining the presentation of documents written in HTML.
 Look especially at › File Tips and Shortcuts › Student video.
OV Copyright © 2008 Element K Content LLC. All rights reserved. Working with Web Pages  An Introduction to Cascading Style Sheets  Format a Web.
Creating Layouts with CSS. Span tag Here is some underlined text. Here is some blinking text. Here's some bold text.
Selective Formatting. Auto Grader Multiple selectors  May use the same formatting for two elements h1, h2 { font-family: cursive; }  Maintains consistency.
LT: I can use CSS to decorate a web page. Do Now: Get your storyboard, and log in to winhome. Write our a list of colors you want in your website. (Minimum.
HTML & CSS Contents: the different ways we can use to apply CSS to The HTML documents CSS Colors and Background CSS Fonts CSS Text CSS box model: padding,
CSS DHS Web Design. Location Between the & Start with – End with –
Cascading Style Sheets Using HTML. What are they? A set of style rules that tell the web browser how to present a web page or document. In earlier versions.
CSS Introductions. Objectives To take control of the appearance of a Web site by creating style sheets. To use a style sheet to give all the pages of.
CSS (Cascading Style Sheets). CSS CSS – Cascading Style Sheets – Cascade because of the way CSS rules can stack on top of each other. Allows you to add.
Cascading Style Sheets (CSS) Internal Style Sheets Classes
CSS Box Model.
CSS Box Model.
CSS HTML and website development.
Create and edit web pages 4
4.01 Cascading Style Sheets
Creating Your Own Webpage
>> Introduction to CSS
Cascading Style Sheets (Layout)
Cascading Style Sheets
CSS.
Styles and the Box Model
Intro to CSS Mr. Singh.
CSS Box Model.
Lesson 4 – Introduction to CSS
Training & Development
CSS.
CSS Box Model.
4.01 Cascading Style Sheets
Presentation transcript:

Moving Boxes The CSS ‘box’ Model and moving elements around the page 1

ReCap What is CSS? What is the difference between HTML and CSS? Divide up the page 2 Cascading Style Sheet HTML = Content CSS = Presentation

Containers Every element is treated like a ‘container’ 3

4 container “header” container “content” container “footer” container container containers

5 Containers (cont)

6

Close Tags! Important to put the OPENING tag and the CLOSING tag –It’s like a conversation, which never ends Can affect the rest of the page 7

If tags aren’t closed… 8

Example & Demonstration 9 this is a header title this is some text

CSS – remember to ‘close’ When writing a CSS style for an element, remember to CLOSE the declaration Start by writing the ELEMENT and the OPENING and CLOSING braces body { } 10

CSS – remember to ‘close’ Only THEN should you start defining styles and properties body { background-color: blue; color: white; text-align: center; } 11

Updating a Webpage Webpages never stay the same –How often have you seen a webpage change? If they don’t change, they’ll be seen as ‘boring’ or irrelevant What can prompt change? 12

Exercise 1 – Updating Webpages 13

The CSS ‘box model’ Each element is given it’s own space We can control how close – or far apart – each element is from another This creates greater flexibility to build a site for a variety of devices 14

The CSS ‘box model’ (cont) 15

The CSS ‘box model’ (cont) 16 The MARGIN and PADDING are ‘invisible’ areas They cannot be given colour The margin is ALL the space SURROUNDING the element The border is an option that can be given to any element The padding is the surrounding space between the element and the border

The CSS ‘box model’ (cont) margin: 5px; padding: 2px; 17 lorem ipsum 5 pixels 2 pixels

Demonstration of Box Model 18

Moving things around screen Exercise 2 19