Cascading Style Sheets (CSS) Part 1 of 3: Introduction and overview

Similar documents
Essential HTML & CSS for WordPress. Mark Raymond Luminys, Inc mraymond@luminys.com

{color:blue; font-size: 12px;}

Web Design and Databases WD: Class 7: HTML and CSS Part 3

ITNP43: HTML Lecture 4

Interactive Data Visualization for the Web Scott Murray

CSS for Page Layout. Key Concepts

CSS. CSS - cascading style sheets CSS - permite separar num documento HTML o conteúdo do estilo. ADI css 1/28

Web Design with CSS and CSS3. Dr. Jan Stelovsky

Cascading Style Sheets

Dreamweaver CS4 Day 2 Creating a Website using Div Tags, CSS, and Templates

Style & Layout in the web: CSS and Bootstrap

Cascading Style Sheets (CSS)

What is CSS? Official W3C standard for controlling presentation Style sheets rely on underlying markup structure

Web. Programming. Hans- Pe0er Halvorsen, M.Sc. h0p://home.hit.no/~hansha/?page=sojware_development

Contents. Downloading the Data Files Centering Page Elements... 6

CST 150 Web Design I CSS Review - In-Class Lab

CIS 467/602-01: Data Visualization

FETAC Certificate in Multimedia Production. IBaT College Swords. FETAC Certificate in Multimedia Production Web Authoring Dreamweaver 3

Web Design Basics. Cindy Royal, Ph.D. Associate Professor Texas State University

Web layout guidelines for daughter sites of Scotland s Environment

Chapter 7 Page Layout Basics Key Concepts. Copyright 2013 Terry Ann Morris, Ed.D

CSS - Cascading Style Sheets

ICE: HTML, CSS, and Validation

MadCap Flare and Translation: Five Things to Consider When Developing Multilingual Content

Flare Tips and Tricks. Tips and tricks. Importing content Lists. Variables and snippets Condition tags Printed documentation WebHelp.

Development Perspective: DIV and CSS HTML layout. Web Design. Lesson 2. Development Perspective: DIV/CSS

Designing portal site structure and page layout using IBM Rational Application Developer V7 Part of a series on portal and portlet development

Web Authoring CSS. Module Descriptor

Coding Standards for Web Development

WordPress and HTML Basics

Web Design and Development ACS Chapter 9. Page Structure

01/42. Lecture notes. html and css

Cascading Style Sheet (CSS) Tutorial Using Notepad. Step by step instructions with full color screen shots

HTML and CSS. Elliot Davies. April 10th,

CSS 101. CSS CODE The code in a style sheet is made up of rules of the following types

Outline of CSS: Cascading Style Sheets

Contents. Introduction Downloading the Data Files... 2

MadCap Software. Import Guide. Flare 11

Simply download Beepip from and run the file when it arrives at your computer.

CHAPTER 10. When you complete this chapter, you will be able to:

Making Textual Webpage Content Responsive

Creating a Resume Webpage with

HTML TIPS FOR DESIGNING

Introduction to Web Technologies

Basics of HTML (some repetition) Cascading Style Sheets (some repetition) Web Design

Kentico CMS, 2011 Kentico Software. Contents. Mobile Development using Kentico CMS 6 2 Exploring the Mobile Environment 1

Web Building Blocks. Joseph Gilbert User Experience Web Developer University of Virginia Library

Level 1 - Clients and Markup

JJY s Joomla 1.5 Template Design Tutorial:

Programming exercises (Assignments)

Web Design for Print Designers WEB DESIGN FOR PRINT DESIGNERS: WEEK 6

Advanced Editor User s Guide

Mobile Web Site Style Guide

Last week we talked about creating your own tags: div tags and span tags. A div tag goes around other tags, e.g.,:

Course: CSC 224 Internet Technology I (2 credits Compulsory)

Web Design Revision. AQA AS-Level Computing COMP2. 39 minutes. 39 marks. Page 1 of 17

Web Design for Programmers. Brian Hogan NAPCS Slides and content 2008 Brian P. Hogan Do not reproduce in any form without permission

How To Create A Web Page On A Windows (For Free) With A Notepad) On A Macintosh (For A Freebie) Or Macintosh Web Browser (For Cheap) On Your Computer Or Macbook (

Website Development. 2 Text. 2.1 Fonts. Terry Marris September We see how to format text and separate structure from content.

Introduction to web development and JavaScript

Base template development guide

Designing HTML s for Use in the Advanced Editor

Introduction to Web Development

Wykład 2_2 TINT. Kaskadowe arkusze stylu Tabele, zastosowanie znaczników div. Zofia Kruczkiewicz

Лваполо. Customization

Appendix IX. Codes written for developing the revised search tool in HTML

Selectors in Action LESSON 3

Course Information Course Number: IWT 1229 Course Name: Web Development and Design Foundation

Create Webpages using HTML and CSS

CREATING A NEWSLETTER IN ADOBE DREAMWEAVER CS5 (step-by-step directions)

Microsoft Expression Web Quickstart Guide

AEGEE Podio Guidelines

Web Design & Development - Tutorial 04

Create Your own Company s Design Theme

The Essential Guide to HTML Design

MCH Strategic Data Best Practices Review

RESPONSIVE DESIGN BY COMMUNIGATOR

Creator Coding Guidelines Toolbox

Colgate University Website Content Style Guide

Further web design: Cascading Style Sheets Practical workbook

Web Publishing Basics 2

How to Properly Compose HTML Code : 1

Appendix H: Cascading Style Sheets (CSS)

Saucon Valley School District Planned Course of Study

OIT 307/ OIT 218: Web Programming

Using Style Sheets for Consistency

The Essential Guide to HTML Design

Marketing 101 Maximizing Results

COMMONWEALTH OF PENNSYLVANIA DEPARTMENT S OF Human Services, INSURANCE, AND AGING

Dreamweaver. Introduction to Editing Web Pages

IT3504: Web Development Techniques (Optional)

HTML5 and CSS3 Design with CSS Page 1

Make it SASsy: Using SAS to Generate Personalized, Stylized, and Automated Lisa Walter, Cardinal Health, Dublin, OH

CS134 Web Site Design & Development. Quiz1

Cascading Style Sheets (CSS)

Macromedia Dreamweaver 8 Developer Certification Examination Specification

Intro to Web Design. ACM UIUC

Web Development 1 A4 Project Description Web Architecture

Responsive Design

Caldes CM2: Marketing s Support Document v1.12

Transcription:

Cascading Style Sheets (CSS) Part 1 of 3: Introduction and overview Mike Hamilton V.P. Product Evangelism MadCap Software mhamilton@madcapsoftware.com

Presenter Information Mike Hamilton MadCap V.P. of Product Evangelism Mike Hamilton is the Vice President of Product Evangelism at MadCap Software where he is working on the next generation authoring tool, Flare. Before joining MadCap Software, he was the Product Manager for the RoboHelp product line since the days of Blue Sky Software, ehelp, and Macromedia. Mike has over 20 years of experience in training, technical communication, multimedia development, and software development.

We also have with us Jose Sermeno MadCap Product Evangelist He will answer questions during the webinar Type questions in the Question and Answer area of the GoToWebinar interface

How this webinar works You are muted If you ve been talking, hoping we d notice, we can t hear you We re recording this webinar None of your information will appear in the final webinar The download link will be provided to you automatically in a follow up email A short survey will also be included We should be done by the top of the hour

Agenda What are Cascading Style Sheets (CSS)? What can CSS do? Types of CSS What is Cascading? CSS rules What is Inheritance? Creating a Cascading Style Sheet Creating a custom style

What Are Cascading Style Sheets (CSS)?

What Are Cascading Style Sheets? Cascading Style Sheets From Wikipedia, the free encyclopedia Cascading Style Sheets (CSS) is a style sheet language used to describe the presentation (that is, the look and formatting) of a document written in a markup language. Its most common application is to style web pages written in HTML, but the language can be applied to any kind of XML document. Created by: CSS was created by Håkon Wium Lie and Bert Bos and was adopted as a W3C Recommendation in late 1996.

CSS Status Cascading Style Sheets From Wikipedia, the free encyclopedia Current: CSS 3, adopted by the W3C in 2012 is the current recommendation. Future: CSS has been broken into new categories and is under development. http://www.w3.org/style/css/current-work#table Support: Early browser support was problematic leading many to ignore the CSS technology. With modern browsers CSS rendering has become quite reliable. http://www.w3schools.com/cssref/css3_browsersupport.asp

What Are Cascading Style Sheets? A standards-based method for controlling the look and feel of HTML/XML content. Comprised of Rules to control elements in the document. Designed to separate formatting from the content while being flexible and scalable

What Can CSS Do?

What Can CSS Do? Text formatting Element sizing Element positioning Change link attributes Cursor manipulation And more http://www.csszengarden.com/

What Can CSS Do? Most importantly, CSS can support the control of hundreds or thousands of documents from a single control file This makes your life much easier when it is time to make updates

Types of CSS

HTML Page Structure <HTML> <HEAD> <TITLE>Title Text</TITLE> </HEAD> <BODY> <H1>H1 Heading</H1> <P>Paragraph 1</P> <P>Paragraph 2</P> </BODY> </HTML> Document (HTML) Head Title Text Body H1 Heading Paragraph 1 Paragraph 2

HTML Page Structure <HTML> <HEAD> <TITLE>Title Text</TITLE> </HEAD> <BODY> <H1>H1 Heading</H1> <P>Paragraph 1</P> <P>Paragraph 2</P> </BODY> </HTML> Document (HTML) Head Title Text Body H1 Heading Paragraph 1 Paragraph 2

Types of CSS Three CSS implementations Inline Affects only the element applied to Embedded Affects only the elements in a single file External Linked to an unlimited number of files

Inline CSS Use the STYLE attribute <p>this is normal text</p> <p><b>this is bold text</b></p> <p style= font-weight: bold >This is bold text</p>

Embedded CSS Added to the <HEAD> area of file Use <STYLE> element <HEAD> <TITLE>New Topic1</TITLE> <STYLE>P{font-weight:bold}</STYLE> </HEAD>

External CSS The <LINK> element is used to attach a CSS document to an HTML document <HEAD> <TITLE>New Topic1</TITLE> <LINK HREF="example.css" REL="StyleSheet" > </HEAD>

What is Cascading?

Cascading The three CSS types combine at run time to render the page. Order of precedence Inline styles Embedded style sheets Linked (external) style sheets

CSS Rules

Cascading Style Sheets (CSS) Style Rules Inline style= font-weight: bold Embedded/ External Property Value H1 {font-weight: bold} Selector Declaration H1 {font-weight: bold; color: black; }

What is Inheritance?

HTML Page Structure Document (HTML) Head Title Body H1 Heading Paragraph 1 Paragraph 2

CSS Inheritance Page elements inherit style attributes <body> <h1>sample heading</h1> <p>sample text</p> </body> body { font-family: Arial; }

Creating a Cascading Style Sheet

Creating a Cascading Style Sheet body {color: #000000; background: #F1F2EC; font-size: 8pt; font-family: Verdana;} h1 {color: #0D10E5; font-size: 12pt;} h2 {color: #040677; font-size: 10pt;} p {margin-bottom: 16px;} <html > <head> <link href="test.css" rel="stylesheet" /> </head> <body> <h1>heading 1 Text</h1> <p>a normal paragraph</p> <h2>heading 2 Text</h2> <p>another normal paragraph</p> <p>this paragraph will be a tip.</p> </body> </html>

Creating a Custom Style

CLASS attribute The CLASS attribute can be used to create custom styles for a set of items on a page P { color:blue; margin-left:3px; } P.myclass { color:blue; margin-left:3px; }

CLASS attribute Class Syntax: In a style sheet: P.myclass { color:blue;} In a page: <P CLASS= myclass >Text</P>

Creating a Cascading Style Sheet body {color: #000000; background: #F1F2EC; font-size: 8pt; font-family: Verdana;} h1 {color: #002000; font-size: 12pt;} h2 p {color: #002b00; font-size: 10pt;} {margin-bottom: 16px;} p.tip {color: #BEF5BF; font-weight: bold; background-color: #696969; padding-left: 0.8em; padding-right: 0.8em; padding-bottom: 0.3em; padding-top: 0.3em; border-bottom-color: #000000; border-bottom-style: Solid; border-bottom-width: 1px; border-top-color: #000000; border-top-style: Solid; border-top-width: 1px;} <html > <head> <link href="test.css" rel="stylesheet" /> </head> <body> <h1>heading 1 Text</h1> <p>a normal paragraph</p> <h2>heading 2 Text</h2> <p>another normal paragraph</p> <p class= tip >This paragraph will be a tip.</p> </body> </html>

Summary

Summary What are Cascading Style Sheets (CSS)? What can CSS do? Types of CSS What is Cascading? CSS rules What is Inheritance? Creating a Cascading Style Sheet Creating a custom style

Addenda

Suggested Reading List HTML and CSS: Visual QuickStart Guide, 8th Edition by Elizabeth Castro ISBN-13: 978-0-321-92883-2 CSS To The Point by Scott DeLoach ISBN-13: 978-0-615-21213-5 Cascading Style Sheets: Designing for the Web (3rd Edition) (Paperback) by Hakon Wium Lie and Bert Bos ISBN-13: 978-0321193124 CSS: The Definitive Guide, Third Edition by Eric Meyer ISBN-13: 978-0596527334

THANK YOU FOR ATTENDING TODAY S WEBINAR! As a webinar attendee, receive $100 OFF our next advanced training course. Just $499 per student! MadCap Flare Single Sourcing Training January 12-13, 2015 (web-based) MadCap Flare CSS Training January 15-16, 2015 (web-based) *Offer valid through Wednesday, November 26, 2014.

Upcoming Webinars: CSS Part 2: Controlling Text December 3, 8am Pacific Time CSS Part 3: Controlling Images December 17, 8am Pacific Time

Mike Hamilton V.P. Product Evangelism MadCap Software mhamilton@madcapsoftware.com Questions?

Mike Hamilton V.P. Product Evangelism MadCap Software mhamilton@madcapsoftware.com Thank You!