CSW131 Steven Battilana 1 CSW 131 – Chapter 6 Laying Out Pages Prepared by Prof. B. for use with Teach Yourself Visually Web Design by Ron Huddleston,

Slides:



Advertisements
Similar presentations
Cascading Style Sheets
Advertisements

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.
Chapter 3 – Designing your web pages Dr. Stephanos Mavromoustakos.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
Chapter 7 Page Layout Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
CIS 1310 – HTML & CSS 6 Layout. CIS 1310 – HTML & CSS Learning Outcomes  Describe & Apply the CSS Box Model  Configure Float with CSS  Designate Positioning.
CSW131 Steven Battilana 1 CSW 131 – Chapter 5 (More) Advanced CSS Prepared by Prof. B. for use with Teach Yourself Visually Web Design by Ron Huddleston,
Tutorial 4: Creating page layout with css
Tutorial 6 Creating Fixed-Width Layouts
Murach’s ASP.NET 3.5/C#, C5© 2008, Mike Murach & Associates, Inc.Slide 1.
Text Properties, Line Box, CSS. Text Properties Properties related to the display of text. Text-align : left, right, center I like FSU!
CSW131 Steven Battilana 1 CSW 131 – Chapter 2 Getting Started with HTML Prepared by Prof. B. for use with Teach Yourself Visually Web Design by Ron Huddleston,
Working with Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of a document.
CSW131 Steven Battilana 1 CSW 131 – Chapter 7 Adding Tables and Lists (X/HTML) Prepared by Prof. B. for use with Teach Yourself Visually Web Design by.
CA Professional Web Site Development Class 23 - CSS Positioning, Image Replacement & Print Styles.
Principles of Web Design 6 th Edition Chapter 7 – Page Layouts.
ITP 104.  While you can do things like this:  Better to use styles instead:
Web Development & Design Foundations with XHTML
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
Basics of Web Design 1 Copyright © 2016 Pearson Education, Inc., Hoboken NJ.
CSW131 Steven Battilana 1 CSW 131 – Supplement 1 (X)HTML / CSS Not Covered or in Book Prepared by Prof. B. for use with Teach Yourself Visually Web Design.
WRT235: Writing in Electronic Environments CSS Classes, IDs, divs.
Neal Stublen Course Road Map  Create web page layouts using CSS  Manage CSS  Test website validity  Create navigation menus using.
 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.
COMP213 – Web Interface Design
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.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
Web Design I Spring 2009 Kevin Cole Gallaudet University
Week 8 – Part 2 Page Layout Basics Key Concepts 1.
Internet Technology Dr Jing LU Updated Dr Violet Snell / Dr Kalin Penev 1 Internet Technology (week 6)  Recap: Validating HTML  Page Layout.
INT222 - Internet Fundamentals Shi, Yue (Sunny) Office: T2095 SENECA COLLEGE.
3.2 Cascading Style Sheets. 2 Positioning Elements Normally, elements are laid out on the page in the order that they are defined in the XHTML document.
Introduction to CSS Layout
Web Development & Design Foundations with XHTML Chapter 6 Key Concepts.
1 Preparation for site Create a folder in MyDocuments: beavercheese. Create a subfolder, images Classes, career, DW beginner Download.
5 th ed: Chapter 4 4 th ed: Chapter 5 SY306 Web and Databases for Cyber Operations SlideSet #5: Advanced CSS.
Coding with HTML {. THE BASICS { What is HTML and how can you use it to make websites?
HTML and Dreamweaver November 11th. Agenda Box Model Displaying and positioning elements – Padding – Margin – Float – Display – Position HTML Demo.
Week 5.  Normal document flow  Affecting document flow with float and position properties using CSS  Using these properties to create layouts.
End User Computing Applied CSS: Building our course homepage Sujana Jyothi Department of Computer Science
Understanding CSS Cascading Style Sheets control the presentation of content in HTML pages Style Sheets separate formatting from the content –Styles defined.
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.
PERSPECTIVES: TUTORIAL 4 CREATING PAGE LAYOUTS WITH CSS.
CS 120: Introduction to Web Programming Lecture 10: Extra Features and Website Design Part 1 Tarik Booker CS 120 California State University, Los Angeles.
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,
... Basic iframe body {color: brown; font-family: "Times New Roman"} this is a test of using iframe This is some text just so I can deal with positioning.
>> CSS Layouts. Recall Properties of Box – Border (style, width, color) – Padding – Margin – Display – Background – Dimension Welcome Padding Area Border.
NAVIGATION USING HTML TO SET UP THE BASIC STRUCTURE OF A NAV BAR.
CSS.
Laying out Elements with CSS
Introduction to CSS Layout
CCT260H - Christopher Evan Jones
Cascading Style Sheets (Layout)
>> CSS Layouts.
Web Development & Design Foundations with HTML5 7th Edition
Chapter 7 Page Layout Basics Key Concepts
Web Development & Design Foundations with HTML5 8th Edition
Laying out a website using CSS and HTML
Float Property Elements that seem to “float" on the right or left side of either the browser window or another element are often configured using.
Web Development & Design Foundations with H T M L 5
Web Development & Design Foundations with H T M L 5
Floating and Positioning
Positioning Boxes Using CSS
Presentation transcript:

CSW131 Steven Battilana 1 CSW 131 – Chapter 6 Laying Out Pages Prepared by Prof. B. for use with Teach Yourself Visually Web Design by Ron Huddleston, Wiley

CSW131 Steven Battilana 2 Set Up Your Pages for CSS Layouts (pp ) Laying out pages using CSS requires we first mark off different divisions / sections of the page using with varying logically-named IDs. Typically pages have a header, body, footer, additional columns and or sidebars. Laying out pages using CSS requires we first mark off different divisions / sections of the page using with varying logically-named IDs. Typically pages have a header, body, footer, additional columns and or sidebars. First download ch06.zip into downloads subfolder copy & paste ch06zip into class_work subfolder extract (unzip) ch06.zip, which becomes subfolder ch06 into class_work subfolder Right-click index.html and select Edit with Notepad++ On a new line after type: On a new line after type: And on a new line after the 1 st paragraph type And on a new line after the 1 st paragraph type [closes the sidebar div] [closes the sidebar div] More...

CSW131 Steven Battilana 3 Set Up Your Pages for CSS Layouts (pp CONT.) On a new line after type On a new line after type And on a new line before type And on a new line before type [closes the mainContent div] [closes the mainContent div] Save index.html. Save index.html.

CSW131 Steven Battilana 4 Float Elements (pp ) Columns are easily created in CSS using float. Three values for float are left, right, and none. If you use float: left; for an element, that means it will float to the left of following elements, right, it will float to the right of following elements, and none removes the float. Columns are easily created in CSS using float. Three values for float are left, right, and none. If you use float: left; for an element, that means it will float to the left of following elements, right, it will float to the right of following elements, and none removes the float. Open styles.css using Notepad++, and on a new last line type: Open styles.css using Notepad++, and on a new last line type:#sidebar{ width: 150px; [we MUST set a width for float to work!] float: left; } Save styles.css and view index.html in browser, noting two columns, but clearly more coding needs to be added/corrected. Save styles.css and view index.html in browser, noting two columns, but clearly more coding needs to be added/corrected. Note: Since all element default widths are 100%, you must set a width for any element you wish to float. Note: Since all element default widths are 100%, you must set a width for any element you wish to float. Note2: clear: both; & float: none; can be used to set a footnote. Note2: clear: both; & float: none; can be used to set a footnote. More …

CSW131 Steven Battilana 5 Clear Float for Footnotes (NOT IN BOOK) Within index.html on a new line before type: Within index.html on a new line before type: Copyright &copy 2013 Your Name. Within index.html on a new line before type #footer p { float: none; clear: both; float: none; OR clear: both; font-size: 70%; font-weight: bold; color: #FFFFFF; border-top: #FFFFFF 1px solid; width: 560px; text-align: center; margin-top: 20px; } Save index.html and view in browser. See available symbols. Save index.html and view in browser. See available symbols.See available symbolsSee available symbols

CSW131 Steven Battilana 6 Using Margins and Padding to Fix Float Problems (pp ) and are most commonly. Margins and paddings are most commonly used to fix spacing issues when using floats. Continuing in styles.css using Notepad++, in the sidebar on a new line before the closing } type: Continuing in styles.css using Notepad++, in the sidebar on a new line before the closing } type: padding-right: 20px; and within mainContent before the closing } type: margin-left: 170px; Save style.css and view index.html in browser. Note: If float is right, then use padding-left. Use similar left / right consideration for elements that are not floated (next to the floated elements). Remember the box model! Note: If float is right, then use padding-left. Use similar left / right consideration for elements that are not floated (next to the floated elements). Remember the box model! The element content Padding Border Margin

CSW131 Steven Battilana 7 Work with Overflow (pp ) CSS overflow allows you to handle content that goes beyond the size of a container you define (using both height and weight properties). CSS overflow allows you to handle content that goes beyond the size of a container you define (using both height and weight properties). Continuing in styles.css using Notepad++, in the sidebar on a new line before the closing } type: Continuing in styles.css using Notepad++, in the sidebar on a new line before the closing } type: height: 500px; overflow: auto; [adds scrollbar ONLY if needed] Save style.css and view index.html in browser. Save style.css and view index.html in browser. Note: See “Tip” at bottom of p. 159 for other overflow options. Note: See “Tip” at bottom of p. 159 for other overflow options.

CSW131 Steven Battilana 8 To Do List Start preparing for Quiz 2! Start preparing for Quiz 2! Read Chapter 6 Read Chapter 6 Revisit what we did in class Revisit what we did in class Be careful as we do not follow book Remember, MUCH more detail about anything we cover is: Remember, MUCH more detail about anything we cover is: at w3.org the Appendices of your book DOCUMENT Your Project DOCUMENT Your Project If we have not reviewed your progress today, we will next week. Remember, websites about one of your passions is usually a winner.