Introducing Cascading Style Sheets  Cascading Style Sheet Basics  Creating Styles  Using Styles  Manipulating Styles  Text Formatting with CSS.

Slides:



Advertisements
Similar presentations
Chapter 1: Introduction. Contents Whats New in Dreamweaver CS4? The Dreamweaver CS4 Interface Setting Up a Site Creating a Web Page Adding Text to Your.
Advertisements

DREAMWEAVER ‘ANATOMY’ EXPLAINED.
Learning the Basics – Lesson 1
Project 8 Creating Style Sheets.
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.
Chapter 8 Creating Style Sheets.
Ch. 5 Web Page Design – Templates and Style Sheets Mr. Ursone.
Chapter 3 Working with Text and Cascading Style Sheets.
Chapter 3 Tables and Page Layout
Using Cascading Style Sheets CSS Structure. Goals Understand how contextual, class and ID selectors work Understand how contextual, class and ID selectors.
Tutorial 3: Adding and Formatting Text. 2 Objectives Session 3.1 Type text into a page Copy text from a document and paste it into a page Check for spelling.
INSTRUCTIONAL SUPPORT SERVICES (ISS) SHORT COURSE, FALL 2012 UMSL Introduction to Web Page Design.
 Missing (or duplicate) semicolons can make the browser completely ignore the style rule.  You may add extra spaces between the properties/values to.
Working with Text and Cascading Style Sheets Adobe Dreamweaver Chapter 3.
Getting Started with Dreamweaver
Organizing Content by Using Dreamweaver CS5 Domain 5.
Chapter 4 Dreamweaver: Part II The Web Warrior Guide to Web Design Technologies.
Dreamweaver CS4 Concepts and Techniques Chapter 5 Templates and Style Sheets.
© 2010 Delmar, Cengage Learning Chapter 7 Using Styles and Style Sheets for Design.
Using Cascading Style Sheets. Introduction to Styles and Properties  Cascading Style Sheets (CSS) are a standard set by the World Wide Web Consortium.
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.
Advanced CSS - Page Layout. Advanced CSS  Compound Selectors:  Is a Dreamweaver term, not a CSS term.  Describes more advanced types of selectors such.
Chapter 3 Working with Text and Cascading Style Sheets.
Copyright © Texas Education Agency, All rights reserved. 1 Web Technologies Website Development with Dreamweaver.
Chapter 7 Web Typography Principles of Web Design, 4 th Edition.
Dreamweaver CS4 Concepts and Techniques Chapter 7 Page Layout with Frames.
Cascading Style Sheets CSS.  Standard defined by the W3C  CSS1 (released 1996) 50 properties  CSS2 (released 1998) 150 properties (positioning)  CSS3.
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 4 1 Microsoft Office FrontPage 2003 Tutorial 4 – Using Shared Borders and Themes.
WELCOME EF 105 Spring EF 105 Computer Methods in Engineering Problem Solving Week 2: FrontPage Introduction to Software Use to create Web Pages.
1 Macromedia Dreamweaver Outline Introduction Macromedia Dreamweaver Text Styles Images and Links Symbols and Lines Tables Forms Scripting in Dreamweaver.
Website Development with Dreamweaver
Project 5 Templates and Style Sheets Dreamweaver MX 2004 Concepts and Techniques.
XP Dreamweaver 8.0 Tutorial 3 1 Adding Text and Formatting Text with CSS Styles.
CIS 205—Web Design & Development Dreamweaver Chapter 5 Using HTML Tables to Lay Out a Page.
Tutorial 5 Formatting with CSS. Objectives Session 5.1 – Evaluate why CSS styles are used – Determine where to write styles – Create an element selector.
Working with Text and Cascading Style Sheets. Unit Objectives Create a new page Import text Set text properties Create an unordered list Understand Cascading.
Formatting TEXT AND Using CSS. Adobe Dreamweaver CS3 - Illustrated.
Domain 3 Understanding the Adobe Dreamweaver CS5 Interface.
Macromedia Dreamweaver 8-- Illustrated Introductory 1 Macromedia Dreamweaver 8 Unit D Formatting Text and Using Cascading Style Sheets.
Adobe Dreamweaver CS5 - Illustrated Unit D: Working with Text and Cascading Style Sheets.
Adobe Dreamweaver CS3 Revealed CHAPTER THREE: WORKING WITH TEXT AND IMAGES.
Link-Images. Understanding Links  Absolute Links: – URL is an absolute link—it’s the complete, unique address for a single page. Ex: – use absolute links.
Chapter 1 Creating a Dreamweaver Web Page and Local Site
Templates and Style Sheets
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.
Introducing Cascading Style Sheets. Cascading Style Sheet Basics  Cascading Style Sheet Basics  Creating Styles  Using Styles  Manipulating Styles.
© 2011 Delmar, Cengage Learning Chapter 3 Working with Text and Cascading Style Sheets.
© 2014 by McGraw-Hill Education. This is proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner.
1 © Netskills Quality Internet Training, University of Newcastle Using Style Sheets in Dreamweaver CS © Netskills, Quality Internet Training, University.
Tutorial 3 Adding and Formatting Text with CSS Styles.
Macromedia Dreamweaver 8 Revealed AND GRAPHICS WORKING WITH TEXT.
Introducing Dreamweaver. Dreamweaver The web development application used to create web pages Part of the Adobe creative suite.
Web Site Development - Process of planning and creating a website.
Positioning Objects with CSS and Tables
Building a Website: Layout Fall Overall Structure: Home Page Title Section Title Frame Picture UNCP Math Menu Content Footer Contact Information.
Web and Multimedia Development Copyright © Genetic Computer School 2007WM LESSON OVERVIEW  Use of Tables  Creating Tables  Try It – 1  Creating.
XP New Perspectives on Macromedia Dreamweaver MX 2004 Tutorial 5 1 Adding Shared Site Elements.
XP Dreamweaver MX 2004 Tutorial 3 1 Adding and Formatting Text.
Tutorial 3 Adding and Formatting Text. Objectives Session 3.1 – Type text into a page – Copy/paste text from a Word document – Check for spelling errors.
Getting Started with Dreamweaver
Plug-In T11: Creating Webpages Using Dreamweaver
Learning the Basics – Lesson 1
Unit Objectives Create a new page Import text Set text properties
Using Cascading Style Sheets Module B: CSS Structure
Tutorial 6 Creating Dynamic Pages
Working with Text and Cascading Style Sheets
Getting Started with Dreamweaver
Using Cascading Style Sheets (CSS)
Using Templates and Library Items
Exercise 9 Skills You create and use styles to create formatting rules that can easily by applied to other pages in the Web site. You can create internal.
Presentation transcript:

Introducing Cascading Style Sheets  Cascading Style Sheet Basics  Creating Styles  Using Styles  Manipulating Styles  Text Formatting with CSS

Cascading Style Sheet Basics CSS has many benefits:  The pages look great and load faster  Make updating your site easier  With CSS, you can control the properties of the HTML tag  Dreamweaver CS4 is better than ever at displaying complex CSS based designs

Internal -External Style Sheets Internal style sheet: new style you create gets added to a style sheet that’s stored in the Web page itself.  Internal style sheets appear in the portion of a Web page.  It contain styles that apply only to that page.  It is a good choice when you have a very specific formatting task for a single page.

Internal -External Style Sheets External style sheet: new style you create gets added to a style sheet that’s stored in another file.  An external style sheet, on the other hand, contains only styles—no HTML— and you can link it to numerous pages  In fact, you can link it to every page on your Web site to provide a uniform

Internal -External Style Sheets You can create both types of style sheets easily in Dreamweaver. A single Web page can have both an external and an internal style sheet. You can even attach multiple external style sheets to a single page.

Types of Styles Styles come in several different types.  Class styles: is one that you create, name, and attach manually to text or an HTML tag. Class styles work much like styles in word processing and page layout programs.

Types of Styles  ID styles: is a type of style that lets you format a unique item on a page.  Use ID styles to identify an object (or an area of a page) that appears only once  EX: a Web site’s logo, copyright notice, main navigation bar, or a banner  Tag style: It applies globally to an individual HTML tag.

Creating Styles Phase 1: Set Up the CSS Type have many ways to create a new style:  On the CSS Styles panel, click the new style button, or right-click anywhere in the CSS Styles panel, and then, from the menu that appears, select New  Or choose Format -> CSS Styles -> New.

Creating Styles

 Selector Type:  Choose the kind of style you wish to create: Class, ID, or Tag.  Compound, to create more advanced style types such as pseudo-classes, attribute selectors and descendent selectors.

Creating Styles  Selector Name:  If you selected Class from the Selector Type menu, then style Class style names must begin with a period. ClassName  If you selected ID style then names begin with a #IDName  If you chose Tag instead, then, from the Tag pop-up select the HTML tag you want to redefine.

Creating Styles  If you selected the Compound option, then Dreamweaver lets you type any valid CSS selector type in the Selector field.  Rule Definition  Specifies where the CSS code you create is stored.

Creating Styles  This document only: applies only to the current Web page -> internal style sheet.  New Style Sheet File: not only creates a new external CSS file but also adds the necessary code in the current document to link it to that file ->external style sheet (saved with the name ends in.css)

Creating Styles Phase 2: Defining the Style  The CSS Rule Definition window provides access to all the available formatting for styling text and graphics.  The Property inspector’s CSS mode lets you quickly create styles for specific text formatting such as choosing a font or a font size

Creating Styles The CSS Rule Definition window

Creating Styles Creating a Style with the Property Inspector

Using Styles Applying a Class Style:  Applying a class style to text:  Select some words  In the Property inspector, select the style name from the class menu or in CSS mode.

Using Styles Applying a Class Style:

Using Styles Applying a Class Style:  Applying a class style to objects  Select the object.  Select tag at the bottom of the document window.  Then right click on the tag name and select Set Class-> the Style name.

Using Styles Applying a Class Style:  Applying a class style to objects

Using Styles Applying IDs to a Tag:  To apply an ID to text:  Select the text, and use the ID menu in the HTM mode of the Property inspector.  Apply each ID name only once per page, this menu lists only IDs that exist in your style sheet but haven’t yet been applied to a tag on the page.

Using Styles Removing a Class Style:  To remove a class style from text  Select the text.  In Property inspector choose None from the Class menu (HTML mode) or from the Targeted Rule menu (CSS mode).

Using Styles Removing a Class Style  To remove a class style from another object (like an image):  Select the object, and then, from the Property inspector’s Class menu, choose None.  Or Format ➝ CSS Styles ➝ None to remove a style from any selection.

Using Styles Applying IDs to a Tag:  For non-text elements:  Select the element, and then, in the Property inspector, type the ID name into the ID field.  You can also use the Tag selector, use the Set ID menu in the contextual menu that appears when you right-click (Ctrl- click) the tag.

Using Styles To remove an ID  From a text element  Select the text, and then, from the Property inspector’s ID menu, select None.  For non-text elements  Just select the element, and then, in the Property inspector’s ID field, delete the ID name.

Using Styles Linking to an External Style Sheet:  Whenever you create an external style sheet, Dreamweaver automatically links it to the current document.  To use its styles in a different Web page, you must attach it to the page.  On the CSS Styles panel, click the Attach External Style Sheet button

Using Styles  In the Attach External Style Sheet window Click Browse.  File/URL: Select the CSS (.css) file you wish to attach to the document.

Using Styles  If the style sheet you select is outside the current site, Dreamweaver offers to copy the style sheet file into your site’s root folder ->click Yes.  Add as: two different methods of attaching an external style sheet to a Web page (Link or Import)  Media: setting is optional and dictates when the styles from the style sheet are applied

Manipulating Styles Editing Styles: Dreamweaver provides many ways to edit styles:  In the CSS Styles panel, select a style, and then click the Edit Style button  Double-clicking the name of a style in the CSS panel.  In the CSS Styles panel, right-click the name of a style-> choose Edit.

Manipulating Styles Deleting a Style  Click the name of the style-> Press delete key, or click Trash icon at the bottom of the panel

Manipulating Styles Renaming a Class Style:  On the Property inspector, in the Class menu, choose Rename.  From the top menu, choose the name of the style you wish to rename.  In the “New name” box, type the new style name ->OK

Text Formatting with CSS Choosing a Font  Applying font formatting: You can use either  The Font menu in the Property inspector’s CSS mode  Or the CSS Rule Definition window’s Font-family menu

Text Formatting with CSS Choosing a Font  Creating custom font lists: From the Property inspector’s Font menu, select Edit Font List, select Format->Font ->Edit Font List. 1) Select a first-choice font from the list of “Available fonts”, or type in the font name. 2) Add the font to custom font list by clicking the << button

Text Formatting with CSS 3) Your first-choice font appears in the “Chosen fonts” list. 4) Repeat steps 2 and 3 for each font you wish to include in your custom list

Text Formatting with CSS Changing the Font Size: You can use one of the two way:  The Size menu in the Property inspector’s CSS mode  The CSS Rule Definition window’s Font- size menu

Text Formatting with CSS The Font Size include 4 group:  None: default size  The numeric: 9->36 in pixels.  The options xx-small->xx-large indicate fixed sizes, replacing the sizes 1->7 used with the old HTML  The options: smaller and larger are relative sizes, meaning that they shrink or enlarge the selected text based on the default size.

Text Formatting with CSS Picking a Font Color: To set the color of text, use the CSS Color property.  Use the Property inspector’s CSS mode  Or assign a text color in the Text category of the CSS Rule Definition window.

Text Formatting with CSS CSS Type Properties in the Rule Definition Window:  Type category lets you set formatting options that affect text

Text Formatting with CSS  Font: choose a font from the Font menu.  Size: pixels, ems, and percentages.  Weight: Weight refers to the thickness of the font  Style: italic, oblique, or normal  Variant: normal or small-caps

Text Formatting with CSS  Line Height: To create more space between lines.  Case: you can automatically capitalize text.  Decoration: This strange assortment of five checkboxes lets you dress up your text.  Color: Set the color of the style’s text using Dreamweaver’s color box.

Text Formatting with CSS Block Properties: settings that affect how letters and words are displayed

Text Formatting with CSS  Word spacing: adding or removing space between words.  Letter spacing: space between letters.  Vertical alignment: change the vertical placement of an object.  Text align: controls the alignment of a block-level element like a paragraph or table.

Text Formatting with CSS  Text indent: indent the first line of a paragraph  Whitespace: This property controls how the browser displays extra white space.  Display defines: how a Web browser should display a particular element like a paragraph or a link.

Text Formatting with CSS List Properties: To control bulleted and numbered lists properties.  Type: Select the type of bullet you’d like to use in front of a list item.  disc, circle, square, decimal

Text Formatting with CSS  Bullet image: control of your bullet icon  Click the Browse button, and then, from your site folder, select a graphics file. outside

Text Formatting with CSS  Position: controls how the bullet is placed relative to the list item’s text.  The “outside” : the bullet outside the margin of the text.  The “Inside”: bullet within the text margin Inside