590 likes | 819 Views
Adobe Dreamweaver CS3 Revealed. CHAPTER THREE: WORKING WITH TEXT AND IMAGES. Chapter 3 Lessons. Create unordered and ordered lists Create, apply, and edit Cascading Style Sheets Add styles and attach Cascading Style Sheets Insert and align images Enhance an image and use alternate text
E N D
Adobe Dreamweaver CS3 Revealed CHAPTER THREE: WORKING WITH TEXT AND IMAGES
Chapter 3 Lessons Create unordered and ordered lists Create, apply, and edit Cascading Style Sheets Add styles and attach Cascading Style Sheets Insert and align images Enhance an image and use alternate text Insert a background image and perform site maintenance
Breaks up text Increases readability Three types of lists: Unordered Ordered Definitions Text as Lists
Cascading Style Sheets Saves you time Ensures consistency Applies formatting attributes to an entire site
Using Images to Enhance Web Pages Use graphics sparingly Can complement content of pages Store in assets folder Three Web graphic file formats: GIF JPEG PNG
Creating Unordered Lists Unordered or bulleted This slide is an example of an unordered list Select paragraphs of text to be included in list Click the Unordered List button in Property inspector Default bullet style is a round dot
Creating Ordered Lists Called numbered lists Preceded by numbers or letters in a sequence
Creating Definition Lists Definition lists do not have bullets Select paragraphs of text to be included in list Click Text List Definition List
Fig. 1: Expanded Property Inspector Click to collapse Property inspector Unordered list button Ordered list button List item button
Fig. 2: Choosing a Numbered List Style List type list arrow Numbered list styles
Fig. 4: List Properties Dialog Box List type list arrow Style list arrow
Fig. 5: HTML Tags in Code View for Unordered List Beginning tag for unordered list First pair of tags for first list item
Fig. 7: Spa Page with Ordered List Formatted heading Formatted body text Text color button Bold button
Cascading Style Sheets Sets of rules Style or rule: formatting attribute that can be applied to page elements Can be created, edited or applied New CSS Rule dialog box CSS Rule definition dialog box CSS Styles panel
Types of CSS External CSS Saved as a separate file (.css) Stored in the directory structure of a Web site Internal CSS Embedded in the code on an individual page
CSS Style Sheet Codes The selector is the name of the tag to which the style declarations have been assigned The declaration consists of the property and the value
Fig. 9: Cascading Style Sheet File selector declaration value property
Working with CSS Create a CSS and a style Apply a CSS Edit a CSS
Fig. 11: New CSS Rule Dialog Box Class option for Selector New style name Define in list arrow
Fig. 12: CSS Rule Definition for .bullets in su_styles.css Dialog Box Type category selected
Fig. 15: Applying a CSS Style Toggle Displaying of CSS Styles button Selected text Click to set size of selected text to None Click to apply bullets style to selected text Click to set font of selected text to Default Font
Fig. 17: Editing a CSS Style Properties pane Properties of the bullets style Font size list arrow
Add Styles and Attach CSS .css files created by Web designer Embedded style sheets created automatically by Dreamweaver Set preference to Use CSS instead of HTML Formatting in Property inspector Code in Head content of file Named style1, style2, etc.
Fig. 20: Adding a Style to a CSS Style Sheet New style name
Fig. 24: Attaching a Style Sheet to a Page su_styles.css Link option button
Fig. 25: Viewing the Code to Link the CSS Style Sheet File Code that applies the body_text style to the paragraph Code linking external style sheet file to the index page
Understanding Graphic Formats Three primary graphic file formats: GIF JPEG PNG
GIF Graphic Interchange Format Downloads very quickly Limited in color Can show transparent areas
JPEG Joint Photographic Experts Groups Can display many colors Photographs are often saved in this format
PNG Portable Network Graphics Shares advantages of GIFs and JPEGs Not universally recognizable by older browsers
The Assets Panel Located in the Files panel group Displays all the assets in a Web site Has Favorites button Contains nine categories
The Assets Panel Categories include: Images Colors URLs Flash
The Assets Panel Categories include: Shockwave Movies Scripts Templates Library
Inserting Files with Adobe Bridge Bridge is an easy way to view files outside the Web site before bringing them into the Web site Integrated application Works with other Adobe programs such as Photoshop and Illustrator Use Bridge to add meta tags and search text to your files
Aligning Images Aligning images means to position them in relation to other elements Default: bottom edge aligns with the baseline of the first line of text or any other element in the same paragraph
Fig. 26: The Assets Panel Site option button Drag gripper to undock Favorites option button Images button Thumbnail of selected image Category buttons List of images in Web site
Fig. 26: The Striped Umbrella About Us Page with Inserted Image club_house.jpeg inserted Image path(should begin with assets) Inserted file listed in assets folder
Fig. 29: Using Adobe Bridge boardwalk.jpeg image is selected
Fig. 31: Left-aligned Club House Image Left-aligned image Text wrapped around image Left-aligned option selected
Enhancing Images Borders Add horizontal space Brightness/Contrast Modify the image and image size using an image editing program
Alternate Text Descriptive text that appears in place of an image when the image is downloading or when the mouse pointer is placed over it Makes your Web page viewer-friendly and handicapped accessible Priority 1 Checkpoint
Fig. 34: Using Property Inspector to Add a Border Selected image with 1-pixel border V Space text box H Space text box Border text box
Fig. 35: Comparing Images with Horizontal and Vertical Space Image with horizontal and vertical space Image without horizontal and vertical space
Fig. 36: Brightness and Contrast Settings Drag slider to adjust brightness
Fig. 37: Alternate Text Setting Alternate text box
Fig. 38: Alternate Text Displayed in Browser Alternate text displayed on top of image
Fig. 39: Preferences Dialog Box with Accessibility Category Selected Accessibility category Check boxes for Form objects, Frames, Media, and Images
Background Images Keep file size small Use a tiled image Small graphic that repeats across or down a page Or a larger non-tiled image Use either a background color or a background image, but not both