Web Design for Print Designers WEB DESIGN FOR PRINT DESIGNERS: WEEK 6



Similar documents
HTML5 and CSS3 Design with CSS Page 1

CSS. CSS - cascading style sheets CSS - permite separar num documento HTML o conteúdo do estilo. ADI css 1/28

ITNP43: HTML Lecture 4

{color:blue; font-size: 12px;}

Web Design Basics. Cindy Royal, Ph.D. Associate Professor Texas State University

Creating a Resume Webpage with

Web Design with CSS and CSS3. Dr. Jan Stelovsky

What is CSS? Official W3C standard for controlling presentation Style sheets rely on underlying markup structure

Selectors in Action LESSON 3

Simply download Beepip from and run the file when it arrives at your computer.

Dreamweaver CS4 Day 2 Creating a Website using Div Tags, CSS, and Templates

Introduction to Adobe Dreamweaver CC

Chapter 7 Page Layout Basics Key Concepts. Copyright 2013 Terry Ann Morris, Ed.D

CST 150 Web Design I CSS Review - In-Class Lab

Coding Standards for Web Development

Web Authoring CSS. Module Descriptor

Web Design and Databases WD: Class 7: HTML and CSS Part 3

CREATING HORIZONTAL NAVIGATION BAR USING ADOBE DREAMWEAVER CS5

Outline of CSS: Cascading Style Sheets

How To Create A Web Page On A Windows (For Free) With A Notepad) On A Macintosh (For A Freebie) Or Macintosh Web Browser (For Cheap) On Your Computer Or Macbook (

JJY s Joomla 1.5 Template Design Tutorial:

Garfield Public Schools Fine & Practical Arts Curriculum Web Design

Web Design Revision. AQA AS-Level Computing COMP2. 39 minutes. 39 marks. Page 1 of 17

Stylesheet or in-line CSS CSS attributes, used in stylesheets or in-line, can define:

Contents. Downloading the Data Files Centering Page Elements... 6

CHAPTER 10. When you complete this chapter, you will be able to:

Creating Web Pages with Dreamweaver CS 6 and CSS

Further web design: Cascading Style Sheets Practical workbook

Web Development 1 A4 Project Description Web Architecture

MCH Strategic Data Best Practices Review

Essential HTML & CSS for WordPress. Mark Raymond Luminys, Inc mraymond@luminys.com

Basics of HTML (some repetition) Cascading Style Sheets (some repetition) Web Design

Mobile Web Site Style Guide

Web layout guidelines for daughter sites of Scotland s Environment

Cascading Style Sheets (CSS)

Web Building Blocks. Joseph Gilbert User Experience Web Developer University of Virginia Library

CSS - Cascading Style Sheets

Advanced Drupal Features and Techniques

GUIDE TO CODE KILLER RESPONSIVE S

CREATING A NEWSLETTER IN ADOBE DREAMWEAVER CS5 (step-by-step directions)

HTML and CSS. Elliot Davies. April 10th,

Contents. Introduction Downloading the Data Files... 2

CST 150 Web Design and Development I Midterm Exam Study Questions Chapters 1-3

Advanced Editor User s Guide

Responsive Design

8 STEPS TO CODE KILLER RESPONSIVE S

Using Style Sheets for Consistency

Style & Layout in the web: CSS and Bootstrap

How to code, test, and validate a web page

ICE: HTML, CSS, and Validation

Campaign Guidelines and Best Practices

Base template development guide

Microsoft Expression Web Quickstart Guide

WEB DESIGN LAB PART- A HTML LABORATORY MANUAL FOR 3 RD SEM IS AND CS ( )

CIS 467/602-01: Data Visualization

Introduction to Web Design Curriculum Sample

Introduction to XHTML. 2010, Robert K. Moniot 1

Using an external style sheet with Dreamweaver (CS6)

Positioning Container Elements

Colgate University Website Content Style Guide

Cascading Style Sheet (CSS) Tutorial Using Notepad. Step by step instructions with full color screen shots

MS Word 2007 practical notes

Development Perspective: DIV and CSS HTML layout. Web Design. Lesson 2. Development Perspective: DIV/CSS

When older typesetting methods gave

BASICS OF WEB DESIGN CHAPTER 2 HTML BASICS KEY CONCEPTS COPYRIGHT 2013 TERRY ANN MORRIS, ED.D

BlueHornet Whitepaper

Basic tutorial for Dreamweaver CS5

Web Design and Development ACS Chapter 9. Page Structure

Eloqua What is this and why should I read it?

HTML TIPS FOR DESIGNING

HTML, CSS, XML, and XSL

Help on Icons and Drop-down Options in Document Editor

RESPONSIVE DESIGN BY COMMUNIGATOR

Last week we talked about creating your own tags: div tags and span tags. A div tag goes around other tags, e.g.,:

Tips and tricks with Text boxes in Mahara

CSS 101. CSS CODE The code in a style sheet is made up of rules of the following types

Module 6 Web Page Concept and Design: Getting a Web Page Up and Running

Website Development. 2 Text. 2.1 Fonts. Terry Marris September We see how to format text and separate structure from content.

Web Developer Jr - Newbie Course

Designing HTML s for Use in the Advanced Editor

CSS for Page Layout. Key Concepts

Web Development CSE2WD Final Examination June (a) Which organisation is primarily responsible for HTML, CSS and DOM standards?

Introduction Designing your Common Template Designing your Shop Top Page Product Page Design Featured Products...

How to craft a modern, mobile-optimized HTML template. Jason Samuels, NCFR IT Manager DrupalCamp Twin Cities May 2012

Accessibility in e-learning. Accessible Content Authoring Practices

Table of Contents THE DESIGNER S GUIDE TO CREATING NEWZAPP DRAG AND DROP TEMPLATES... 6 THE NEWZAPP SYSTEM... 7

Transcription:

Web Design for Print Designers

CSS uses a variety of declarations for styling text. Many use the variations of the font declaration. Other styles are done using different declarations. The font declaration has the following variables: font-family font-style font-variant font-weight font-size

font-family declares the font face of the text. You can use multiple fonts, based on preference. font-family: Helvetica, Arial, sans-serif Font-style defined by normal, italic or oblique. Really no difference between italic or oblique, and browsers usually use oblique if italic isn t available. Italic is a true type style, whereas oblique is the normal typeface slanted.

font-variant is defined by normal or small-caps. font-weight is defined by normal or bold. font-size defines the size of the type. You can use any of the variants: percentage: 80% length: px(14px); em (2em), cm (16cm), pt (14pt) name: small, medium, large, x-large

You can use shorthand using the font declaration to condense several declarations font: style variant weight size family; font: italic normal bold 24px Helvetica, Verdana; If style, variant and weight are all normal, you can shorten it to one value. If you omit any of the three, browsers will assume normal as the default.

line-height declaration specifies the leading of a block element percentage: 80% length: px(14px); em (2em), cm (16cm), pt (14pt) Using a relative value allows flexibility if you adjust any of the type sizes. Absolute values provide greater control over spacing.

letter-spacing allows you to control the kerning in text h1 { letter-spacing:.2em;} word-spacing controls the gap between words. You can only use length values (px, pt, em, etc.). Using a relative value such as ems allows for better adjustment than using an absolute value such as px.

CSS3 offers additional font declarations, but aren t currently supported in browsers. However, you can still include them in anticipation when browser support is available: font-size-adjust: number, none, inherit; font-stretch: wider, narrower, ultra-condensed, extra-condensed, condensed, semi-condensed, normal, semi-expanded, expanded, extra-expanded, ultra-expanded, inherit;

text-transform changes the case of text in one of the following values: text-transform: none = default text-transform: capitalize = Caps first letter of every word text-transform: uppercase = Renders all type in caps text-transform: lowercase = Renders all type lower case

text-decoration: none, underline, overline, line-through, blink None is the default setting. Blink is only currently supported in FireFox and Opera browsers. text-align: left, right, center, justify Justify is discouraged, especially for short columns, because browsers don t hyphenate words.

vertical-align: baseline, sub, super, top, text-top, middle, bottom, textbottom It is NOT intended to allow you to vertically align text in the middle of a block level element, although it does have that effect when applied to table <td> and <th> elements. It is more commonly used on inline elements such as <img>, <strong> or <em> elements.

text-indent: length (px, em, cn, etc), percentage Indents the first line of a block element. You can use a negative value. text-overflow: clip, ellipsis When text exceeds a defined space, this declaration will either clip the text to where the space stops, or render it with...

text-shadow: h-shadow v-shadow blur color; text-shadow: 5px 5px 2px #000; Renders a 5px shadow bottom right with a 2px blur in black. Positive values render left and down. Negative values render right and up The blur value can be omitted if not used. Not supported in pre- IE9.

text-outline: thickness blur color; text-outline: 2px red; Blur is optional value, but thickness and color are required. Currently not supported in any browsers. text-wrap: normal, none, unrestricted, suppress; This property specifies line breaking rules for text. Currently not supported in any browsers.

list-style-type allows you to control the shape or style of a bullet point, or marker, on any ordered or unordered list. The following values can be used for unordered lists: disc: (ul default) circle: (ul default for nested lists) square: ul li { list-style-type: circle; } ul li li { list-style-type: square; }

The following values can be used for ordered lists: decimal: 1. 2. 3. (ol default) decimal-leading-zero: 01. 02. 03. lower-alpha: a. b. c. lower-roman: i. ii. iii. upper-alpha: A. B. C. upper-roman: I. II. III. ol li { list-style-type: decimal-leading-zero; } ol li li { list-style-type: lower-alpha; }

list-style-image allows you specify an image to act as a bullet point. ul { list-style-image: url('redarrow.png'); } item 1 item 2 item 3 This applies to all the list-items within a list. You cannot vary the image within a list using this declaration.

list-style-position indicates the position of the marker Outside is the default. The marker sits to the left of the block of text. "Get that finger out of your ear You don't know where that finger's been "There's no reason to become alarmed, and we hope you'll enjoy the rest of your flight. By the way, is there anyone on board who knows how to fly a plane? " "Let's see... altitude: 21,000 feet. Speed: 520 knots. Level flight. Course: zero-niner-zero. Trim and mixture: wash, soak, rinse, spin."

With the inside position, the marker sits to the left of the block of text. "Get that finger out of your ear You don't know where that finger's been "There's no reason to become alarmed, and we hope you'll enjoy the rest of your flight. By the way, is there anyone on board who knows how to fly a plane? " "Let's see... altitude: 21,000 feet. Speed: 520 knots. Level flight. Course: zero-niner-zero. Trim and mixture: wash, soak, rinse, spin."

As with several other CSS properties, you can write shorthand for list styles (list-style). You can express the marker s style, image and position properties in any order. The default is used if not specified. list-style: inside circle; By using the value none, you can eliminate all the values. This is useful when using background images for each list item.

You can specify different values for text in specific instances using pseudo-elements. You specify them at the end of a selector, then specify the declaration in CSS. p:first-letter = controls the first letter of a paragraph p:first-line = controls the first line of a paragraph

Pseudo-classes refer to the state of a particular element. They aren t applied to the element the same way pseudo-elements are. Instead they refer to the action of the user. You still add them to the CSS the same way as pseudo-elements. :link = sets styles for unvisited links :visited = sets styles for visited links :hover = sets styles for when the user hovers over an element :active = applied when an element is being activated, such as buttons :focus = applied when an element has focus. Most commonly used when a form input field is clicked on to accept typing.

<a href= contact.htm >Contact Us</a> a:link { color:blue; text-decoration:underline;} a:visited { color:grey; text-decoration:underline;} a:hover { color:red; text-decoration:none;} You don t necessarily have to include the :link pseudo-class, but the :visited and :hover are recommended.

You can set styles on elements when they are in relationship to other elements. There are two types: parent-child and sibling relationships. Parent-child relationships are when an element is nested within another. Sibling relationships are two elements that are next to another.

Adjacent sibling selectors You can set specific styles for the second element of two consecutive elements. For example, if I want to bold a every paragraph that immediately follows a H1 headline. h1 + p { font-weight: bold; } Only the paragraphs that follow an H1 will appear bold. It will not affect any other paragraphs.

General sibling selectors The difference with adjacent siblings is that that the element being selected doesn't need to immediately succeed the first element, but can appear anywhere after it. p ~ p { margin-top:.8em; } In this example, any paragraph following the first one will have a margin-top being applied to it.

Parent-child selectors Parent-child selectors allow you to style an element that is immediately nested within another. ul li { font-weight: bold; } The above will bold every list-item in an unordered list. But what if I want to bold only the first list-item? ul > li { font-weight: bold; } Only the first list-item following the opening <ul> tag will be bold.

:first-child and :last-child selectors :first-child works the same and the parent-child selector, but you don t have to define the parent element li:first-child { font-weight: bold; } In this case, all first list-items, regardless if they are in an unordered or ordered list, will be bold. This wasn t widely adopted until recently since pre-ie7 browsers didn t support this pseudoelement.

:first-child and :last-child selectors Just as :first-child applies to the first element, :last-child applies to the last element li:last-child { font-weight: bold; } All last list-items in this case would be bold. This pseudo-element isn t supported by pre-ie9 browsers.

:nth-child selectors You can get even more specific with which child elements to style using the :nth-child pseudo-element. Within the selector, you need to specify which element(s) you want to affect.

li:nth-child(5) { font-weight: bold; } Bolds only the fifth list-item in the list. li:nth-child(n+6) { font-weight: bold; } Bolds all but the first five list-items. li:nth-child(-n+5) { font-weight: bold; } Bolds only the first five list-items. li:nth-child(odd) { font-weight: bold; } Bolds only the odd list-items.

Homework Diagram out in HTML the content and layout for the Callahan website design. For layout, use HTML 5 elements (article, aside, header, etc.) Designate any class or ID names for elements as necessary

Next Week Styling text with CSS Begin building the Callahan web page