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

Slides:



Advertisements
Similar presentations
CSS-Formatting Review Cascading Style Sheets addstyle to your HTML web pages.
Advertisements

Neal Stublen Course Road Map  Create web page layouts using CSS  Manage CSS  Test website validity  Create navigation menus using.
1 Cascading Style Sheets Continued Different kinds of selectors in a style sheet –Simple- Pseudo-Class –Contextual- Pseudo-Element –Class Image Styles.
Cascading Style Sheets
Very quick intro HTML and CSS. Sample html A Web Title.
© 2004, Robert K. Moniot Chapter 6 CSS : Cascading Style Sheets.
Advance CSS (Menu and Layout) Miftahul Huda. CSS Navigation MENU It's truly remarkable what can be achieved through CSS, especially with navigation menus.
1 Pengantar Teknologi Internet W03: CSS Cascading Style Sheets.
CIS 1310 – HTML & CSS 6 Layout. CIS 1310 – HTML & CSS Learning Outcomes  Describe & Apply the CSS Box Model  Configure Float with CSS  Designate Positioning.
Recognizing the Benefits of Using CSS 1. The Evolution of CSS CSS was developed to standardize display information CSS was slow to be supported by browsers.
Stylin’ with CSS. 2 Topics What is CSS? Why CSS? CSS Examples.
Introduction to Cascading Style Sheets (CSS) Module 2: HTML Basics LESSON 4.
Web Workshop: CSS Objectives: - “What is CSS?” - Structure of CSS - How to use CSS in your webpage.
More HTML Chapter 4. 2 Nesting Tags How do you write the following in HTML? The wrong way: This is really, REALLY fun ! Tags must be correctly nested.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 3 Key Concepts 1 Copyright © Terry Felke-Morris.
CSS (Cascading Style Sheets): How the web is styled Create Rules that specify how the content of an HTML Element should appear. CSS controls how your web.
TUTORIAL 8: Enhancing a Web Site with Advanced CSS
TECH2018 Multimedia and the Internet More about CSS and Page Layouts.
© 2012 Adobe Systems Incorporated. All Rights Reserved. LEARNING THE LANGUAGE OF THE WEB INTRODUCTION TO HTML AND CSS.
Principles of Web Design 6 th Edition Chapter 4 – Cascading Style Sheets.
Chapter 11 Cascading Style Sheets: Part I The Web Warrior Guide to Web Design Technologies.
Cascading Style Sheets Dreamweaver. Styles Determine how the HTML code will display Determine how the HTML code will display Gives designers much more.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 3 Key Concepts 1 Copyright © Terry Felke-Morris.
Week 4.  Three ways to apply CSS: Inline CSS Internal style sheets ( header style information) External style sheets.
The Characteristics of CSS
HTML & CSS.
Cascading Style Sheets. Defines the presentation of one or more web pages Similar to a template Can control the appearance of an entire web site giving.
Today’s objectives  Presentational | Inline | Block | Validate  CSS | Rules | Declarations.
Today’s Objectives  CSS | Rules | Declarations  Project portfolio page  Introduce User-Center Design | Design Activity.
I NTRO TO CSS IAT100 Spring I NTRO TO CSS Covered in this lesson: Overview What is CSS? Why to use CSS? CSS for Skinning your Website Structure.
1 WDMD 170 – UW Stevens Point WDMD 170 Internet Languages eLesson: CSS Introduction to Style Sheets (NON-audio version) © Dr. David C. Gibbs
Cascading Style Sheets by Pavlovic Nenad by. Presentation Contents  What is CSS?  Why CSS?  Types of Style Sheets  Style Sheets Syntax  Box Formatting.
Today’s objectives  Review  CSS | Rules | Declarations  HTML Structure document  Class asignment.
Mr. Justin “JET” Turner CSCI 3000 – Fall 2015 CRN Section A – TR 9:30-10:45 CRN – Section B – TR 5:30-6:45.
Neal Stublen Course Road Map  Create web page layouts using CSS  Manage CSS  Test website validity  Create navigation menus using.
Cascading Style Sheets Tom Osman. Keep the content of a webpage separate from the formatting of the page. Structure (of content)  Headings  Sub headings.
Cascading Style Sheets CSS by Pavlovic Nenad by. 2Cascading Style Sheets Presentation Contents What are CSS? What are CSS? History of CSS History of CSS.
Neal Stublen Course Road Map  Create web page layouts using CSS  Manage CSS  Test website validity  Create navigation menus using.
Today’s objectives  Review  CSS | Rules | Declarations  HTML Structure document  Class asignment.
CSS CSS is short for C ascading S tyle S heets. It is a new web page layout method that has been added to HTML to give web developers more control over.
Tutorial #3 Cascading Style Sheets. Tutorial #2 Review - Anchors Links to Site DMACC Internal Links Go to Top Mail To me Local.
Form Tag How to use Form Tag Something NEW ? PARAMETER Attribute NAME Specifies the name for a form To specify which form to submit with JavaScript, this.
CSS. HTML: Looking Back HTML dictates order, structure, and function Does very little to specify layout or visual rendering.
Introduction to CSS. What is CSS?  Cascading Style Sheets  Used for styling HTML  Also important in javascript and jquery for selectors  External.
CSS Cascading Style Sheets. CSS Advantages Greater typography and page layout control Style is separate from structure Styles can be stored in a separate.
XP Tutorial 7New Perspectives on HTML and XHTML, Comprehensive 1 Working with Cascading Style Sheets Tutorial 7.
Css. Definition Cascading style sheet (CSS)  It is a simple mechanism for adding style (e.g. fonts, colors, spacing) to Web documents.
XHTML and CSS. The Browser The browser is not print!
Using the CSS. What is CSS? CSS is a language that’s used to define the formatting applied to a Website, including colors, background images, typefaces.
Course created by Sarah Phillips BBCD Melbourne BAPDCOM Version 1 – April 2013.
Cascading Style Sheets CSS.  Standard defined by the W3C  CSS1 (released 1996) 50 properties  CSS2 (released 1998) 150 properties (positioning)  CSS3.
1 © Netskills Quality Internet Training, University of Newcastle Using Style Sheets in Dreamweaver CS © Netskills, Quality Internet Training, University.
Cascading Style Sheets (CSS). A style sheet is a document which describes the presentation semantics of a document written in a mark-up language such.
Introduction to CSS. Why CSS? CSS Provides Efficiency in Design and Updates CSS relatively easy to use Can give you more flexibility and control Faster.
CSS Hadas Kahsay. Overview  What is CSS  Basic syntax of CSS Rules  How to link CSS style to html documents  Browsers and CSS  Advantages of CSS.
Cascading Style Sheets Primary readings Presentations Explain & review projects with class mates.
How to… Cascading Style Sheets. How to Insert a Style Sheet When a browser reads a style sheet, it will format the document according to it. There are.
BEGINNER WEB DESIGN. INTRODUCTION Vocabulary Design Tools of the Trade HTML CSS.
NASRULLAHIBA.  It is time to take your web designing skills to the next level with Cascading Style Sheets (CSS). They are a way to control the look and.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 3 Introducing Cascading Style Sheets.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
INTERNET APPLICATIONS CPIT405 CSS Cascading Style Sheet Instructor: Omnia H. Alwazzan
CSS Introductions. Objectives To take control of the appearance of a Web site by creating style sheets. To use a style sheet to give all the pages of.
Introduction to Web programming
Intro to CSS CS 1150 Fall 2016.
Intro to CSS CS 1150 Spring 2017.
Fixed Positioning.
Presentation transcript:

Neal Stublen

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

 Using CSS selectors  Where does CSS markup go?  Handling browser-specific issues  Making web sites accessible  Using alternate CSS What’s Ahead?

CSS Selectors  Simple CSS selectors.class (element class) ○.highlight { font-weight: bold; } #id (element id) ○ #footer { font-size: 12px; } element ○ body { background-color: white; } * (all elements) ○ * { margin: 0; }

Multiple Elements  Apply a set of style attributes to multiple element types element1, element2 (multiple elements) All and elements: h1, h2 { font-color: blue; } … … …

Parent-Child Attributes  Apply a set of style attributes to an element that is a child of another element type element1>element2 (parent-child) Any element directly within a : div>p { font-family: Verdana; } …

Any Descendent  Apply a set of style attributes to an element type, but only within another specific element type element1 element2 (any descendant) Any element within a : div a { font-family: Verdana; } … … … … …

Immediate Siblings  Apply a set of style attributes to an element that is placed directly after another element element1+element2 (immediate siblings) Any followed by a : p+div { clear: both; } … …

Older Sibling  Apply a set of style attributes to an element that is preceded by another element element1~element2 (any sibling) Any preceded by : ul~p { background-color: red; } … … … … …

Combining with Class  Combining selectors can mix class, id, and element selectors.menu ul { … } #footer a { … }  (Using Brackets)

Element with Class  Apply a set of style attributes to an element that has a specific class element.class List items with the nav_menu class: li.nav_menu { font-color: blue; } …

Element with Attribute  Apply a set of style attributes to an element that has a specific attribute element[attribute] Any anchor tag with a target attribute: a[target] { background-color: yellow; } …

Element with Attribute Value  Apply a set of style attributes to an element that has a specific attribute value element[attribute=value] Any anchor tag with a target attribute of “_blank”: a[target=_blank] { background-color: yellow; } …

Element with Partial Value  Apply a set of style attributes to an element that partially matches an attribute value element[attribute^=prefix] element[attribute$=postfix] element[attribute*=contains]

Many, Many More  Complete list available online ors.asp

Practice Activity  Practice using selectors to specify background colors  Does the ordering of selectors matter?

Practice Activity  Advanced Selectors, Activity 1 Change link appearance (p.37)

 Using CSS selectors  Where does CSS markup go?  Handling browser-specific issues  Using alternate CSS What’s Ahead?

Using CSS Files  We can place CSS markup in the section or on an element  Disadvantages? Duplicated across pages Difficult to change

External CSS Files  tags in section  Multiple tags merge multiple CSS files

Import CSS Files in the url(filename.css)  Multiple tags merge multiple CSS files

Practice Activity  External CSS, Activity 2 Move styles to external CSS file (p.44)

Practice Activity  External CSS, Activity 3 Use external CSS file on multiple pages (p.47)

Browser-specific CSS  Not all browsers agree  Sites should be tested with all the major browsers (old and new) that may access the site

Conditional Comments  Comments can help instruct Internet Explorer on how a site should be rendered code for IE-only code for non-IE-browsers  Used in or, not external CSS

Practice Activity  Conditional Comments, Activity 4 Create styles for non-IE browsers (p.53) 

Alternate CSS  Some CSS styles may be difficult for all users  Alternate CSS styles can provide larger fonts or high contrast color schemes  The browser will make the alternate style available to the user (possibly)

Practice Activity  Alternate CSS, Activity 5 Link alternate CSS to site pages (p.60)  You may want to consider using cookies and server-side support to assist in providing alternate CSS

 Using CSS selectors  Where does CSS markup go?  Handling browser-specific issues  Using alternate CSS What’s Behind?

Select Me Which selector specifies the anchor element? A..menu a B. a.menu C. a li ul.menu D. ul a Review

Select Me Which selector specifies the anchor element? A..menu a B. a.menu C. a li ul.menu D. ul a Review

First paragraph Select Me Which selector specifies the 2 nd paragraph? A. div p p B..header p>p C. div p+p D. #header p>p

Review First paragraph Select Me Which selector specifies the 2 nd paragraph? A. div p p B..header p>p C. div p+p D. #header p>p

Review Which display property value can be used to create vertical menus? A. block B. inline C. vertical D. top bottom

Review Which display property value can be used to create vertical menus? A. block B. inline C. vertical D. top bottom