adobe dreamweaver cc: the professional portfolio project 4: yosemite css layout creating layouts...

26
Adobe Dreamweaver CC: The Professional Portfolio Project 4: Yosemite CSS Layout Creating layouts with style sheets Working with a template Using CSS to control content

Upload: geraldine-gibson

Post on 13-Jan-2016

219 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Adobe Dreamweaver CC: The Professional Portfolio Project 4: Yosemite CSS Layout Creating layouts with style sheets Working with a template Using CSS to

Adobe Dreamweaver CC: The Professional Portfolio

Project 4:

Yosemite CSS LayoutCreating layouts with style sheetsWorking with a templateUsing CSS to control content

Page 2: Adobe Dreamweaver CC: The Professional Portfolio Project 4: Yosemite CSS Layout Creating layouts with style sheets Working with a template Using CSS to

Adobe Dreamweaver CC: The Professional Portfolio

Tracing Images

View>Tracing Image>Load

Reset to move to document edges

Change view percentage if necessary

Page 3: Adobe Dreamweaver CC: The Professional Portfolio Project 4: Yosemite CSS Layout Creating layouts with style sheets Working with a template Using CSS to

Adobe Dreamweaver CC: The Professional Portfolio

Style Basics

External styles

Embedded styles

Inline styles

Page 4: Adobe Dreamweaver CC: The Professional Portfolio Project 4: Yosemite CSS Layout Creating layouts with style sheets Working with a template Using CSS to

Adobe Dreamweaver CC: The Professional Portfolio

Style Basics (cont’d)

Apply one set of rules to multiple pages

Separate content from presentation

Edit styles to change page appearance

Page 5: Adobe Dreamweaver CC: The Professional Portfolio Project 4: Yosemite CSS Layout Creating layouts with style sheets Working with a template Using CSS to

Adobe Dreamweaver CC: The Professional Portfolio

Creating a CSS File

Page 6: Adobe Dreamweaver CC: The Professional Portfolio Project 4: Yosemite CSS Layout Creating layouts with style sheets Working with a template Using CSS to

Adobe Dreamweaver CC: The Professional Portfolio

Attaching a CSS File

Attach (link) to an HTML file

Use different files for different media

Page 7: Adobe Dreamweaver CC: The Professional Portfolio Project 4: Yosemite CSS Layout Creating layouts with style sheets Working with a template Using CSS to

Adobe Dreamweaver CC: The Professional Portfolio

Viewing CSS Code

Page 8: Adobe Dreamweaver CC: The Professional Portfolio Project 4: Yosemite CSS Layout Creating layouts with style sheets Working with a template Using CSS to

Adobe Dreamweaver CC: The Professional Portfolio

The CSS Designer panel

Page 9: Adobe Dreamweaver CC: The Professional Portfolio Project 4: Yosemite CSS Layout Creating layouts with style sheets Working with a template Using CSS to

Adobe Dreamweaver CC: The Professional Portfolio

Creating CSS Rules

Page 10: Adobe Dreamweaver CC: The Professional Portfolio Project 4: Yosemite CSS Layout Creating layouts with style sheets Working with a template Using CSS to

Adobe Dreamweaver CC: The Professional Portfolio

The “Undo” Warning

CSS file active in Code pane

Page 11: Adobe Dreamweaver CC: The Professional Portfolio Project 4: Yosemite CSS Layout Creating layouts with style sheets Working with a template Using CSS to

Adobe Dreamweaver CC: The Professional Portfolio

The CSS Box Model

Margin

Border

Padding

Content

Page 12: Adobe Dreamweaver CC: The Professional Portfolio Project 4: Yosemite CSS Layout Creating layouts with style sheets Working with a template Using CSS to

Adobe Dreamweaver CC: The Professional Portfolio

ID selectors

Apply to <div> tags

# sign in name

Page 13: Adobe Dreamweaver CC: The Professional Portfolio Project 4: Yosemite CSS Layout Creating layouts with style sheets Working with a template Using CSS to

Adobe Dreamweaver CC: The Professional Portfolio

Inserting Div Tags

Structure Insert panel

Insert>Layout Objects> Div Tag

Page 14: Adobe Dreamweaver CC: The Professional Portfolio Project 4: Yosemite CSS Layout Creating layouts with style sheets Working with a template Using CSS to

Adobe Dreamweaver CC: The Professional Portfolio

Inserting Div Tags (cont’d)

Click edge to show box model

HTML code is minimal, purely structural

Page 15: Adobe Dreamweaver CC: The Professional Portfolio Project 4: Yosemite CSS Layout Creating layouts with style sheets Working with a template Using CSS to

Adobe Dreamweaver CC: The Professional Portfolio

Nesting Divs

Page 16: Adobe Dreamweaver CC: The Professional Portfolio Project 4: Yosemite CSS Layout Creating layouts with style sheets Working with a template Using CSS to

Adobe Dreamweaver CC: The Professional Portfolio

Templates

File>Save as Template

.dwt extension

Templates folder

Page 17: Adobe Dreamweaver CC: The Professional Portfolio Project 4: Yosemite CSS Layout Creating layouts with style sheets Working with a template Using CSS to

Adobe Dreamweaver CC: The Professional Portfolio

Editable Regions

Page 18: Adobe Dreamweaver CC: The Professional Portfolio Project 4: Yosemite CSS Layout Creating layouts with style sheets Working with a template Using CSS to

Adobe Dreamweaver CC: The Professional Portfolio

Paths in Templates

Site Setup: Advanced Settings

Document-relative paths

Page 19: Adobe Dreamweaver CC: The Professional Portfolio Project 4: Yosemite CSS Layout Creating layouts with style sheets Working with a template Using CSS to

Adobe Dreamweaver CC: The Professional Portfolio

New From Template optionAssets panel contextual menu

New From Template option in File>New dialog box

Page 20: Adobe Dreamweaver CC: The Professional Portfolio Project 4: Yosemite CSS Layout Creating layouts with style sheets Working with a template Using CSS to

Adobe Dreamweaver CC: The Professional Portfolio

Apply Template to Page

Modify>Templates submenu

Inconsistent Region Names

Page 21: Adobe Dreamweaver CC: The Professional Portfolio Project 4: Yosemite CSS Layout Creating layouts with style sheets Working with a template Using CSS to

Adobe Dreamweaver CC: The Professional Portfolio

Apply Template to Page (cont’d)

Page 22: Adobe Dreamweaver CC: The Professional Portfolio Project 4: Yosemite CSS Layout Creating layouts with style sheets Working with a template Using CSS to

Adobe Dreamweaver CC: The Professional Portfolio

Modifying Templates

Open from Files panel

File>Save

Update linked files

Page 23: Adobe Dreamweaver CC: The Professional Portfolio Project 4: Yosemite CSS Layout Creating layouts with style sheets Working with a template Using CSS to

Adobe Dreamweaver CC: The Professional Portfolio

Tag Selectors

Format all content with a specific tag

“Nested” nature

Page 24: Adobe Dreamweaver CC: The Professional Portfolio Project 4: Yosemite CSS Layout Creating layouts with style sheets Working with a template Using CSS to

Adobe Dreamweaver CC: The Professional Portfolio

Tag Selectors (cont’d)

Page 25: Adobe Dreamweaver CC: The Professional Portfolio Project 4: Yosemite CSS Layout Creating layouts with style sheets Working with a template Using CSS to

Adobe Dreamweaver CC: The Professional Portfolio

Compound/Descendent Selectors

Only affect elements in specific divs

Page 26: Adobe Dreamweaver CC: The Professional Portfolio Project 4: Yosemite CSS Layout Creating layouts with style sheets Working with a template Using CSS to

Adobe Dreamweaver CC: The Professional Portfolio

Pseudo-Class Selectors

a:link

a:visited

a:hover

a:focus

a:active