COS 125 DAY 12. Agenda  Assignment 5 Corrected 7 A’s & 2 B’s No one got the 10 bonus points  Required that all rules were correct  test5.txt test5.txt.

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.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
Creating and Editing a Web Page Using Inline Styles
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.
CIS 1310 – HTML & CSS 6 Layout. CIS 1310 – HTML & CSS Learning Outcomes  Describe & Apply the CSS Box Model  Configure Float with CSS  Designate Positioning.
Web Pages and Style Sheets Bert Wachsmuth. HTML versus XHTML XHTML is a stricter version of HTML: HTML + stricter rules = XHTML. XHTML Rule violations:
Creating Special Effects with CSS
Tutorial 6 Creating Fixed-Width Layouts
Web-based Application Development Lecture 9 February 7, 2006 Anita Raja.
COS 125 Day 25. Agenda  Assignment #7 Due  Final capstone progress report due next class  Assignment #8 Posted Due April 25 One more to go  Exam #5.
COS 125 DAY 19. Agenda  Assignment #6 Due April 7  Next Capstone Progress Report Due April 7  Next Quiz (Quiz #4) April 11 Castro Chap 8, 9, 10, 11.
COS 125 DAY 23. Agenda Assignment 6 Corrected  5 A’s, 1 B, 1 C and 1 D  Problems with using CSS for layouts Assignment 7 is due today Assignment 7 Assignment.
COS 125 DAY 20. Agenda  Assignment 5 corrected 3 A’s, 4 B’s, 1 D and 1 F’s 4 late -20 points per day Time of submission is the later of the.
XP 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks Tutorial 7.
Tutorial 4 Creating Special Effects with CSS
Working with Cascading Style Sheets. 2 Objectives Introducing Cascading Style Sheets Using Inline Styles Using Embedded Styles Using an External Style.
CSS (Cascading Style Sheets): How the web is styled Create Rules that specify how the content of an HTML Element should appear. CSS controls how your web.
TUTORIAL 8: Enhancing a Web Site with Advanced CSS
Chapter 9 Collecting Data with Forms. A form on a web page consists of form objects such as text boxes or radio buttons into which users type information.
 Using Microsoft Expression Web you can: › Create Web pages and Web sites › Set what you site will look like as you design it › Add text, images, multimedia.
Page Layout & Mobile Web Using columns, grid systems, etc… to layout sites for desktops and mobile.
XP Tutorial 7New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks.
Tutorial 4: Using CSS for Page Layout. 2 Objectives Session 4.1 Explore CSS layout Compare types of floating layouts Examine code for CSS layouts View.
Tutorial 4 Creating Special Effects with CSS. XP Objectives Work with CSS selectors Create styles for lists Create and apply class styles Create a rollover.
INTRODUCTION TO HTML5 CSS Styles. Understanding Style Sheets  HTML5 enables you to define many different types of content on a web page, including headings,
CSS Positioning Creating Special Effects with CSS CS202 Working with Cascading Style Sheets (Chapter 4) CS202 1.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
CSS Netcentric. What is CSS O CSS stands for Cascading Style Sheets O Styles define how to display HTML elements O Styles were added to HTML 4.0 to solve.
Neal Stublen Course Road Map  Create web page layouts using CSS  Manage CSS  Test website validity  Create navigation menus using.
Page Layout with CSS Learning Web Design: Chapter 16.
Style Sheets for Print and Mobile Media Types Supplemental Material.
COS 125 DAY 21. Agenda Assignment 8 corrected  4 A’s, 2 B’s, 2 C’s and 1 late Assignment 9 not corrected yet Capstone progress report due There will.
CSCE 102 – Chapter 6 (Web Design and Layout) CSCE General Applications Programming Benito Mendoza Benito Mendoza 1 By Benito Mendoza.
Tutorial #6 – Creating Fixed Width Layouts. Tutorial #5 Review – Box Model Every html element is surround by a box Content, Padding, Border, Margin Can.
_______________________________________________________________________________________________________________ PHP Bible, 2 nd Edition1  Wiley and the.
Use CSS to Implement a Reusable Design Selecting a Dreamweaver CSS Starter Layout is the easiest way to create a page with a CSS layout You can access.
Course created by Sarah Phillips BBCD Melbourne BAPDCOM Version 1 – April 2013.
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.
1 HTML Frames
XP Review 2 New Perspectives on JavaScript, Comprehensive1 Introducing Cascading Style Sheets Formatting Web Pages with CSS.
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.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 7 Key Concepts 1 Copyright © Terry Felke-Morris.
INTRODUCTORY Tutorial 5 Using CSS for Layout and Printing.
Positioning and Printing Creating Special Effects with CSS.
CNIT 132 – Week 4 Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of.
Tutorial 4 Creating Special Effects with CSS. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Work with CSS selectors.
Tutorial 4 Creating Special Effects with CSS. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Work with CSS selectors.
COS 125 DAY 15. Agenda  Assignment 6 Not corrected yet  Web Server login issues  Assignment 7 Posted Due March 9:35 AM  Quiz 2 will be on March.
Tutorial 4 Creating Special Effects with CSS. XP Objectives Work with CSS selectors Create styles for lists Create and apply class styles Create a rollover.
COS 125 DAY 17. Agenda  Assignment 7 not finished grading  Assignment 8 posted Due April 9  Capstone progress reports due  Quiz 2 Corrected 2 A’s,
Creating and Editing a Web Page
COS 125 DAY 14. Agenda  Assignment 6 DUE  Assignment 7 Posted Due March 9:35 AM  Quiz 2 will be on March 30 Chapters M/C and 4 Short.
Introduction to Programming the WWW I CMSC Summer 2003 Lecture 6.
Creating a Google Site For a Digital Portfolio Purpose.
Web Design Principles 5 th Edition Chapter 3 Writing HTML for the Modern Web.
XP Tutorial 7New Perspectives on HTML and XHTML, Comprehensive 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks Tutorial 7.
INTERNET APPLICATIONS CPIT405 CSS Cascading Style Sheet Instructor: Omnia H. Alwazzan
CONCEPTS FOR FLUID LAYOUT Web Page Layout. Essential Questions What challenges do mobile devices present to Web designers? What are the basic concepts.
Mimi Opkins.  One of the major benefits of using CSS is that you’re not forced to lay your sites out in tables.  The layout possibilities of CSS give.
Working with Cascading Style Sheets
CSS Layouts: Grouping Elements
Web Development & Design Foundations with HTML5 8th Edition
Objectives Create a media query Work with the browser viewport
Web Development & Design Foundations with HTML5 7th Edition
Styles and the Box Model
For the World Wide Web Positioning Objects with CSS
Web Development & Design Foundations with H T M L 5
Tutorial 4 Creating Special Effects with CSS
COS 125 DAY 20.
Presentation transcript:

COS 125 DAY 12

Agenda  Assignment 5 Corrected 7 A’s & 2 B’s No one got the 10 bonus points  Required that all rules were correct  test5.txt test5.txt  Time of submission is either the last modified date/time of uploaded files or time the grade sheet is uploaded to blackboard, whichever is later  Assignment 6 posted Due March 9:30 AM  Additional security on web server Prevents wandering mice  Discussion about course time line Finish Course on April 27  Finish Lecture/Discuss Layout with Styles

Security  Must Login to see WebPages Same password  Use “file upload” to verify pages  Security will be lifted after last assignment

New time line  March 16  Styles 19  Lists 23  Assignment 6 due  Tables part 1 26  Tables part 2 31  Assignment 7 due  Quiz 2  April 2  Forms part1  Progress report 6  Forms part 2 9  Assignment 8 due  Multimedia 13  Scripts Part 1 16  Assignment 9 due  Scripts part 2 20  PodCasting  Progress report 23  Assignment 10 due  Quiz 3 27  Capstones Presentations Due

CSS Positioning Review  4 position possibilities Static (default) Fixed (browser window top left is 0,0) Relative (move elements from static flow) Absolute (first ancestor’s whose position is NOT static top left is 0, 0)  4 offsets Top – positive N moves element down Left - positive N moves element right Right – positive N moves element left Bottom – positive N moves element up  Example.center { position:fixed; top:250px; right:350px}

CSS Positioning Review  Overlap Positioning may cause elements to run into each other Use z-index to position siblings on Z axis  Large z-index goes to top  Element cannot be positioned using static (default)  Over flow Hidden -crop elements Visible -overflows parent element Scroll -forces scroll bars Auto – creates scroll bars when needed  Examples examples/cssposition/position.htm examples/cssposition/position.htm

Media-Specific Style Sheets  You can designate a stylesheets to be used only for printing, for screen display or for both.  Use attribute “media=“print” or “screen” or “all” in the open link or style tag  You can also import “print.css” print;  Example

How Print Style Sheets Differ  Can be the same or very different from screen version  Some suggestions Use points instead of pixels for sizing  12points instead of 15px Hide sections like sidebars, banners or ads  display:none Remove background colors and images Adjust margins Set page breaks Let viewers know that printouts are different than viewed pages Test the print out (print preview) and adjust if necessary

Controlling Page Breaks  WebPages can be very long  Use CSS to control where the contents are printed relative to printer page  Where page breaks occur Page-break-before:values Page-break-after:values Page-break-inside:values Values are “auto” “always” or “avoid”  Examples p{page-break-inside:avoid} h1,h2,h3{page-break-before:always}

Printing link URLs  If You want to see the URL of your hyperlink when you print a web page  Define a print style sheet and add the following a {text-decoration:none; color:black);  Remove text color and underline a:after {content:”(“ attr(href) “)”; font- style:italic;} printurl.html printurl.html printurl.css printurl.css

Widows and Orphans  Orphan is a term used to describe a single word or short phrase appearing at the bottom of a paragraph or column.  A widow is a single word or short phrase appearing alone at the top of column.  To modify using css Selector{orphans:n} Selector{widows:n} N is minimum number of lines to appear at the top (widow) or bottom (orphan) of a page  p{orphans:4;widows:4}

Style Sheets for Handhelds  The wireless web is growing Uses WAP (wireless application protocol) and WML (wireless markup language) WML is losing favor and being replaced by xHTML with CSS  use an existing web page written in xHTML  use a “handheld” media specific CSS  Biggest issue is mini-browser wars Over 4o different mobile broswers

Viewing WAP sites  Use a WAP enabled mobile device  Use a simulator Opera small screen Openwave Simulator  Winwap  iPhone simulator  Blackberry simulator 

Mobile web browsing limitations  Pay by the Byte  Little to no images  Use Proxy servers and Wap gateways  Small & narrow screens  No pointing device (mouse)  Limited # of fonts  Some ignore all CSS Some ignore some CSS Some ignore CSS backgrounds

Creating Style Sheets for Handheld   Add to the existing external style sheet link  media=“screen” Default for media attribute is “all” whichs mean to always apply style sheet  Hide unnecessary elements {display:none}  Use image Headers  Add extra links to help navigate page  Adjust for small screen Adjust margins and padding Add borders Reduce text size Center content Remove image borders Use alt attribute for images

Tips for Assignment #6  For assignment #6 I gave you a xHTML page with lots of text and various elements  You cannot modify the xHTML page other than associating with different style sheets  You will have create several different style sheets to format this page Style sheets will be IAW formatting rules I give you in the assignment  You will have to produce a menu that shows the same pages formatted with each different style sheet Ex Umfk1.htm with style1.css