Layout, Position, and Color Scheming with CSS. Overview Website Layout Using CSS –Considerations –CSS Positioning Frameworks –Positioning Tips and Tricks.

Slides:



Advertisements
Similar presentations
Copyright © 2007 Knowbility, Inc. Accessibility Testing 1 Code Validators – XHTML & CSS Accessibility Validators – Page by Page Listening to Your Pages.
Advertisements

LIS650 lecture 4 Thomas Krichel today Advice CSS Properties –Box properties –List properties –Classification properties Fun with selectors.
Copenhagen, 6 December 2004 Modern CSS Principles Miruna Bădescu Finsiel Romania.
15 LAYOUT Controlling the position of elements Creating site layouts Designing for different sized screens.
CSS Cascading Style Sheets. Objectives Using Inline Styles Working with Selectors Using Embedded Styles Using an External Style Sheet Applying a Style.
Ideas to Layout Beginning web layout using Cascading Style Sheets (CSS). Basic ideas, practices, tools and resources for designing a tableless web site.
2.744 Dreamweaver Tutorial Sangmok Han Feb 24, 2010.
Web Development & Design Foundations with XHTML Chapter 3 Key Concepts.
Cascading Style Sheets: Basics I450 Technology Seminar Copyright 2003, Matt Hottell.
Tridib Chatterji Faculty of Business Dubai Women’s College Higher Colleges of Technology United Arab Emirates.
Web Standards XHTML and CSS. Today’s Show ► Discuss web standards ► XHTML ► Layout Without Tables ► CSS ► Why Web Standards?
Cascading Style Sheets (CSS): Pixel-Level Control with HTML Ease
Part 5 Introduction to CSS. CSS Display - Block and Inline Elements A block element is an element that takes up the full width available, and has a line.
CSS Menus and Rollovers. Agenda foil Separating style from content 3 pages in one file Rollovers in CSS Horizontal drop-downs Vertical drop-downs.
1 Color Theory. 2 What is Color Theory? Premeditated use of color.
Principles of Web Design 5 th Edition Chapter Nine Site Navigation.
CSS cont. October 5, Unit 4. Padding We can add borders around the elements of our pages To increase the space between the content and the border, use.
CSS Tips and Tricks for Designing Accessible Websites Presented by Grace Strother.
End User Computing An Introduction to CSS Sujana Jyothi Research Lab1, Callan Building, Department of Computer Science
CSS TutorialtMyn1 CSS Tutorial Cascading Style Sheets (CSS) are the modern standard for website presentation. When combined with a structural markup language.
Web Pages and Style Sheets Bert Wachsmuth. HTML versus XHTML XHTML is a stricter version of HTML: HTML + stricter rules = XHTML. XHTML Rule violations:
“Cascading Style Sheets” for styling WWW information DSC340 Mike Pangburn.
Unit 20 - Client Side Customisation of Web Pages
Web Design with Cascading Style Sheet Lan Vu. Overview Introduction to CSS Designing CSS Using Visual Studio to create CSS Using template for web design.
LBSC 670 Organization of Information. Class plan Review Documents and document models Digital document exploration –HTML –CSS Putting it together – Why.
Design, Formatting, CSS, & Colors 27 February, 2011.
XP 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks Tutorial 7.
Tutorial 4 Creating Special Effects with CSS
CISC 474: Advanced Web Technologies HTML5 & CSS3, & Responsive Design.
HTML Overview for Proofreading. HTML layouts are divided into sections, and created in tables separating the images & content sections.
 jQuery Mobile An Introduction. What is jQuery Mobile  A framework built on top of jQuery, used for creating mobile web applications  Designed to make.
WDV 331 Dreamweaver Applications Designing Websites for Mobile Devices Dreamweaver CS6 Chapter 11.
Page Layout & Mobile Web Using columns, grid systems, etc… to layout sites for desktops and mobile.
Tutorial 6 Creating Tables and CSS Layouts. Objectives Session 6.1 – Create a data table to display and organize data – Modify table properties and layout.
Web Design, 3 rd Edition 4 Planning a Successful Web Site: Part 2.
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.
CSS Positioning Creating Special Effects with CSS CS202 Working with Cascading Style Sheets (Chapter 4) CS202 1.
Basic Responsive Design Techniques. Let’s take a look at this basic layout. It has a header and two columns of text, in a box that is centered on the.
Cascading Style Sheets. Defines the presentation of one or more web pages Similar to a template Can control the appearance of an entire web site giving.
Tutorial #6 – Creating Fixed Width Layouts. Tutorial #5 Review – Box Model Every html element is surround by a box Content, Padding, Border, Margin Can.
CSS : Cascading Style Sheets Ann Dobbs Class: i385e.
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.
Principles of Web Design 6 th Edition Chapter 9 – Site Navigation.
Planning Site Design and Page Layout. Identify Best Practices Demonstrate Consistency: – One way to ensure a professional look and feel to a website –
Positioning and Printing Creating Special Effects with CSS.
Advanced Topics Lecture 8 Rachel A Ober
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.
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.
Cascading Style Sheets CSS2 - a bit more advanced.
Responsive Web Design (RWD) MIS 3502, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 2/11/2016.
BEGINNER WEB DESIGN. INTRODUCTION Vocabulary Design Tools of the Trade HTML CSS.
Today’s objectives  Announcements  Positioning  Measurement units.
A gentle introduction to Bootstrap TDAP Jeremy Shafer Department of MIS Fox School of Business Temple University Spring
Cascading Style Sheets Layout
CSCI 1720 W3.CSS – Part 1 East Tennessee State University Department of Computing CSCI 1720 Intermediate Web Design.
The Box Model in CSS Web Design – Sec 4-8
The Box Model in CSS Web Design – Sec 4-8
CSS Rule Selector Declaration Block Value Attribute Name body {
Making Templates Accessible
Putting Things Where We Want Them
The Box Model in CSS Web Design – Sec 4-8
Cascading Style Sheets
CSS.
New PowerPoint Template
New PowerPoint Template
Making Templates Accessible
SEEM4570 Tutorial 3: CSS + CSS3.0
Tutorial 4 Creating Special Effects with CSS
Presentation transcript:

Layout, Position, and Color Scheming with CSS

Overview Website Layout Using CSS –Considerations –CSS Positioning Frameworks –Positioning Tips and Tricks Color Color and CSS

Layout Considerations Consistency in rendering –Between browsers –Between platforms E.g. Non-GUI, CLI-based Browsers, , parsers –Between devices Printers Hand-held devices Other websites (industry, social, aggregators) Aural devices / Screen-readers

Layout Considerations (…) Accessibility –Vision impaired Consider element sizing model –Relative units of measurement “px” vs. “em” vs. “%” –Does site break at font-sizes > 24pt? 48pt? How big is big enough? Aural stylesheets –Added with CSS-2 –Allows for control of screen-readers / aural browsers Control voices, volume, 360 spacial orientation, delays/cues, audio mixing

Layout Considerations (…) Control vs. Flexibility –“Grid” Framework Strict control over text rendering, page elements and overall layout –Reasoning Readability – prevent overly long lines of text in wide windows Don’t want elements to “slide” around Trade-off: flexibility –Less control for page visitor on how page is displayed –May force visitor to right-scroll

Layout Considerations (…) –“Flow” Framework (not really a “framework”) Let each element know how to position itself relative to other element(s) and/or a containing element Leaves more up to the browser –Elements “slide” around to fit containing-element/window –Page conforms to fit large/small containing-element/window Allows for better rendering on hand-held devices (e.g. iPhone) Trade-off: Less control of layout, text rendering, and look/feel

CSS Positioning Relative positioning –Elements are positioned relative other elements and/or a containing element –Allows for greater rendering flexibility for the browser –Examples:

CSS Positioning Absolute Positioning –Elements are positioned inside a containing element with specific x,y (and z) coordinates “Could care less” about other elements inside the same container –Situations when absolute positioning is useful Need to make use of CSS-2’s “z-index” property –E.g. “pop-up” ad that needs to render “in-front” of the rest of the page An element must position itself within strict x,y coordinates –E.g. A CSS/js version of “Pac-Man” –BEWARE of using absolute positioning with non-relative units of measurement (e.g. “px” and “pt”).

CSS Positioning Lesson learned –Rounded tab box Different “box model” between FF/IE The solution: negative margins

CSS Positioning Tips/Tricks Negative margins –Example:

CSS Tips/Tricks The :hover psuedo-class –Useful for “rollover” effect, and SO much more! –Example: –Example: es.html es.html es.html

Color Scheming Many of the same rules as in painting/art Use “web safe” colors Limit number of colors on website –3 colors + black/white is a good rule of thumb Use color wheel to achieve different effects –High contrast pick two complimentary colors 3 rd color is intermediary –Low contrast pick two analogous colors 3rd color is intermediary –Monochromatic Pick one color Adjust brightness levels and saturation

Applying Color with CSS “background” property “color” property Cross-browser Transparent backgrounds –filter:alpha(opacity=60); –-moz-opacity: 0.6; –opacity: 0.6; span-for-all-browsers/ span-for-all-browsers/

Applying Color with CSS Layering divs to create color effect Example: l l l

Web Resources On Color Kuler: Swatch-based color-schemer RGB-based color-schemer: On CSS –CSS Positioning Resources CSS Positioning Introduction: –CSS Design Tutorials / Examples CSS Zen Garden: –“Select a design” to apply different stylesheets to the page, good example of the power of CSS Meyerweb.com: A List Apart: –Check out the “Topics” section –Layout Templates Open Source Web Design: –Good place to start when looking for inspiration

Additional Resources Firebug – IE Developer Toolbar – d=E59C D-4511-BB3E- 2D5E1DB91038&displaylang=en d=E59C D-4511-BB3E- 2D5E1DB91038&displaylang=enhttp:// d=E59C D-4511-BB3E- 2D5E1DB91038&displaylang=en CSS Vista – Supported CSS, by OS & Browser – support/basic_concepts.html support/basic_concepts.htmlhttp:// support/basic_concepts.html