Design, Formatting, CSS, & Colors September 9, 2010.

Slides:



Advertisements
Similar presentations
Table, List, Blocks, Inline Style
Advertisements

CSS-Formatting Review Cascading Style Sheets addstyle to your HTML web pages.
CSS Cascading Style Sheets. Objectives Using Inline Styles Working with Selectors Using Embedded Styles Using an External Style Sheet Applying a Style.
Cascading Style Sheets
CHAPTER 7 STYLING CONTENT WITH CASCADING STYLE SHEETS.
CSS. Intro to CSS Cascading Style Sheets – styles and enhances appearance of webpage.css extension.
Introduction to CSS.
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.
CSS Link Styling. The Anchor Element: Link text between the opening and closing can be styled using CSS. Some of the properties that can be set are: font-family,
Building a Website: Cascading Style Sheets (CSS) Fall 2013.
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:
Need to define two things: › The destination › Something to click on to get there  Tag is click here  Can be text, special character or image (next.
กระบวนวิชา CSS. What is CSS? CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to.
Chapter 8 Creating Style Sheets.
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.
Ch. 5 Web Page Design – Templates and Style Sheets Mr. Ursone.
Design, Formatting, CSS, & Colors 27 February, 2011.
4.01 Cascading Style Sheets
Primaries: magenta, yellow, and cyan This color system is called subtractive because: each primary color absorbs (subtracts) a certain part of the color.
Link and Table in HTML. Statistics HTML review The two faces of a HTML file In a notepad program. In a internet browser program. The function of HTML.
Dreamweaver MX. 2 Creating External Style Sheets-1 (p. 400) n A style is a group of formatting attributes identified by a single name. n An ________ style.
Cascading style sheets (CSS)
Learning HTML. HTML Attributes HTML elements can have attributes Attributes provide additional information about an element Class – specifies a class.
1 What is CSS?  CSS stands for Cascading Style Sheets  Styles define how to display HTML elements  Styles are normally stored in Style Sheets  Styles.
Introduction To CSS.. HTML Review What is HTML used for? Give some examples of formatting tags in HTML? HTML is the most widely used language on the Web.
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
Working with Cascading Style Sheets (CSS) Module 2: HTML Basics LESSON 5.
CSS Basic (cascading style sheets)
 Komodo Edit Project › Helping you find your folder  Laptop › Delete what you don’t need › Keep class “doodles” in a single “sandbox” folder  Isis.
Cascade Style Sheet Introduction. What is CSS?  CSS stands for Cascading Style Sheets  Styles define how to display HTML elements  Styles were added.
CS134 Web Design & Development Cascading Style Sheets (CSS) Mehmud Abliz.
CSS Tutorial 1 Introduction Syntax How to use style specifications. Styles.
Definition CSS “Short for Cascading Style Sheets, a new feature being added to HTML that gives both Web site developers and users more control over how.
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.
 Look especially at › File Tips and Shortcuts › Student video.
CSS Syntax. Syntax The CSS syntax is made up of three parts: a selector, a property and a value: selector {property: value}
1 CSS محمد احمدی نیا 2 Of 21 What is CSS?  CSS stands for Cascading Style Sheets  Styles define how to display HTML elements 
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.
Company LOGO In the Name of Allah,The Most Gracious, The Most Merciful King Khalid University College of Computer and Information System Web pages Development.
ECA 228 Internet/Intranet Design I Cascading Style Sheets.
Introduction To CSS. Lesson 1: History of CSS CSS was proposed in 1994 as a web styling language. To helps solve some of the problems HTML 4. There were.
1 Cascading Style Sheets
Cascading Style Sheets
Cascading Style Sheet.
4.01 Cascading Style Sheets
Organizing Content with Lists and Tables
Applying CSS to Tables Stylish Tables.
Cascading Style Sheets
Web Development & Design Foundations with HTML5
Links. Links Links Need to define two things: The destination Something to click on to get there Tag is click here Can be text, special.
CSS.
Filezilla problems continuing
COMP 101 Review.
IS333: MULTI-TIER APPLICATION DEVELOPMENT
CSS Cascading Style Sheets
Website Design 3
Cascading Style Sheets - Building a stylesheet
CSS.
Colors.
Information in Computers
Links.
>> Dynamic CSS Selectors
Links.
Tutorial 3 Working with Cascading Style Sheets
CSS.
Web Design & Development
Cascading Style Sheets - Building a stylesheet
Lesson 3: Cascading Style Sheets (CSS) and Graphical Elements
4.01 Cascading Style Sheets
Presentation transcript:

Design, Formatting, CSS, & Colors September 9, 2010

Design “Design is the method of putting form and content together. Design, just as art, has multiple definitions; there is no single definition. Design can be art. Design can be aesthetics. Design is so simple. That’s why it’s so complicated” --Paul Rand

Bad Design... Bad Design blinking moving ugly colors pages too big for a normal screen What’s a normal screen? browser shots

Examples A few examples, for fun: not sure what sort of business this is... news site Mr. Bottles...

Good Design... Mr. Jobs Mozilla Charity:Water

Colors -- Paint (Subtractive Color Model) Primaries: magenta, yellow, and cyan This color system is called subtractive because: each primary color absorbs (subtracts) a certain part of the color spectrum. every time a color is added, less light is reflected. When you mix all three primaries together, the entire spectrum of color is absorbed, and we’re left with black.

Colors -- Computer Screen Additive Color System Primaries: Red, Blue, Green Additive color systems start without light (black). Light sources combine to make a color. As colors are added, the resulting color is brighter.

Colors We’ll be working with the additive color system Mix various amounts of red, green, and blue to create a color. Colors can be represented by name an rgb (dec, dec, dec) value hexadecimal (# hx hx hx) value.

Colors (ctd) For RGB, each color is indicated by a number from (0,0,0) = black # = black (255,255,255) = white #FFFFFF = white These RGB values can be translated into hexadecimal.

What is Hex Anyway? (15, 100, 128) RGB to Hex Example...

Hex... Some tips: each hex letter/number represents 4 digits in binary these 4 digits in binary represent some number in decimal Each two letters/numbers represent red, green, or blue in that order. Remember your color number! #0F6480

Helpful Color Links & Advice Remember your color number! A list of color names colorpicker.com

CSS... CSS is for giving style to your content HTML: content CSS: style CSS Zen Garden

Adding CSS to your HTML The best (only way for this class!) way to insert CSS to your HTML is by using an External Style Sheet Define all your styles in one place Easily change the look of your site Use the following tag within the tag Save your external style sheet as a.css file.

What can CSS do? Style for individual elements I want tableA to look like this... I want table B to look like that.... Style for every element of a certain type I want all tables to look like this... I want all menus to look like that... Style for subclasses of an element I want theseTables to look like this... I want thoseTables to look like that... I want theseMenus to look like this... I want thoseMenus to look like that...

Syntax Selector specifies the HTML element to style Declaration: always contains a property & value ends with a semicolon Property is the style element you want to change, Value is what you are changing the property to.

class Selector Used to describe a style for a group of elements Useful for when multiple elements have same style. Defined with “.” Allows you to give your styles helpful, memorable names.

class Selector can also define a class selector for specific HTML elements Good for clarifying what the style will effect, but not necessary.

id Selector Used to describe a style for a single, unique element Defined with a “#” Can be applied to more than one element, but this is bad practice! You don’t really have to use this, because you can always use class selector.

Formatting your CSS Formatting Practices: some flexibility, but you must be consistent. always comment your code! /* someCommentHere */ curly braces tab alignment Bad practices: multiple attributes on the same line What does Komodo help you with? drop downs formats syntax errors.menu li == li.menu

Commonly Used Tags & Properties full reference sheet

Background

Text Can be used with any text based html element. [body, div, p, h1, h2, etc.]

Font Like text styles, this property can be used with any text based element. If no font is defined, you’ll get the default font. Don’t forget Browser Shots. A nice list of fonts & font families

Links Quick refresher on html links: someLinkText

Links Link states a:link -- a normal, unvisited link a:visited -- a link the user has visited a:hover -- a link when the user mouses over it a:active -- a link the moment it is clicked Note: hover must come after link & visited. active must come after hover. Styles can use all text and font styles, plus background color

Tables Can apply styles to every aspect of a table the table itself headers (th) rows (tr) cells (td) table body (tbody)

Table Example Table Example...

Tables go into komodo to show them: collapsable borders simple borders line changes check out last semesters calendar for some examples [black line on two sides, white line on two sides] headers having different backgrounds, etc. etc.