HTML5 Level I Session III

Slides:



Advertisements
Similar presentations
Web Pages Week 10 This week: CSS Next week: CSS – Part 2.
Advertisements

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 4 Key Concepts 1 Copyright © Terry Felke-Morris.
Session 4: CSS Positioning Fall 2006 LIS Web Team.
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
CSS: Class 1 Background Images, Controlling Position of Background Images, Add Padding to Page Elements, Add Borders to Elements on a Page.
ITI 133: HTML5 Desktop and Mobile Level I
CSS Fun damentals The Document Hierarchy Element Relationships The Box Model.
CSS Layout Cascading Style Sheets. Lesson Overview  In this lesson, you will learn:  CSS Box Model  CSS properties for border  CSS properties for.
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.
Tutorial 4 Creating Page Layouts with CSS
HTML and Dreamweaver November 11th. Agenda Box Model Displaying and positioning elements – Padding – Margin – Float – Display – Position HTML Demo.
Web Design (17) CSS Box Element (2). ‘Box’ Web Site (1) Insert a navigation bar into the index.html file and create links to ‘index.html’, ‘pageone.html’
CSS.
Laying out Elements with CSS
CSS Box Model.
CSS Box Model.
The Box Model in CSS Web Design – Sec 4-8
Cascading Style Sheets Boxes
CSS Layouts: Positioning and Navbars
Google fonts CSS box model
The Box Model in CSS Web Design – Sec 4-8
CSS Layouts: Grouping Elements
HTML5 Level II Session V Chapter 8 - How to Use Responsive Web Design (RWD)
CS1220 Web Programming Saloni Chacha.
>> The “Box” Model
Box model.
The Box Model in CSS Web Design – Sec 4-8
Web Systems & Technologies
ITI 133 HTML5 Desktop and Mobile Level I
IS333: MULTI-TIER APPLICATION DEVELOPMENT
Chapter 6 More CSS Basics Key Concepts
Session I Chapter 10 - How to Work with Tables
ITI 133 HTML5 Desktop and Mobile Level I
HTML5 Level I Session III
Web Development & Design Foundations with HTML5 7th Edition
Cascading Style Sheets
Basics of Web Design Chapter 6 More CSS Basics Key Concepts
HTML5 Level I Session II Chapter 3 - How to Use HTML to Structure a Web Page
HTML5 Session III Chapter 5 - How to Use the CSS Box Model for Spacing, Borders, and Backgrounds Chapter 6 - How to use CSS for page.
CSS Borders and Margins.
CSS Box Model.
HTML5 Level I Session III
Box model, spacing, borders, backgrounds
Web Development & Design Foundations with H T M L 5
Cascading Style Sheets
Basics of Web Design Chapter 6 More CSS Basics Key Concepts
CSS Box Model.
Session VI Chapter 8 - How to Use Responsive Web Design (RWD)
HTML Level II (CyberAdvantage)
Creating a Webpage with External CSS
Basics of Web Design Chapter 6 More CSS Basics Key Concepts
Chapter 8 - How to Use Responsive Web Design (RWD)
Web Development & Design Foundations with H T M L 5
More CSS Page layout Boriana Koleva Room: C54
How to use the CSS box model for spacing, borders, and backgrounds
The Box Model.
CSS Box Model.
ITI 134: HTML5 Desktop and Mobile Level II
CSS Boxes CS 1150 Fall 2016.
CS3220 Web and Internet Programming More CSS
Chapter 4 - How to use CSS to Format the Elements of a Web Page
Cascading Style Sheets
CS3220 Web and Internet Programming More CSS
CSc 337 Lecture 5: Grid layout.
Session IV Chapter 15 - How Work with Fonts and Printing
ITI 133: HTML5 Desktop and Mobile Level I
Positioning Boxes Using CSS
CS3220 Web and Internet Programming More CSS
Presentation transcript:

HTML5 Level I Session III Chapter 5 - How to Use the CSS Box Model for Spacing, Borders, and Backgrounds www.profburnett.com

Class Outline Intro to CSS Box Model Size and Space Elements How to Set Borders and Backgrounds Student Exercise 1 11/19/2018 Copyright © Carl M. Burnett

<h1>This is a Heading</h1> Intro to CSS Box Model TOP Margin height Border Padding RIGHT LEFT <h1>This is a Heading</h1> This is the content area for the block element. It is the basis for the width and height properties. width BOTTOM 11/19/2018 Copyright © Carl M. Burnett

Formula to Calculate Height and Width Height – top margin + top border + top padding + height + bottom padding + bottom border + bottom margin Width – right margin + right border + right padding + width + left padding + left border + left margin 11/19/2018 Copyright © Carl M. Burnett

Size and Space Elements Properties for height and width width – Relative or Absolute Value height - Relative or Absolute Value min-width - Relative or Absolute Value min-height – Relative or Absolute Value max-width - Relative or Absolute Value max-height - Relative or Absolute Value 11/19/2018 Copyright © Carl M. Burnett

Size and Space Elements Properties for Setting Margins margin – One of four relative or absolute values margin-top margin-bottom margin-right margin-left Shorthand: margin:25px 50px 35px 110px; Top Right Bottom Left 11/19/2018 Copyright © Carl M. Burnett

Size and Space Elements Properties for Setting Padding padding– One of four relative or absolute values padding-top padding-bottom padding-right padding-left 11/19/2018 Copyright © Carl M. Burnett

How to Set Borders Properties for Setting Borders border – all sides border-side: width, style and color border-width: one of four relative or absolute values border-style: Keyword- dotted, dashed, etc. border-color: one of four color values for each side border-side-width: one of four relative or absolute values border-side-style: Keyword border-side-color: color value 11/19/2018 Copyright © Carl M. Burnett

How to Set Border Rounded Corners and Shadows border-radius: radius; All four corners border-radius: topLeft | topRight | lowerRight | lowerLeft box-shadow: horizontalOffset | verticalOffset | blurRadius | spread | color 11/19/2018 Copyright © Carl M. Burnett

How to Set Backgrounds Properties for Background Color and Image background: color | image | repeat | attachment | position value background-image: Relative or Absolute URL background-repeat: Keyword background-attachment: Keyword background-position: Relative or Absolute Value How to Set Background Gradients 11/19/2018 Copyright © Carl M. Burnett

Student Exercise 4 Complete Exercise 5-1 and 5-2 on page 197 using Dreamweaver. Download link for files for Exercise 5-1 on website. Upload your HTML page and CSS files to the live site to preview. 11/19/2018 Copyright © Carl M. Burnett

Chapter 6 - How to Use the CSS for Page Layout Class Review Intro to CSS Box Model Size and Space Elements How to Set Borders and Backgrounds Next – Session III Chapter 6 - How to Use the CSS for Page Layout 11/19/2018 Copyright © Carl M. Burnett