WEB DESIGN AND PROGRAMMING Advanced CSS Techniques.

Slides:



Advertisements
Similar presentations
LIS650 lecture 4 Thomas Krichel today Advice CSS Properties –Box properties –List properties –Classification properties Fun with selectors.
Advertisements

Use Tables for Layout Control Day 7. You will learn to: Understand Tables Create a Simple Table Modify Your Tables Appearance Create Page Layouts with.
Layouts Using Tables Web Design – Section 4-5 Part or all of this lesson was adapted from the University of Washingtons Web Design & Development I Course.
Cascading Style Sheets
INTRODUCTORY Tutorial 7 Creating Liquid Layouts. XP Objectives Discern the differences among various types of layouts Create a liquid layout Create a.
Basic use of columns is to organize a list of navigation links down the left or right side of the page next to a main content area. (Fig. 1) Another common.
CONCEPTS FOR FLUID LAYOUT Web Page Layout. Website Layouts Most websites have organized their content in multiple columns (formatted like a magazine or.
XP 1 Designing a Web Site with Frames Using Frames to Display Multiple Web Pages Tutorial 5.
Unit 2, cont. September 14 HTML,Validating your pages, Publishing your site.
Creating Scalable, Flexible, Cross-browser Pages Rick Ells Communications Group UW Technnology.
The Power of Tables They aren't just for sitting stuff on anymore...
Create a Web Site with Frames
XP Tutorial 5New Perspectives on HTML, XHTML, and DHTML, Comprehensive 1 Designing a Web Site with Frames Using Frames to Display Multiple Web Pages Tutorial.
Responsive Web Design Design websites so that they can adapt to different devices seamlessly. Image by Muhammed RafizeldiMuhammed Rafizeldi.
Welcome to Our Website Comments and Suggestions Welcomed! Presented by: Vicky Green.
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.
1 The Structure of a Web Table beginning of the table structure first row of three in the table end of the table structure table cells You do not need.
Web Page Layout With CSS CSS Level 2 vs. Nested Tables Mike Wallick – 11/3/04.
HTML & CSS A brief introduction. OUTLINE 1.What is HTML? 2.What is CSS? 3.How are they used together? 4.Troubleshooting/Common problems 5.More resources.
Advanced CSS - Page Layout. Advanced CSS  Compound Selectors:  Is a Dreamweaver term, not a CSS term.  Describes more advanced types of selectors such.
Layouts with CSS Web Design – Section 4-12 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I” Course.
Multimedia & The World Wide Web winny HCI 201 Multimedia and the www.
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.
Looking Good Online Design and Presentation of Websites 1.
Class 3 – Creating Lists In this lesson, you will learn to use HTML to organize your text into lists.
CO1552 – Web Application Development Lists, Special Characters, and Tables.
The Characteristics of CSS
XP Using Frames in a Web Site Ali Alfayly. XP Tutorial Objectives Create frames for a Web site Control the appearance and placement of frames Control.
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.
CONCEPTS FOR FLUID LAYOUT Web Page Layout. Website Layouts Most websites have organized their content in multiple columns (formatted like a magazine or.
IDs versus Classes Naming Your Tags for Maximum Functionality.
CHAPTER 10 Formatting Tables and Forms. Using Tables the Right Way  HTML and XHTML have a LOT of tags dedicated to building a table  If you have only.
Page Layout with CSS Learning Web Design: Chapter 16.
 Website development process  CSS  Javascript.
Essentials of HTML Class 4 Instructor: Jeanne Hart
CSS = Cascading Style Sheet CSS consists of rules to display, style and decorate HTML elements Why CSS ? – Separate decoration from HTML markup (Ex :,,…)
 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.
Dreamweaver MX BTA3Open. Dreamweaver MX Application used for creating web sites Homepage must always be saved as index.htm All files names must be in.
Lesson 05 // Web Design, Layout & Structure 1.Web Design/Designer-Coder Relationship 2.Fixed vs Fluid Website Layouts 3.Screen Resolutions.
Html Tables Basic Table Markup. How Tables are Used For Data Display Tables were originally designed to display and organize tabular data (charts, statistics,
Tutorial #6 – Creating Fixed Width Layouts. Tutorial #5 Review – Box Model Every html element is surround by a box Content, Padding, Border, Margin Can.
Lecture 2 - HTML and CSS Review SFDV3011 – Advanced Web Development 1.
CIS234A- Lecture 7 Instructor Greg D’Andrea. Tables A table can be displayed on a Web page either in a text or graphical format. A text table: – contains.
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.
CSS BEST PRACTICES.
Updated on: September 4, 2010 CIS67 Foundations for Creating Web Pages Professor Al Fichera.
Internet Technology Dr Jing LU Updated Dr Violet Snell / Dr Kalin Penev 1 Internet Technology (week 6)  Recap: Validating HTML  Page Layout.
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.
Advanced Topics Lecture 8 Rachel A Ober
CONTROLLING Page layout
Page Layout CHAPTER 5 1 CHARLES WYKE-SMITH: STYLIN’ WITH CSS: A DESIGNER’S GUIDE (3 ND EDITION)
8/13/2003 Designing Without Tables Using CSS by Reshma Kumar and Marina Naito.
CSS FOUNDATIONS IN-DEPTH The nitty-gritty of css...
- WE’LL LOOK AT THE POSITION PROPERTY AND HOW CSS RESOLVES CONFLICTS BETWEEN STYLING INSTRUCTIONS The position property; CSS specificity hierarchy.
NASRULLAHIBA.  It is time to take your web designing skills to the next level with Cascading Style Sheets (CSS). They are a way to control the look and.
1 Company Confidential Need a Mobile DotNetNuke Site? Get One the Quick and Easy Way Using CSS Media Queries Amelia Marschall Partner & Creative Director.
>> CSS Layouts. Recall Properties of Box – Border (style, width, color) – Padding – Margin – Display – Background – Dimension Welcome Padding Area Border.
CONCEPTS FOR FLUID LAYOUT Web Page Layout. Essential Questions What challenges do mobile devices present to Web designers? What are the basic concepts.
Cascading Style Sheets for layout
>> Navigation and Layouts in CSS
Concepts for fluid layout
Introduction to Layouts
Advanced CSS BIS1523 – Lecture 20.
HTML cont’d Keywords and Tables
Cascading Style Sheets for layout
Creating a Baseline Grid
>> CSS Layouts.
CSS BEST PRACTICES.
Introduction to Layouts
Concepts for fluid layout
Presentation transcript:

WEB DESIGN AND PROGRAMMING Advanced CSS Techniques

WEB DESIGN AND PROGRAMMING Layouts Fixed Width layouts – Main site wrapper is specific, immovable width, independent of users display resolution (often 760px)‏ – PROs Offers specific control without using max and min width which aren’t supported by IE. In many ways simpler to code and style. Can be assured of readability of text given one width. – CON’s Optimal width for readability can be compromised if text size is increased.

WEB DESIGN AND PROGRAMMING Layouts Fixed Width layouts – CONs REALLY small resolutions have to be compromised. 760px wide can look too narrow on large displays. The width ultimately limits the number of columns you can have. This can be a good thing though. – Tips Keep the content to the left. Provide a handheld stylesheet, and maybe a projector/tv display stylesheet.

WEB DESIGN AND PROGRAMMING Fixed example

WEB DESIGN AND PROGRAMMING Layouts Liquid layouts – No specific width on site wrapper. Widths controlled by % value. – In theory, no horizontal scrollbar should ever be seen. – PROs Can adapt to any screen size (not often though)‏ This is actually the standard way that browsers try to display anything. Makes the most out of all screen realestate. More content potentially above the fold.

WEB DESIGN AND PROGRAMMING Layouts Liquid layouts – CONs Too much content can be a bad thing. The human brain works in specific ways. Can lead to lack of focus on the right information. Can cause a destruction of white space, and a cluttered look. Without max-width property, you can get lines of text spanning 1000px. – Advice Make sure you are using Liquid for a reason.

WEB DESIGN AND PROGRAMMING Layouts Liquid layouts – Advice Defeats the purpose if you make a fluid layout with fixed with content areas. If you are going to the trouble, make sure you do it properly. If you have to, make sure it will, at minimum, fit to an 800x600 browser size.

WEB DESIGN AND PROGRAMMING

Layouts Elastic layouts – Site wrapper and other content areas are measured in ems, which are relative to text size. – If the text size increases, all of the content areas will. – PROs Everything will change at the same rate. Nothing will change size disproportionally. Pretty challenging to code, but the end result is worth it. – CONs Apart from the cool factor, there is not much benefit. In the end it will just keep getting wider and wider. With IE7 the whole effect is redundant

WEB DESIGN AND PROGRAMMING Layouts Elastic layouts – Advice Once again, you still want to check that it works on a small screen res first. Still use a max width declaration using a percentage to limit the design. This may not be pure, but code purity should not sacrafice usability. Since IE doesn't support max width, so a good place to start planning is with max text size on IE at 1024x768.

WEB DESIGN AND PROGRAMMING Layouts Summary – In the end, there is no right or wrong answer. Your decision will depend on what you want to do. – Don't do it just because it's pure. – All of these methods can be used to make a perfectly accessible, and valid, website.

WEB DESIGN AND PROGRAMMING Common browser bugs Too many to mention. But lets look at Box Model – Only an issue with IE browsers below 5.0. – Is not an issue if in new IE if you use strict DOCTYPE. – Can target only IE with Special instructions here

WEB DESIGN AND PROGRAMMING Common browser bugs Double margin in IE – Margins appear larger in Internet Explorer, sometimes double, sometimes just more. – Simply use the {display: inline;} attribute on the tag containing your margin setting. I was going to go on, but there are just so many. – The conditional statements for IE will help you solve many of your problems. – Other than that, you just have to know how to search. – Someone out there has had the same problem before, and there will be a fix.

WEB DESIGN AND PROGRAMMING Some more HTML/CSS Lists again – Unordered lists can be used as navigation. – They are a lot more efficient. – Use less code. – Are easier to update. – More scalable. – More accessible. – Give more information to screen readers. – Just generally more suited semantically. – They will comfortably wrap to the next line if the list gets too big.

WEB DESIGN AND PROGRAMMING Some more HTML/CSS Definition Lists – Composed of tags which can contain and tags. – Really good structurally for a title/description sort of data. – Or for question/answers. – Can also work well for title/image/description. – Can be more meaningful than with and tags as it is less generic.

WEB DESIGN AND PROGRAMMING Some more HTML/CSS Tables done right – Tables have their place. When presenting tabular data. – Don't use table cells for presentation. – Don't waste whole rows and columns just to give spacing. Css will be able to do this for you much easier. – Once again; It will be easier to update. It will have cleaner more efficent code. It will be easier to re-style. And will be easier to write dynamic code for.

WEB DESIGN AND PROGRAMMING Some more HTML/CSS Indestructible boxes – HTML panels that can be any width or height. – Without background images and no rounded corners, this is really simple. – With them, you need to assign each corner background image to 4 different HTML tags. – And then use padding to ensure they don't overlap each other. – Quite complex, and it may just be of benefit to have a look at some examples and discover how they work. – Obviously they can be of great benefit to re-use code for so many different elements of a site.