SlideShare a Scribd company logo
Developing Stylesheets for Online Help Scott DeLoach [email_address] Founder,  Click Start Certified Instructor,  Flare | RoboHelp | Captivate Author,  MadCap Flare for RoboHelp Users © 2007 Click Start , Inc.  All rights reserved.
Overview CSS overview Formatting links Layering information Customizing lists Creating a print-specific layout Formatting tables Designing without tables  User customizable help
CSS Overview Recommended sizing units IDs and classes Margins and padding ‘ Stacking’ headings
Recommended sizing units Print text: use points (pt) Screen text: use ems or % (percentage) margins, padding: use pixels (px) tables: use % (for liquid layout) or px (for fixed)
IDs and classes IDs Only one element can use a specific ID. <p id=”firstPara”>My first paragraph…</p> #firstPara { color: #00FF00; } Classes Many elements can share the same class. <p class=”printOnly”>Text</a> .printOnly { color: #00FF00; } It’s much easier to find elements with IDs (using JavaScript’s getElementByID method) than elements with classes.
Margins and padding Margins  are space around the  outside  of an element. Padding  is space  inside  the element between its borders and content. Content ................ .......................... .......................... Margin (light blue) Border  (orange) Padding (dark blue)
‘ Stacking’ headings h1, h2 { margin-top: 3em; } h1+h2 { margin-top: -3em; } Heading 1 Body text… Heading 1 Heading 2
Formatting links Removing underlines Highlighting links on hover or when clicked Using dotted underlines Styling external and email links Styling document links Adding link icons
Removing underlines a:link a:visited a:hover a:active { text-decoration: none; } Sample link
Highlighting links on hover or during click a:hover, a:active { color: #FF0000; background-color: #FFFF00; }
Using a dotted underline a { text-decoration: none; border-bottom: 1px dotted #000000; } Sample link
Styling external and email links a[href^=&quot;http:&quot;] { color: #FF00FF; } a[href^=&quot;mailto:&quot;] { color: #0000FF; } Only works for IE in “strict mode.”
Styling links to documents a[href$=&quot;.pdf&quot;] { color: #AA00FF; } a[href$=&quot;.doc&quot;] { color: #AA00FF; } Only works for IE in “strict mode.”
Adding link icons a[href^=&quot;http:&quot;] { background: url(linkarrow.gif) no-repeat right; padding-right: 20px; } Only works for IE in “strict mode.” Sample external link
Layering information Formatting popups Formatting hover text Showing/hiding all layers
Formatting popups <span id=&quot;term1&quot; class=&quot;popup&quot;>This is the popup text.</span> <a href=&quot;javascript:void(0);&quot; onMouseover=“showPopup('term1');&quot; onMouseout=“hidePopup('term1');&quot;>Popup Link</a>
Formatting popups .popup { position:absolute; left:8; top:36; width:200; border: solid 2px #4F81BD; background-color:#D0D8E8; padding: 5px; z-index:2; visibility:hidden; }
Formatting popups <script language=&quot;JavaScript&quot;> function showPopup(id) {  document.getElementById(id).style.visibility = &quot;visible&quot;;  } function hidePopup(id) { document.getElementById(id).style.visibility = &quot;hidden&quot;;  } </script>
Formatting hover text a span { display:none; } a:hover span { display:inline; position:absolute; padding-left: 4px; }  <a href=&quot;javascript:;&quot;>My link<span>Popup text</span></a>
Showing/hiding all layers <a href=&quot;javascript:void(0);&quot; onClick=&quot;showHide(this)&quot;>Show all</a> <p>The<span class=&quot;hideInfo&quot;> quick</span> brown fox jumped over the<span class=&quot;hideInfo&quot;> lazy</span> dog.</p> Built-in option in Flare’s WebHelp toolbar. Show all The brown fox jumped over the lazy dog.
Showing/hiding all layers
Customizing lists Using an image as a bullet Adding bullets to non-lists Removing list indentation
Using an image as a bullet ul { list-style-image: url(arrow.gif); } List item 1 List item 2
Add bullet icons to non-lists .note { background: url(pencil.gif) no-repeat left center; padding-left: 20px; } This is a note.
Removing indentation in lists ul { padding-left:1em; margin-left: 0px; } Sample content … Bullet item 1 Bullet item 2 Bullet item 3 More content ...
Creating a print-specific layout Specifying a print-specific stylesheet Adding automatic page breaks Hiding elements in print Changing the background color and image Specifying a serif font Showing link URLs when the user prints Removing link colors and underlining
Specifying a print-specific stylesheet Separate ‘print’ CSS files <link rel=&quot;stylesheet&quot; type&quot;text/css“ href=&quot;print.css&quot; media=&quot;print&quot;> Print-specific styles in a general CSS file @media print { … }
Adding automatic page breaks h1 { page-break-before: always; }
Hiding elements in print <div class=“onlineOnly”> <p>text text text text</p> </div> <span class=“onlineOnly”>…</span> <p class=“onlineOnly”>…</p> <style> .onlineOnly { display: none; } </style>
Changing the background color and image @media print { * { color: black; background-color: white !important; background-image: none !important; } }
Specifying a serif font body { background: white; font-size: 12pt; font-family: ‘times’; }
Showing link URLs in print a:link:after, a:visited:after { content: &quot; (&quot; attr(href) &quot;) &quot;; } a[href^=&quot;/&quot;]:after { content: &quot; (http://www.yourwebsite.com&quot; attr(href) &quot;) &quot;; } Doesn’t work in Internet Explorer. Visit Click Start  (http://www.clickstart.net) …
Removing link colors and underlining a:link, a:visited { color: black; text-decoration: none; }
Formatting tables Alternating row background colors Highlighting rows on hover
Alternating row background colors tableRowFirst tableRowEven tableRowOdd tableRowEven tableRowOdd tableRowEven
Alternating row background colors
Highlighting rows on hover tr:hover {  background-color:  #D0D8E8;  }
Designing without tables Non-scrolling region Floating images
Creating a non-scrolling region <div id=“head”> <h1>Page Title</h1> </div> <div id=“content”> <p>Page content</p> </div> Page Title Page content ……………………... ...…………………………………… …………………………………… ... …………………………………… ...
Creating a non-scrolling region html { height: 100%; max-height: 100%; /* hide overflow: hidden from IE5 Mac */ /*\*/ overflow: hidden; /**/ } body { height: 100%; max-height: 100%; overflow: hidden; padding: 0; margin: 0; }
Creating a non-scrolling region #head { position: absolute; top: 0; width: 100% min-width: 100% height: 50px; z-index: 3; border-bottom: 1px solid #000000; } html #head { top: 2px; height: 48px; width: 100% }
Creating a non-scrolling region #content { position: absolute; display: block; overflow: auto; z-index: 2; top: 50px; bottom: 0; width: 100%; } * html #content { top: 0; bottom: 0; height: 100%; width: 100%; border-top:  50px solid #ffffff; }
Floating images img { float: left; margin-right: 12px; }
User customizable help Changing the font size  Changing the stylesheet
Changing the font size or stylesheet <link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;default.css&quot; id=&quot;default&quot; />  <link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;larger.css&quot; id=&quot;larger&quot; />  <script> document.getElementById('larger').disabled=true; function changeCSS(reqCSS) { if (reqCSS == 'larger') { document.getElementById('larger').disabled=false; document.getElementById('default').disabled=true; } else { document.getElementById('larger').disabled=true; document.getElementById('default').disabled=false; } } </script>
Resources Cascading Style Sheets: Designing for the Web Hakon Lie and Bert Bos CSS Web Site Design Hands on Training Eric Meyer CSS Anthology: 101 Essential Tips, Tricks & Hacks Rachel Andrew CSS Mastery: Advanced Web Standards Solutions  Andy Budd, Simon Collison, and Cameron Moll Discussion group www.css-discuss.org CSS validator jigsaw.w3.org/css-validator
Questions? Scott DeLoach Founder, Click Start Certified Flare Instructor [email_address] CSS to the Point  available www.lulu.com/clickstart
About  Click Start Click Start  provides certified training and consulting for: MadCap Flare Adobe RoboHelp Adobe Captivate We offer public, online, and private (onsite) classes, and group discounts are available.  See  www.clickstart.net  for more information. If you need help: Learning Flare, RoboHelp, or Captivate Migrating to Flare from RoboHelp or another product Designing stylesheets for online help Creating use cases and wireframes/prototypes Developing Web-based training Adding embedding user assistance or context-sensitive help to an application Give us a call: 404.520.0003

More Related Content

What's hot (18)

Visualforce css developer guide(by forcetree.com)
Visualforce css developer guide(by forcetree.com)Visualforce css developer guide(by forcetree.com)
Visualforce css developer guide(by forcetree.com)
Edwin Vijay R
 
Basic of HTML, CSS(StyleSheet), JavaScript(js), Bootstrap, JSON & AngularJS
Basic of HTML, CSS(StyleSheet), JavaScript(js), Bootstrap, JSON & AngularJSBasic of HTML, CSS(StyleSheet), JavaScript(js), Bootstrap, JSON & AngularJS
Basic of HTML, CSS(StyleSheet), JavaScript(js), Bootstrap, JSON & AngularJS
Deepak Upadhyay
 
Basics Of Css And Some Common Mistakes
Basics Of Css And Some Common MistakesBasics Of Css And Some Common Mistakes
Basics Of Css And Some Common Mistakes
sanjay2211
 
Forum Presentation
Forum PresentationForum Presentation
Forum Presentation
Angus Pratt
 
Css
CssCss
Css
mreckman
 
Creating Web Sites with HTML and CSS
Creating Web Sites with HTML and CSSCreating Web Sites with HTML and CSS
Creating Web Sites with HTML and CSS
BG Java EE Course
 
Computer application html
Computer application htmlComputer application html
Computer application html
PrashantChahal3
 
HTML5 Web Forms
HTML5 Web FormsHTML5 Web Forms
HTML5 Web Forms
Estelle Weyl
 
Web Design Course: CSS lecture 2
Web Design Course: CSS  lecture 2Web Design Course: CSS  lecture 2
Web Design Course: CSS lecture 2
Gheyath M. Othman
 
Web Design Course: CSS lecture 1
Web Design Course: CSS lecture 1Web Design Course: CSS lecture 1
Web Design Course: CSS lecture 1
Gheyath M. Othman
 
Introduction to Cascading Style Sheets
Introduction to Cascading Style SheetsIntroduction to Cascading Style Sheets
Introduction to Cascading Style Sheets
Tushar Joshi
 
How to create a html webpage using notepad
How to create a html webpage using notepadHow to create a html webpage using notepad
How to create a html webpage using notepad
SophieBarwick1999
 
html-css
html-csshtml-css
html-css
Dhirendra Chauhan
 
CSS Basics
CSS BasicsCSS Basics
CSS Basics
Sanjeev Kumar
 
Embrace the Mullet: CSS is the 'Party in the Back' (a CSS How-to)
Embrace the Mullet: CSS is the 'Party in the Back' (a CSS How-to)Embrace the Mullet: CSS is the 'Party in the Back' (a CSS How-to)
Embrace the Mullet: CSS is the 'Party in the Back' (a CSS How-to)
Tom Hapgood
 
Sacramento web design
Sacramento web designSacramento web design
Sacramento web design
lambertvilleg_5
 
Web Design Course: CSS lecture 3
Web Design Course: CSS lecture 3Web Design Course: CSS lecture 3
Web Design Course: CSS lecture 3
Gheyath M. Othman
 
Html
HtmlHtml
Html
Nisa Soomro
 
Visualforce css developer guide(by forcetree.com)
Visualforce css developer guide(by forcetree.com)Visualforce css developer guide(by forcetree.com)
Visualforce css developer guide(by forcetree.com)
Edwin Vijay R
 
Basic of HTML, CSS(StyleSheet), JavaScript(js), Bootstrap, JSON & AngularJS
Basic of HTML, CSS(StyleSheet), JavaScript(js), Bootstrap, JSON & AngularJSBasic of HTML, CSS(StyleSheet), JavaScript(js), Bootstrap, JSON & AngularJS
Basic of HTML, CSS(StyleSheet), JavaScript(js), Bootstrap, JSON & AngularJS
Deepak Upadhyay
 
Basics Of Css And Some Common Mistakes
Basics Of Css And Some Common MistakesBasics Of Css And Some Common Mistakes
Basics Of Css And Some Common Mistakes
sanjay2211
 
Forum Presentation
Forum PresentationForum Presentation
Forum Presentation
Angus Pratt
 
Creating Web Sites with HTML and CSS
Creating Web Sites with HTML and CSSCreating Web Sites with HTML and CSS
Creating Web Sites with HTML and CSS
BG Java EE Course
 
Computer application html
Computer application htmlComputer application html
Computer application html
PrashantChahal3
 
Web Design Course: CSS lecture 2
Web Design Course: CSS  lecture 2Web Design Course: CSS  lecture 2
Web Design Course: CSS lecture 2
Gheyath M. Othman
 
Web Design Course: CSS lecture 1
Web Design Course: CSS lecture 1Web Design Course: CSS lecture 1
Web Design Course: CSS lecture 1
Gheyath M. Othman
 
Introduction to Cascading Style Sheets
Introduction to Cascading Style SheetsIntroduction to Cascading Style Sheets
Introduction to Cascading Style Sheets
Tushar Joshi
 
How to create a html webpage using notepad
How to create a html webpage using notepadHow to create a html webpage using notepad
How to create a html webpage using notepad
SophieBarwick1999
 
Embrace the Mullet: CSS is the 'Party in the Back' (a CSS How-to)
Embrace the Mullet: CSS is the 'Party in the Back' (a CSS How-to)Embrace the Mullet: CSS is the 'Party in the Back' (a CSS How-to)
Embrace the Mullet: CSS is the 'Party in the Back' (a CSS How-to)
Tom Hapgood
 
Web Design Course: CSS lecture 3
Web Design Course: CSS lecture 3Web Design Course: CSS lecture 3
Web Design Course: CSS lecture 3
Gheyath M. Othman
 

Viewers also liked (6)

Core Web Standards and Competencies - WritersUA East 2015, Scott DeLoach, Cli...
Core Web Standards and Competencies - WritersUA East 2015, Scott DeLoach, Cli...Core Web Standards and Competencies - WritersUA East 2015, Scott DeLoach, Cli...
Core Web Standards and Competencies - WritersUA East 2015, Scott DeLoach, Cli...
Scott DeLoach
 
Developing a Facebook Strategy and Avoiding the 9 Deadly Sins
Developing a Facebook Strategy and Avoiding the 9 Deadly SinsDeveloping a Facebook Strategy and Avoiding the 9 Deadly Sins
Developing a Facebook Strategy and Avoiding the 9 Deadly Sins
Justin Levy
 
Social Media Tools for Business
Social Media Tools for BusinessSocial Media Tools for Business
Social Media Tools for Business
Justin Levy
 
Striking a Balance Between Staying Connected and Time Management
Striking a Balance Between Staying Connected and Time ManagementStriking a Balance Between Staying Connected and Time Management
Striking a Balance Between Staying Connected and Time Management
Justin Levy
 
Evolving from Social Media to Social Business
Evolving from Social Media to Social BusinessEvolving from Social Media to Social Business
Evolving from Social Media to Social Business
Justin Levy
 
E Newsletter
E NewsletterE Newsletter
E Newsletter
Multivision
 
Core Web Standards and Competencies - WritersUA East 2015, Scott DeLoach, Cli...
Core Web Standards and Competencies - WritersUA East 2015, Scott DeLoach, Cli...Core Web Standards and Competencies - WritersUA East 2015, Scott DeLoach, Cli...
Core Web Standards and Competencies - WritersUA East 2015, Scott DeLoach, Cli...
Scott DeLoach
 
Developing a Facebook Strategy and Avoiding the 9 Deadly Sins
Developing a Facebook Strategy and Avoiding the 9 Deadly SinsDeveloping a Facebook Strategy and Avoiding the 9 Deadly Sins
Developing a Facebook Strategy and Avoiding the 9 Deadly Sins
Justin Levy
 
Social Media Tools for Business
Social Media Tools for BusinessSocial Media Tools for Business
Social Media Tools for Business
Justin Levy
 
Striking a Balance Between Staying Connected and Time Management
Striking a Balance Between Staying Connected and Time ManagementStriking a Balance Between Staying Connected and Time Management
Striking a Balance Between Staying Connected and Time Management
Justin Levy
 
Evolving from Social Media to Social Business
Evolving from Social Media to Social BusinessEvolving from Social Media to Social Business
Evolving from Social Media to Social Business
Justin Levy
 

Similar to Stylesheets for Online Help - Scott DeLoach, ClickStart (20)

CSS Quick Reference / Cheat Sheet - Scott DeLoach, ClickStart
CSS Quick Reference / Cheat Sheet - Scott DeLoach, ClickStartCSS Quick Reference / Cheat Sheet - Scott DeLoach, ClickStart
CSS Quick Reference / Cheat Sheet - Scott DeLoach, ClickStart
Scott DeLoach
 
Css
CssCss
Css
Rathan Raj
 
Css
CssCss
Css
Balakumaran Arunachalam
 
Cascading Style Sheets - Part 02
Cascading Style Sheets - Part 02Cascading Style Sheets - Part 02
Cascading Style Sheets - Part 02
Hatem Mahmoud
 
How Cascading Style Sheets (CSS) Works
How Cascading Style Sheets (CSS) WorksHow Cascading Style Sheets (CSS) Works
How Cascading Style Sheets (CSS) Works
Amit Tyagi
 
Article css
Article cssArticle css
Article css
testing4444
 
Demystifying CSS & WordPress
Demystifying CSS & WordPressDemystifying CSS & WordPress
Demystifying CSS & WordPress
Justin Carmony
 
CSS
CSSCSS
CSS
Md. Sirajus Salayhin
 
Highly Maintainable, Efficient, and Optimized CSS
Highly Maintainable, Efficient, and Optimized CSSHighly Maintainable, Efficient, and Optimized CSS
Highly Maintainable, Efficient, and Optimized CSS
Zoe Gillenwater
 
Maintainable CSS
Maintainable CSSMaintainable CSS
Maintainable CSS
Stephen Hay
 
Understanding THML
Understanding THMLUnderstanding THML
Understanding THML
Hinopak Motors Limited
 
css-note.pptx
css-note.pptxcss-note.pptx
css-note.pptx
Samay16
 
css3.pptx
css3.pptxcss3.pptx
css3.pptx
ThiyaguPappu
 
Class 2 handout css exercises (2)
Class 2 handout css exercises (2)Class 2 handout css exercises (2)
Class 2 handout css exercises (2)
Erin M. Kidwell
 
Web technology
Web technologyWeb technology
Web technology
syeda zainab
 
Doing more with LESS
Doing more with LESSDoing more with LESS
Doing more with LESS
jsmith92
 
Html Expression Web
Html Expression WebHtml Expression Web
Html Expression Web
Mark Frydenberg
 
Learn HTML
Learn HTMLLearn HTML
Learn HTML
Jimmy Mander
 
Css
CssCss
Css
NIRMAL FELIX
 
css front end development , designing web page
css front end development , designing web pagecss front end development , designing web page
css front end development , designing web page
Indu32
 
CSS Quick Reference / Cheat Sheet - Scott DeLoach, ClickStart
CSS Quick Reference / Cheat Sheet - Scott DeLoach, ClickStartCSS Quick Reference / Cheat Sheet - Scott DeLoach, ClickStart
CSS Quick Reference / Cheat Sheet - Scott DeLoach, ClickStart
Scott DeLoach
 
Cascading Style Sheets - Part 02
Cascading Style Sheets - Part 02Cascading Style Sheets - Part 02
Cascading Style Sheets - Part 02
Hatem Mahmoud
 
How Cascading Style Sheets (CSS) Works
How Cascading Style Sheets (CSS) WorksHow Cascading Style Sheets (CSS) Works
How Cascading Style Sheets (CSS) Works
Amit Tyagi
 
Demystifying CSS & WordPress
Demystifying CSS & WordPressDemystifying CSS & WordPress
Demystifying CSS & WordPress
Justin Carmony
 
Highly Maintainable, Efficient, and Optimized CSS
Highly Maintainable, Efficient, and Optimized CSSHighly Maintainable, Efficient, and Optimized CSS
Highly Maintainable, Efficient, and Optimized CSS
Zoe Gillenwater
 
Maintainable CSS
Maintainable CSSMaintainable CSS
Maintainable CSS
Stephen Hay
 
css-note.pptx
css-note.pptxcss-note.pptx
css-note.pptx
Samay16
 
Class 2 handout css exercises (2)
Class 2 handout css exercises (2)Class 2 handout css exercises (2)
Class 2 handout css exercises (2)
Erin M. Kidwell
 
Doing more with LESS
Doing more with LESSDoing more with LESS
Doing more with LESS
jsmith92
 
css front end development , designing web page
css front end development , designing web pagecss front end development , designing web page
css front end development , designing web page
Indu32
 

More from Scott DeLoach (20)

Formatting Images with CSS in MadCap Flare - MadCap webinar, Scott DeLoach, C...
Formatting Images with CSS in MadCap Flare - MadCap webinar, Scott DeLoach, C...Formatting Images with CSS in MadCap Flare - MadCap webinar, Scott DeLoach, C...
Formatting Images with CSS in MadCap Flare - MadCap webinar, Scott DeLoach, C...
Scott DeLoach
 
Dynamic User Assistance in MadCap Flare - MadWorld 2019, Scott DeLoach, Click...
Dynamic User Assistance in MadCap Flare - MadWorld 2019, Scott DeLoach, Click...Dynamic User Assistance in MadCap Flare - MadWorld 2019, Scott DeLoach, Click...
Dynamic User Assistance in MadCap Flare - MadWorld 2019, Scott DeLoach, Click...
Scott DeLoach
 
Enhancing MadCap Flare HTML5 Responsive Layout and Design - MadWorld 2019, Sc...
Enhancing MadCap Flare HTML5 Responsive Layout and Design - MadWorld 2019, Sc...Enhancing MadCap Flare HTML5 Responsive Layout and Design - MadWorld 2019, Sc...
Enhancing MadCap Flare HTML5 Responsive Layout and Design - MadWorld 2019, Sc...
Scott DeLoach
 
Microcontent Authoring - Nordic Techkomm 2019, Scott DeLoach, ClickStart
Microcontent Authoring - Nordic Techkomm 2019, Scott DeLoach, ClickStartMicrocontent Authoring - Nordic Techkomm 2019, Scott DeLoach, ClickStart
Microcontent Authoring - Nordic Techkomm 2019, Scott DeLoach, ClickStart
Scott DeLoach
 
CSS Best Practices - tcworld 2018, Scott DeLoach, ClickStart
CSS Best Practices - tcworld 2018, Scott DeLoach, ClickStartCSS Best Practices - tcworld 2018, Scott DeLoach, ClickStart
CSS Best Practices - tcworld 2018, Scott DeLoach, ClickStart
Scott DeLoach
 
Advanced Skinless HTML5 Design with MadCap Flare - MadWorld 2018, Scott DeLoa...
Advanced Skinless HTML5 Design with MadCap Flare - MadWorld 2018, Scott DeLoa...Advanced Skinless HTML5 Design with MadCap Flare - MadWorld 2018, Scott DeLoa...
Advanced Skinless HTML5 Design with MadCap Flare - MadWorld 2018, Scott DeLoa...
Scott DeLoach
 
Extreme CSS Techniques - MadWorld Europe 2018, Scott DeLoach, ClickStart
Extreme CSS Techniques - MadWorld Europe 2018, Scott DeLoach, ClickStartExtreme CSS Techniques - MadWorld Europe 2018, Scott DeLoach, ClickStart
Extreme CSS Techniques - MadWorld Europe 2018, Scott DeLoach, ClickStart
Scott DeLoach
 
Adapting Content for Mobile Devices - tcworld 2017, Scott DeLoach, ClickStart
Adapting Content for Mobile Devices - tcworld 2017, Scott DeLoach, ClickStartAdapting Content for Mobile Devices - tcworld 2017, Scott DeLoach, ClickStart
Adapting Content for Mobile Devices - tcworld 2017, Scott DeLoach, ClickStart
Scott DeLoach
 
Best-in-Class Embedded User Assistance - UA Europe 2017, Scott DeLoach, Click...
Best-in-Class Embedded User Assistance - UA Europe 2017, Scott DeLoach, Click...Best-in-Class Embedded User Assistance - UA Europe 2017, Scott DeLoach, Click...
Best-in-Class Embedded User Assistance - UA Europe 2017, Scott DeLoach, Click...
Scott DeLoach
 
Cutting Edge HTML5 Design with MadCap Flare - tcworld 2017, Scott DeLoach, Cl...
Cutting Edge HTML5 Design with MadCap Flare - tcworld 2017, Scott DeLoach, Cl...Cutting Edge HTML5 Design with MadCap Flare - tcworld 2017, Scott DeLoach, Cl...
Cutting Edge HTML5 Design with MadCap Flare - tcworld 2017, Scott DeLoach, Cl...
Scott DeLoach
 
Extending MadCap Flare HTML5 Targets with jQuery - MadWorld 2016, Scott DeLoa...
Extending MadCap Flare HTML5 Targets with jQuery - MadWorld 2016, Scott DeLoa...Extending MadCap Flare HTML5 Targets with jQuery - MadWorld 2016, Scott DeLoa...
Extending MadCap Flare HTML5 Targets with jQuery - MadWorld 2016, Scott DeLoa...
Scott DeLoach
 
Intro to CSS in MadCap Flare - MadWorld 2016, Scott DeLoach, ClickStart
Intro to CSS in MadCap Flare - MadWorld 2016, Scott DeLoach, ClickStartIntro to CSS in MadCap Flare - MadWorld 2016, Scott DeLoach, ClickStart
Intro to CSS in MadCap Flare - MadWorld 2016, Scott DeLoach, ClickStart
Scott DeLoach
 
Responsive Content: A CSS-based Approach - MadWorld 2015, Scott DeLoach, Clic...
Responsive Content: A CSS-based Approach - MadWorld 2015, Scott DeLoach, Clic...Responsive Content: A CSS-based Approach - MadWorld 2015, Scott DeLoach, Clic...
Responsive Content: A CSS-based Approach - MadWorld 2015, Scott DeLoach, Clic...
Scott DeLoach
 
Best Practices for Going Mobile - MadWorld 2015, Scott DeLoach, ClickStart
Best Practices for Going Mobile - MadWorld 2015, Scott DeLoach, ClickStartBest Practices for Going Mobile - MadWorld 2015, Scott DeLoach, ClickStart
Best Practices for Going Mobile - MadWorld 2015, Scott DeLoach, ClickStart
Scott DeLoach
 
Best Practices for Embedded UA - WritersUA 2012, Scott DeLoach, ClickStart
Best Practices for Embedded UA - WritersUA 2012, Scott DeLoach, ClickStartBest Practices for Embedded UA - WritersUA 2012, Scott DeLoach, ClickStart
Best Practices for Embedded UA - WritersUA 2012, Scott DeLoach, ClickStart
Scott DeLoach
 
Applying Responsive Web Design (RWD) to UA - WritersUA East 2015, Scott DeLoa...
Applying Responsive Web Design (RWD) to UA - WritersUA East 2015, Scott DeLoa...Applying Responsive Web Design (RWD) to UA - WritersUA East 2015, Scott DeLoa...
Applying Responsive Web Design (RWD) to UA - WritersUA East 2015, Scott DeLoa...
Scott DeLoach
 
MadCap Flare: Advanced Table Styles - MadWorld 2014, Scott DeLoach, ClickStart
MadCap Flare: Advanced Table Styles - MadWorld 2014, Scott DeLoach, ClickStartMadCap Flare: Advanced Table Styles - MadWorld 2014, Scott DeLoach, ClickStart
MadCap Flare: Advanced Table Styles - MadWorld 2014, Scott DeLoach, ClickStart
Scott DeLoach
 
Developing Context-sensitive Help for Web-based Applications - Scott DeLoach,...
Developing Context-sensitive Help for Web-based Applications - Scott DeLoach,...Developing Context-sensitive Help for Web-based Applications - Scott DeLoach,...
Developing Context-sensitive Help for Web-based Applications - Scott DeLoach,...
Scott DeLoach
 
How to Not Let Team Authoring Drive You Crazy - MadWorld 2013, Scott DeLoach,...
How to Not Let Team Authoring Drive You Crazy - MadWorld 2013, Scott DeLoach,...How to Not Let Team Authoring Drive You Crazy - MadWorld 2013, Scott DeLoach,...
How to Not Let Team Authoring Drive You Crazy - MadWorld 2013, Scott DeLoach,...
Scott DeLoach
 
Using MadCap Flare Reports and MadCap Analyzer - MadWorld 2013, Scott DeLoach...
Using MadCap Flare Reports and MadCap Analyzer - MadWorld 2013, Scott DeLoach...Using MadCap Flare Reports and MadCap Analyzer - MadWorld 2013, Scott DeLoach...
Using MadCap Flare Reports and MadCap Analyzer - MadWorld 2013, Scott DeLoach...
Scott DeLoach
 
Formatting Images with CSS in MadCap Flare - MadCap webinar, Scott DeLoach, C...
Formatting Images with CSS in MadCap Flare - MadCap webinar, Scott DeLoach, C...Formatting Images with CSS in MadCap Flare - MadCap webinar, Scott DeLoach, C...
Formatting Images with CSS in MadCap Flare - MadCap webinar, Scott DeLoach, C...
Scott DeLoach
 
Dynamic User Assistance in MadCap Flare - MadWorld 2019, Scott DeLoach, Click...
Dynamic User Assistance in MadCap Flare - MadWorld 2019, Scott DeLoach, Click...Dynamic User Assistance in MadCap Flare - MadWorld 2019, Scott DeLoach, Click...
Dynamic User Assistance in MadCap Flare - MadWorld 2019, Scott DeLoach, Click...
Scott DeLoach
 
Enhancing MadCap Flare HTML5 Responsive Layout and Design - MadWorld 2019, Sc...
Enhancing MadCap Flare HTML5 Responsive Layout and Design - MadWorld 2019, Sc...Enhancing MadCap Flare HTML5 Responsive Layout and Design - MadWorld 2019, Sc...
Enhancing MadCap Flare HTML5 Responsive Layout and Design - MadWorld 2019, Sc...
Scott DeLoach
 
Microcontent Authoring - Nordic Techkomm 2019, Scott DeLoach, ClickStart
Microcontent Authoring - Nordic Techkomm 2019, Scott DeLoach, ClickStartMicrocontent Authoring - Nordic Techkomm 2019, Scott DeLoach, ClickStart
Microcontent Authoring - Nordic Techkomm 2019, Scott DeLoach, ClickStart
Scott DeLoach
 
CSS Best Practices - tcworld 2018, Scott DeLoach, ClickStart
CSS Best Practices - tcworld 2018, Scott DeLoach, ClickStartCSS Best Practices - tcworld 2018, Scott DeLoach, ClickStart
CSS Best Practices - tcworld 2018, Scott DeLoach, ClickStart
Scott DeLoach
 
Advanced Skinless HTML5 Design with MadCap Flare - MadWorld 2018, Scott DeLoa...
Advanced Skinless HTML5 Design with MadCap Flare - MadWorld 2018, Scott DeLoa...Advanced Skinless HTML5 Design with MadCap Flare - MadWorld 2018, Scott DeLoa...
Advanced Skinless HTML5 Design with MadCap Flare - MadWorld 2018, Scott DeLoa...
Scott DeLoach
 
Extreme CSS Techniques - MadWorld Europe 2018, Scott DeLoach, ClickStart
Extreme CSS Techniques - MadWorld Europe 2018, Scott DeLoach, ClickStartExtreme CSS Techniques - MadWorld Europe 2018, Scott DeLoach, ClickStart
Extreme CSS Techniques - MadWorld Europe 2018, Scott DeLoach, ClickStart
Scott DeLoach
 
Adapting Content for Mobile Devices - tcworld 2017, Scott DeLoach, ClickStart
Adapting Content for Mobile Devices - tcworld 2017, Scott DeLoach, ClickStartAdapting Content for Mobile Devices - tcworld 2017, Scott DeLoach, ClickStart
Adapting Content for Mobile Devices - tcworld 2017, Scott DeLoach, ClickStart
Scott DeLoach
 
Best-in-Class Embedded User Assistance - UA Europe 2017, Scott DeLoach, Click...
Best-in-Class Embedded User Assistance - UA Europe 2017, Scott DeLoach, Click...Best-in-Class Embedded User Assistance - UA Europe 2017, Scott DeLoach, Click...
Best-in-Class Embedded User Assistance - UA Europe 2017, Scott DeLoach, Click...
Scott DeLoach
 
Cutting Edge HTML5 Design with MadCap Flare - tcworld 2017, Scott DeLoach, Cl...
Cutting Edge HTML5 Design with MadCap Flare - tcworld 2017, Scott DeLoach, Cl...Cutting Edge HTML5 Design with MadCap Flare - tcworld 2017, Scott DeLoach, Cl...
Cutting Edge HTML5 Design with MadCap Flare - tcworld 2017, Scott DeLoach, Cl...
Scott DeLoach
 
Extending MadCap Flare HTML5 Targets with jQuery - MadWorld 2016, Scott DeLoa...
Extending MadCap Flare HTML5 Targets with jQuery - MadWorld 2016, Scott DeLoa...Extending MadCap Flare HTML5 Targets with jQuery - MadWorld 2016, Scott DeLoa...
Extending MadCap Flare HTML5 Targets with jQuery - MadWorld 2016, Scott DeLoa...
Scott DeLoach
 
Intro to CSS in MadCap Flare - MadWorld 2016, Scott DeLoach, ClickStart
Intro to CSS in MadCap Flare - MadWorld 2016, Scott DeLoach, ClickStartIntro to CSS in MadCap Flare - MadWorld 2016, Scott DeLoach, ClickStart
Intro to CSS in MadCap Flare - MadWorld 2016, Scott DeLoach, ClickStart
Scott DeLoach
 
Responsive Content: A CSS-based Approach - MadWorld 2015, Scott DeLoach, Clic...
Responsive Content: A CSS-based Approach - MadWorld 2015, Scott DeLoach, Clic...Responsive Content: A CSS-based Approach - MadWorld 2015, Scott DeLoach, Clic...
Responsive Content: A CSS-based Approach - MadWorld 2015, Scott DeLoach, Clic...
Scott DeLoach
 
Best Practices for Going Mobile - MadWorld 2015, Scott DeLoach, ClickStart
Best Practices for Going Mobile - MadWorld 2015, Scott DeLoach, ClickStartBest Practices for Going Mobile - MadWorld 2015, Scott DeLoach, ClickStart
Best Practices for Going Mobile - MadWorld 2015, Scott DeLoach, ClickStart
Scott DeLoach
 
Best Practices for Embedded UA - WritersUA 2012, Scott DeLoach, ClickStart
Best Practices for Embedded UA - WritersUA 2012, Scott DeLoach, ClickStartBest Practices for Embedded UA - WritersUA 2012, Scott DeLoach, ClickStart
Best Practices for Embedded UA - WritersUA 2012, Scott DeLoach, ClickStart
Scott DeLoach
 
Applying Responsive Web Design (RWD) to UA - WritersUA East 2015, Scott DeLoa...
Applying Responsive Web Design (RWD) to UA - WritersUA East 2015, Scott DeLoa...Applying Responsive Web Design (RWD) to UA - WritersUA East 2015, Scott DeLoa...
Applying Responsive Web Design (RWD) to UA - WritersUA East 2015, Scott DeLoa...
Scott DeLoach
 
MadCap Flare: Advanced Table Styles - MadWorld 2014, Scott DeLoach, ClickStart
MadCap Flare: Advanced Table Styles - MadWorld 2014, Scott DeLoach, ClickStartMadCap Flare: Advanced Table Styles - MadWorld 2014, Scott DeLoach, ClickStart
MadCap Flare: Advanced Table Styles - MadWorld 2014, Scott DeLoach, ClickStart
Scott DeLoach
 
Developing Context-sensitive Help for Web-based Applications - Scott DeLoach,...
Developing Context-sensitive Help for Web-based Applications - Scott DeLoach,...Developing Context-sensitive Help for Web-based Applications - Scott DeLoach,...
Developing Context-sensitive Help for Web-based Applications - Scott DeLoach,...
Scott DeLoach
 
How to Not Let Team Authoring Drive You Crazy - MadWorld 2013, Scott DeLoach,...
How to Not Let Team Authoring Drive You Crazy - MadWorld 2013, Scott DeLoach,...How to Not Let Team Authoring Drive You Crazy - MadWorld 2013, Scott DeLoach,...
How to Not Let Team Authoring Drive You Crazy - MadWorld 2013, Scott DeLoach,...
Scott DeLoach
 
Using MadCap Flare Reports and MadCap Analyzer - MadWorld 2013, Scott DeLoach...
Using MadCap Flare Reports and MadCap Analyzer - MadWorld 2013, Scott DeLoach...Using MadCap Flare Reports and MadCap Analyzer - MadWorld 2013, Scott DeLoach...
Using MadCap Flare Reports and MadCap Analyzer - MadWorld 2013, Scott DeLoach...
Scott DeLoach
 

Stylesheets for Online Help - Scott DeLoach, ClickStart

  • 1. Developing Stylesheets for Online Help Scott DeLoach [email_address] Founder, Click Start Certified Instructor, Flare | RoboHelp | Captivate Author, MadCap Flare for RoboHelp Users © 2007 Click Start , Inc. All rights reserved.
  • 2. Overview CSS overview Formatting links Layering information Customizing lists Creating a print-specific layout Formatting tables Designing without tables User customizable help
  • 3. CSS Overview Recommended sizing units IDs and classes Margins and padding ‘ Stacking’ headings
  • 4. Recommended sizing units Print text: use points (pt) Screen text: use ems or % (percentage) margins, padding: use pixels (px) tables: use % (for liquid layout) or px (for fixed)
  • 5. IDs and classes IDs Only one element can use a specific ID. <p id=”firstPara”>My first paragraph…</p> #firstPara { color: #00FF00; } Classes Many elements can share the same class. <p class=”printOnly”>Text</a> .printOnly { color: #00FF00; } It’s much easier to find elements with IDs (using JavaScript’s getElementByID method) than elements with classes.
  • 6. Margins and padding Margins are space around the outside of an element. Padding is space inside the element between its borders and content. Content ................ .......................... .......................... Margin (light blue) Border (orange) Padding (dark blue)
  • 7. ‘ Stacking’ headings h1, h2 { margin-top: 3em; } h1+h2 { margin-top: -3em; } Heading 1 Body text… Heading 1 Heading 2
  • 8. Formatting links Removing underlines Highlighting links on hover or when clicked Using dotted underlines Styling external and email links Styling document links Adding link icons
  • 9. Removing underlines a:link a:visited a:hover a:active { text-decoration: none; } Sample link
  • 10. Highlighting links on hover or during click a:hover, a:active { color: #FF0000; background-color: #FFFF00; }
  • 11. Using a dotted underline a { text-decoration: none; border-bottom: 1px dotted #000000; } Sample link
  • 12. Styling external and email links a[href^=&quot;http:&quot;] { color: #FF00FF; } a[href^=&quot;mailto:&quot;] { color: #0000FF; } Only works for IE in “strict mode.”
  • 13. Styling links to documents a[href$=&quot;.pdf&quot;] { color: #AA00FF; } a[href$=&quot;.doc&quot;] { color: #AA00FF; } Only works for IE in “strict mode.”
  • 14. Adding link icons a[href^=&quot;http:&quot;] { background: url(linkarrow.gif) no-repeat right; padding-right: 20px; } Only works for IE in “strict mode.” Sample external link
  • 15. Layering information Formatting popups Formatting hover text Showing/hiding all layers
  • 16. Formatting popups <span id=&quot;term1&quot; class=&quot;popup&quot;>This is the popup text.</span> <a href=&quot;javascript:void(0);&quot; onMouseover=“showPopup('term1');&quot; onMouseout=“hidePopup('term1');&quot;>Popup Link</a>
  • 17. Formatting popups .popup { position:absolute; left:8; top:36; width:200; border: solid 2px #4F81BD; background-color:#D0D8E8; padding: 5px; z-index:2; visibility:hidden; }
  • 18. Formatting popups <script language=&quot;JavaScript&quot;> function showPopup(id) { document.getElementById(id).style.visibility = &quot;visible&quot;; } function hidePopup(id) { document.getElementById(id).style.visibility = &quot;hidden&quot;; } </script>
  • 19. Formatting hover text a span { display:none; } a:hover span { display:inline; position:absolute; padding-left: 4px; } <a href=&quot;javascript:;&quot;>My link<span>Popup text</span></a>
  • 20. Showing/hiding all layers <a href=&quot;javascript:void(0);&quot; onClick=&quot;showHide(this)&quot;>Show all</a> <p>The<span class=&quot;hideInfo&quot;> quick</span> brown fox jumped over the<span class=&quot;hideInfo&quot;> lazy</span> dog.</p> Built-in option in Flare’s WebHelp toolbar. Show all The brown fox jumped over the lazy dog.
  • 22. Customizing lists Using an image as a bullet Adding bullets to non-lists Removing list indentation
  • 23. Using an image as a bullet ul { list-style-image: url(arrow.gif); } List item 1 List item 2
  • 24. Add bullet icons to non-lists .note { background: url(pencil.gif) no-repeat left center; padding-left: 20px; } This is a note.
  • 25. Removing indentation in lists ul { padding-left:1em; margin-left: 0px; } Sample content … Bullet item 1 Bullet item 2 Bullet item 3 More content ...
  • 26. Creating a print-specific layout Specifying a print-specific stylesheet Adding automatic page breaks Hiding elements in print Changing the background color and image Specifying a serif font Showing link URLs when the user prints Removing link colors and underlining
  • 27. Specifying a print-specific stylesheet Separate ‘print’ CSS files <link rel=&quot;stylesheet&quot; type&quot;text/css“ href=&quot;print.css&quot; media=&quot;print&quot;> Print-specific styles in a general CSS file @media print { … }
  • 28. Adding automatic page breaks h1 { page-break-before: always; }
  • 29. Hiding elements in print <div class=“onlineOnly”> <p>text text text text</p> </div> <span class=“onlineOnly”>…</span> <p class=“onlineOnly”>…</p> <style> .onlineOnly { display: none; } </style>
  • 30. Changing the background color and image @media print { * { color: black; background-color: white !important; background-image: none !important; } }
  • 31. Specifying a serif font body { background: white; font-size: 12pt; font-family: ‘times’; }
  • 32. Showing link URLs in print a:link:after, a:visited:after { content: &quot; (&quot; attr(href) &quot;) &quot;; } a[href^=&quot;/&quot;]:after { content: &quot; (http://www.yourwebsite.com&quot; attr(href) &quot;) &quot;; } Doesn’t work in Internet Explorer. Visit Click Start (http://www.clickstart.net) …
  • 33. Removing link colors and underlining a:link, a:visited { color: black; text-decoration: none; }
  • 34. Formatting tables Alternating row background colors Highlighting rows on hover
  • 35. Alternating row background colors tableRowFirst tableRowEven tableRowOdd tableRowEven tableRowOdd tableRowEven
  • 37. Highlighting rows on hover tr:hover { background-color: #D0D8E8; }
  • 38. Designing without tables Non-scrolling region Floating images
  • 39. Creating a non-scrolling region <div id=“head”> <h1>Page Title</h1> </div> <div id=“content”> <p>Page content</p> </div> Page Title Page content ……………………... ...…………………………………… …………………………………… ... …………………………………… ...
  • 40. Creating a non-scrolling region html { height: 100%; max-height: 100%; /* hide overflow: hidden from IE5 Mac */ /*\*/ overflow: hidden; /**/ } body { height: 100%; max-height: 100%; overflow: hidden; padding: 0; margin: 0; }
  • 41. Creating a non-scrolling region #head { position: absolute; top: 0; width: 100% min-width: 100% height: 50px; z-index: 3; border-bottom: 1px solid #000000; } html #head { top: 2px; height: 48px; width: 100% }
  • 42. Creating a non-scrolling region #content { position: absolute; display: block; overflow: auto; z-index: 2; top: 50px; bottom: 0; width: 100%; } * html #content { top: 0; bottom: 0; height: 100%; width: 100%; border-top: 50px solid #ffffff; }
  • 43. Floating images img { float: left; margin-right: 12px; }
  • 44. User customizable help Changing the font size Changing the stylesheet
  • 45. Changing the font size or stylesheet <link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;default.css&quot; id=&quot;default&quot; /> <link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;larger.css&quot; id=&quot;larger&quot; /> <script> document.getElementById('larger').disabled=true; function changeCSS(reqCSS) { if (reqCSS == 'larger') { document.getElementById('larger').disabled=false; document.getElementById('default').disabled=true; } else { document.getElementById('larger').disabled=true; document.getElementById('default').disabled=false; } } </script>
  • 46. Resources Cascading Style Sheets: Designing for the Web Hakon Lie and Bert Bos CSS Web Site Design Hands on Training Eric Meyer CSS Anthology: 101 Essential Tips, Tricks & Hacks Rachel Andrew CSS Mastery: Advanced Web Standards Solutions Andy Budd, Simon Collison, and Cameron Moll Discussion group www.css-discuss.org CSS validator jigsaw.w3.org/css-validator
  • 47. Questions? Scott DeLoach Founder, Click Start Certified Flare Instructor [email_address] CSS to the Point available www.lulu.com/clickstart
  • 48. About Click Start Click Start provides certified training and consulting for: MadCap Flare Adobe RoboHelp Adobe Captivate We offer public, online, and private (onsite) classes, and group discounts are available. See www.clickstart.net for more information. If you need help: Learning Flare, RoboHelp, or Captivate Migrating to Flare from RoboHelp or another product Designing stylesheets for online help Creating use cases and wireframes/prototypes Developing Web-based training Adding embedding user assistance or context-sensitive help to an application Give us a call: 404.520.0003