Presentation is loading. Please wait.

Presentation is loading. Please wait.

Neal Stublen Course Road Map  Create web page layouts using CSS  Manage CSS  Test website validity  Create navigation menus using.

Similar presentations


Presentation on theme: "Neal Stublen Course Road Map  Create web page layouts using CSS  Manage CSS  Test website validity  Create navigation menus using."— Presentation transcript:

1 Neal Stublen nstublen@jccc.edu

2 Course Road Map  Create web page layouts using CSS  Manage CSS  Test website validity  Create navigation menus using CSS  Incorporate meta content and multimedia

3 Course Road Map  Create forms  Create advanced styles and page layouts  Optimize for accessibility  Optimize for search engine indexing  Publish a website

4 Course Prerequisites  Familiarity with basic HTML  Assumption that you have only worked with basic HTML, not a lot of CSS experience (maybe none)

5

6 Applying Styles  Styles can be applied to any HTML element Using an attribute on the tag Using the section of a page Using a CSS file (more on this later)

7 Style Attribute This is red text.

8 Style Section.important { color: #ff0000 } This is red text.

9

10  What's a box layout?  How do we organize sections of a box layout? position float clear What’s Ahead?

11 Examine a Web Page  Web pages are typically divided into distinct sections or areas. What are some of these common areas? Header Navigation menus Content Sidebar Footer

12

13 ide and Conquer  Content sections are broken down using... tags  Formatting applied to a tag is applied to all elements within the tag  A line break appears at both the start and end of the tag  Styling can be applied to control size and position

14 Overflow Property  How does the browser display content that extends beyond boundaries? scroll hidden visible auto inherit

15 What about ? ... tags also group content, but they remain inline (no line breaks)

16 Practice Activity  Creating Layouts, Activity 1 Use a tag to highlight a date (p.7) Create scrollable div (p.10)

17

18 What's a box layout?  A web page built with elements to control size and position  Alternatives: Fluid layouts Table layouts Frames

19 Box Properties  border  margin spacing between element border and another element  padding spacing between element border and element content  background-color

20 Different Box Models  Traditional (Netscape 4, IE4/5) padding and border are included in the element width  W3C padding and border are outside the element width  Browser mode can determine model

21 Position Property  static (default) use position specified by web page  absolute specified coordinates relative to container element  fixed specified coordinates relative to browser window  relative relative to the element’s default position

22 Z-index Property  Determines overlap order of elements  Only for elements with absolute position

23 Float Property  Floating an element moves it as far as possible to the right or left  Other elements will wrap around a floated element  left element floats to left  right element floats to right  none (default) element does not float

24 Clear Property  Prevents an element from floating because an adjacent element was floated  left no floating elements to the left  right no floating elements to the right  both no floating elements to either side  none (default) floating elements anywhere

25 Float and Clear Interaction  Floating one element implies floating another  Clearing one element does not imply clearing another  Clear takes priority over float

26 Practice Activity  Creating Layouts, Activity 2 Create header, footer, and container divs (p.17) Apply styles for position and appearance (p.20)

27 Practice Activity  Creating Layouts, Activity 3 Create two content columns (p.23) Apply styles for column position and appearance (p.26)

28 Practice Activity  Creating Layouts, Activity 4 Create a footer layer (p.29) Apply styles to the footer layer (p.30)

29

30 Which style attribute controls the spacing between two elements? A. border B. margin C. padding D. spacing Review

31 Which style attribute controls the spacing between two elements? A. border B. margin C. padding D. spacing Review

32 Which style(s) ensure(s) an element is positioned flush against the left margin? A. float: left B. clear: left C. float: none D. clear: both

33 Review Which style(s) ensure(s) an element is positioned flush against the left margin? A. float: left B. clear: left C. float: none D. clear: both

34 Review Which style(s) ensure(s) an element is positioned flush against the left margin? A. float: left B. clear: left C. float: none D. clear: both

35 Review Which selector modifies the style of an element with class="header"? A. header {... } B..header {... } C. #header {... } D. class.header { … }

36 Review Which selector modifies the style of an element with class="header"? A. header {... } B..header {... } C. #header {... } D. class.header { … }


Download ppt "Neal Stublen Course Road Map  Create web page layouts using CSS  Manage CSS  Test website validity  Create navigation menus using."

Similar presentations


Ads by Google