ITI 133: HTML5 Desktop and Mobile Level I

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
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.
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
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.
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
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
>> CSS Layouts.
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
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
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
Responsive Web Design (RWD)
ITI 239 HTML5 Desktop and Mobile Level I
ITI 134: HTML5 Desktop and Mobile Level II
Master a Skill / Learn for Life
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
Positioning Boxes Using CSS
CS3220 Web and Internet Programming More CSS
Presentation transcript:

ITI 133: HTML5 Desktop and Mobile Level I Session 3 - Chapter 5 How to Use the CSS Box Model for Spacing, Borders, and Backgrounds Before Class Activities Set Up Dreamweaver Development Environment Download Student Exercise file to the Desktop Unzip Exercise files to Developmental Folder Download and Print Class Presentations for Notes (Optional) www.profburnett.com

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

Copyright © Carl M. Burnett Student Exercise 1 Complete Exercise 4-1, page 160 Students will upload test files to live site. Students will preview in browser test files. Download link for files for Exercise 4-1 on website 7/5/2019 Copyright © Carl M. Burnett

Copyright © Carl M. Burnett Chapter 5 How to Use the CSS Box Model for Spacing, Borders, and Backgrounds 7/5/2019 Copyright © Carl M. Burnett

Copyright © Carl M. Burnett Intro to CSS Box Model TOP Margin Border LEFT Padding RIGHT This is the content area for the block element. It is the basis for the width and height properties. height width BOTTOM 7/5/2019 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 7/5/2019 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 7/5/2019 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 50 px 35px 110px; 7/5/2019 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 7/5/2019 Copyright © Carl M. Burnett

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 7/5/2019 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 7/5/2019 Copyright © Carl M. Burnett

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 7/5/2019 Copyright © Carl M. Burnett

Copyright © Carl M. Burnett Student Exercise 2 Complete Exercise 5-1 and 5-2 on page 193 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. 7/5/2019 Copyright © Carl M. Burnett

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