SlideShare a Scribd company logo
Responsive Content: A CSS-based Approach
Scott DeLoach – scott@clickstart.net ClickStart – www.clickstart.net
In this session, I will present a CSS-based approach for providing responsive content. This method
can be used with HTML5’s responsive output option to adapt topic content for desktops, tablets,
and phones. We will discuss how to use this approach to show/hide, redesign, and
reword/replace content based on the device. I will share working examples that attendees can
apply to their own projects, and we will explore options for extending this method for complex
situations.
Overview
 Why responsive content is important
 Design challenges and the solution
 Content challenges and the solution
 Responsive content examples
Why mobile?
source: techcrunch.com/2014/08/21/majority-of-digital-media-consumption-now-takes-place-in-
mobile-apps
The problems
 Content
 Design
How going mobile changes design
Everything needs respond to screen size
 Text
 Tables
 Images
 Navigational elements
The design solution - responsive web design (RWD)
Ethan Marcotte 2010
Examples
www.bostonglobe.com
www.change.org
www.foodsense.is
How going mobile changes content
Everything needs to respond to screen size
 Terminology
 Writing style
 Information blocks
 Navigation and interactivity
The content solution - responsive web content (RWC)
 RWC media queries and style classes
 display property (plus visibility and height for <li>)
RWC - the code
/* phone */
@media (max-width: 767px) {
body .phone { display: block; }
body span.phone { display: inline; }
body img.phone { display: inline; }
body li.phone { display: list-item; height: auto; visibility: visible; }
body table.phone { display: table; }
body tr.phone { display: table-row; }
}
/* tablet */
@media (min-width: 768px) and (max-width: 1279px) {
body .tablet { display: block; }
body span.tablet { display: inline; }
body img.tablet { display: inline; }
body li.tablet { display: list-item; height: auto; visibility: visible; }
body table.tablet { display: table; }
body tr.tablet { display: table-row; }
}
/* desktop */
@media (min-width: 1280px) {
body .desktop { display: block; }
body span.desktop { display: inline; }
body img.desktop { display: inline; }
body li.desktop { display: list-item; height: auto; visibility: visible; }
body table.desktop { display: table; }
body tr.desktop { display: table-row; }
}
.phone { display: none; }
.tablet { display: none; }
.desktop { display: none; }
li.phone { display: block; height: 0; visibility: hidden; }
li.tablet { display: block; height: 0; visibility: hidden; }
li.desktop { display: block; height: 0; visibility: hidden; }
For the latest version of the code, see www.clickstart.net and www.responsivewebcontent.com
(coming soon).
RWC - words
<span class="desktop">Click</span><span class="phone tablet">Tap</span> Home.
RWC - paragraphs
<p class="desktop">This sentence is for desktops.</p>
<p class="tablet">This sentence is for tablets.</p>
<p class="phone">This sentence is for phones.</p>
RWC - lists
<ul class="desktop">
<li>Desktop</li>
<li>Desktop</li>
<li>Desktop</li>
</ul>
<ul class="tablet">
<li>Tablet</li>
<li>Tablet</li>
<li>Tablet</li>
</ul>
<ul class="phone">
<li>Phone</li>
<li>Phone</li>
<li>Phone</li>
</ul>
RWC - items in a list
<ol>
<li>A - Desktop</li>
<li>B - Desktop</li>
<li class="phone">C - Phone</li>
<li>D - Desktop</li>
</ol>
RWC - images
<p><img src="img_desktop.png" class=”desktop” /></p>
RWC - tables
<table class="phone">
<col />
<col />
<thead>
<tr>
<th>Phone</th>
<th>Phone</th>
</tr>
</thead>
<tbody>
<tr>
<td>phone</td>
<td>phone</td>
</tr>
<tr>
<td>phone</td>
<td>phone</td>
</tr>
</tbody>
</table>
RWC - rows in a table
<table>
<col />
<col />
<thead>
<tr>
<th>Heading</th>
<th>Heading</th>
</tr>
</thead>
<tbody>
<tr class="desktop">
<td>desktop</td>
<td>desktop</td>
</tr>
<tr class="tablet">
<td>tablet</td>
<td>tablet</td>
</tr>
<tr class="phone">
<td>phone</td>
<td>phone</td>
</tr>
</tbody>
</table>
RWC – sample files
See www.clickstart.net and www.responsivecontent.com (coming soon) for sample files.
About the presenter
Scott DeLoach is the Founder of ClickStart, where he provides training and consulting for
MadCap Flare, Adobe Captivate, embedded user assistance, CSS, and HTML5. He has
been developing browser-based help systems since 1997, and he has received four Best
in Show awards for his work from STC.
Scott is a certified Flare and Captivate instructor, and he is the author of MadCap Flare
Developer's Guide, CSS to the Point, HTML5 to the Point, and Word 2013 to the Point. For
more information about Scott's books see www.lulu.com/clickstart.
You can reach Scott at www.clickstart.net or by email at scott@clickstart.net.
Ad

More Related Content

What's hot (15)

Worry free web development
Worry free web developmentWorry free web development
Worry free web development
Estelle Weyl
 
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
 
Html5 - Novas Tags na Prática!
Html5 - Novas Tags na Prática!Html5 - Novas Tags na Prática!
Html5 - Novas Tags na Prática!
Rômulo Reis de Oliveira
 
Introduction to Responsive Web Design
Introduction to Responsive Web DesignIntroduction to Responsive Web Design
Introduction to Responsive Web Design
Clarissa Peterson
 
Intro to axure
Intro to axureIntro to axure
Intro to axure
Nathan Gao
 
Responsive Design in the Real World
Responsive Design in the Real WorldResponsive Design in the Real World
Responsive Design in the Real World
Clarissa Peterson
 
Intro to Web Development
Intro to Web DevelopmentIntro to Web Development
Intro to Web Development
Vinay Shriyan, Certified ScrumMaster® (CSM)
 
NJECC iWEB Tutorial DAndrea
NJECC iWEB Tutorial DAndreaNJECC iWEB Tutorial DAndrea
NJECC iWEB Tutorial DAndrea
D'Andrea
 
TPR4
TPR4TPR4
TPR4
tutorialsruby
 
Web 2.0 = Accessibility 2.0?
Web 2.0 = Accessibility 2.0?Web 2.0 = Accessibility 2.0?
Web 2.0 = Accessibility 2.0?
Jared Smith
 
Too much accessibility: Good intentions, badly implemented
Too much accessibility: Good intentions, badly implementedToo much accessibility: Good intentions, badly implemented
Too much accessibility: Good intentions, badly implemented
Gabriel Porras
 
Responsive Web Design, get the best out of your designs - JavaScript Open Day...
Responsive Web Design, get the best out of your designs - JavaScript Open Day...Responsive Web Design, get the best out of your designs - JavaScript Open Day...
Responsive Web Design, get the best out of your designs - JavaScript Open Day...
Frédéric Harper
 
Responsive Web Design - but for real!
Responsive Web Design - but for real!Responsive Web Design - but for real!
Responsive Web Design - but for real!
Rudy Rigot
 
Intro to Web Development from Bloc.io
Intro to Web Development from Bloc.ioIntro to Web Development from Bloc.io
Intro to Web Development from Bloc.io
Douglas Wright
 
Front end developer responsibilities what does a front-end developer do?
Front end developer responsibilities  what does a front-end developer do?Front end developer responsibilities  what does a front-end developer do?
Front end developer responsibilities what does a front-end developer do?
Katy Slemon
 
Worry free web development
Worry free web developmentWorry free web development
Worry free web development
Estelle Weyl
 
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
 
Introduction to Responsive Web Design
Introduction to Responsive Web DesignIntroduction to Responsive Web Design
Introduction to Responsive Web Design
Clarissa Peterson
 
Intro to axure
Intro to axureIntro to axure
Intro to axure
Nathan Gao
 
Responsive Design in the Real World
Responsive Design in the Real WorldResponsive Design in the Real World
Responsive Design in the Real World
Clarissa Peterson
 
NJECC iWEB Tutorial DAndrea
NJECC iWEB Tutorial DAndreaNJECC iWEB Tutorial DAndrea
NJECC iWEB Tutorial DAndrea
D'Andrea
 
Web 2.0 = Accessibility 2.0?
Web 2.0 = Accessibility 2.0?Web 2.0 = Accessibility 2.0?
Web 2.0 = Accessibility 2.0?
Jared Smith
 
Too much accessibility: Good intentions, badly implemented
Too much accessibility: Good intentions, badly implementedToo much accessibility: Good intentions, badly implemented
Too much accessibility: Good intentions, badly implemented
Gabriel Porras
 
Responsive Web Design, get the best out of your designs - JavaScript Open Day...
Responsive Web Design, get the best out of your designs - JavaScript Open Day...Responsive Web Design, get the best out of your designs - JavaScript Open Day...
Responsive Web Design, get the best out of your designs - JavaScript Open Day...
Frédéric Harper
 
Responsive Web Design - but for real!
Responsive Web Design - but for real!Responsive Web Design - but for real!
Responsive Web Design - but for real!
Rudy Rigot
 
Intro to Web Development from Bloc.io
Intro to Web Development from Bloc.ioIntro to Web Development from Bloc.io
Intro to Web Development from Bloc.io
Douglas Wright
 
Front end developer responsibilities what does a front-end developer do?
Front end developer responsibilities  what does a front-end developer do?Front end developer responsibilities  what does a front-end developer do?
Front end developer responsibilities what does a front-end developer do?
Katy Slemon
 

Similar to Responsive Content: A CSS-based Approach - MadWorld 2015, Scott DeLoach, ClickStart (20)

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
 
What’s Up, EDoc?!
What’s Up,EDoc?!What’s Up,EDoc?!
What’s Up, EDoc?!
STC-Philadelphia Metro Chapter
 
“Good design is obvious. Great design is transparent.” — How we use Bootstrap...
“Good design is obvious. Great design is transparent.” — How we use Bootstrap...“Good design is obvious. Great design is transparent.” — How we use Bootstrap...
“Good design is obvious. Great design is transparent.” — How we use Bootstrap...
Roni Banerjee
 
Responsive webdesign WordCampNL 2012
Responsive webdesign WordCampNL 2012Responsive webdesign WordCampNL 2012
Responsive webdesign WordCampNL 2012
Tom Hermans
 
Going Mobile First With Drupal
Going Mobile First With DrupalGoing Mobile First With Drupal
Going Mobile First With Drupal
Jesper Wøldiche
 
Create Responsive Website Design with Bootstrap 3
Create Responsive Website Design with Bootstrap 3Create Responsive Website Design with Bootstrap 3
Create Responsive Website Design with Bootstrap 3
Wahyu Putra
 
Responsive Websites
Responsive WebsitesResponsive Websites
Responsive Websites
Joe Seifi
 
Stc 2015 preparing legacy projects for responsive design - design issues
Stc 2015   preparing legacy projects for responsive design - design issuesStc 2015   preparing legacy projects for responsive design - design issues
Stc 2015 preparing legacy projects for responsive design - design issues
Neil Perlin
 
Stc 2015 preparing legacy projects for responsive design - technical issues
Stc 2015   preparing legacy projects for responsive design - technical issuesStc 2015   preparing legacy projects for responsive design - technical issues
Stc 2015 preparing legacy projects for responsive design - technical issues
Neil Perlin
 
Responsive Web Design for Universal Access
Responsive Web Design for Universal AccessResponsive Web Design for Universal Access
Responsive Web Design for Universal Access
Kate Walser
 
Web Development for UX Designers
Web Development for UX DesignersWeb Development for UX Designers
Web Development for UX Designers
Ashlimarie
 
Bootstrap 3 Basic - Bangkok WordPress Meetup
Bootstrap 3 Basic - Bangkok WordPress MeetupBootstrap 3 Basic - Bangkok WordPress Meetup
Bootstrap 3 Basic - Bangkok WordPress Meetup
Woratana Perth Ngarmtrakulchol
 
Lavacon 2014 responsive design in your hat
Lavacon 2014   responsive design in your hatLavacon 2014   responsive design in your hat
Lavacon 2014 responsive design in your hat
Neil Perlin
 
Responsive Web Design - more than just a buzzword
Responsive Web Design - more than just a buzzwordResponsive Web Design - more than just a buzzword
Responsive Web Design - more than just a buzzword
Russ Weakley
 
Silverlight Developer Introduction
Silverlight   Developer IntroductionSilverlight   Developer Introduction
Silverlight Developer Introduction
Tomy Ismail
 
Html 5 mobile - nitty gritty
Html 5 mobile - nitty grittyHtml 5 mobile - nitty gritty
Html 5 mobile - nitty gritty
Mario Noble
 
How i made the responsive mobile version of
How i made the responsive mobile version ofHow i made the responsive mobile version of
How i made the responsive mobile version of
Sayed Ahmed
 
Spectrum 2015 responsive design
Spectrum 2015   responsive designSpectrum 2015   responsive design
Spectrum 2015 responsive design
Neil Perlin
 
Introduction to Responsive Web Design
Introduction to Responsive Web DesignIntroduction to Responsive Web Design
Introduction to Responsive Web Design
Shawn Calvert
 
Is everything we used to do wrong?
Is everything we used to do wrong?Is everything we used to do wrong?
Is everything we used to do wrong?
Russ Weakley
 
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
 
“Good design is obvious. Great design is transparent.” — How we use Bootstrap...
“Good design is obvious. Great design is transparent.” — How we use Bootstrap...“Good design is obvious. Great design is transparent.” — How we use Bootstrap...
“Good design is obvious. Great design is transparent.” — How we use Bootstrap...
Roni Banerjee
 
Responsive webdesign WordCampNL 2012
Responsive webdesign WordCampNL 2012Responsive webdesign WordCampNL 2012
Responsive webdesign WordCampNL 2012
Tom Hermans
 
Going Mobile First With Drupal
Going Mobile First With DrupalGoing Mobile First With Drupal
Going Mobile First With Drupal
Jesper Wøldiche
 
Create Responsive Website Design with Bootstrap 3
Create Responsive Website Design with Bootstrap 3Create Responsive Website Design with Bootstrap 3
Create Responsive Website Design with Bootstrap 3
Wahyu Putra
 
Responsive Websites
Responsive WebsitesResponsive Websites
Responsive Websites
Joe Seifi
 
Stc 2015 preparing legacy projects for responsive design - design issues
Stc 2015   preparing legacy projects for responsive design - design issuesStc 2015   preparing legacy projects for responsive design - design issues
Stc 2015 preparing legacy projects for responsive design - design issues
Neil Perlin
 
Stc 2015 preparing legacy projects for responsive design - technical issues
Stc 2015   preparing legacy projects for responsive design - technical issuesStc 2015   preparing legacy projects for responsive design - technical issues
Stc 2015 preparing legacy projects for responsive design - technical issues
Neil Perlin
 
Responsive Web Design for Universal Access
Responsive Web Design for Universal AccessResponsive Web Design for Universal Access
Responsive Web Design for Universal Access
Kate Walser
 
Web Development for UX Designers
Web Development for UX DesignersWeb Development for UX Designers
Web Development for UX Designers
Ashlimarie
 
Lavacon 2014 responsive design in your hat
Lavacon 2014   responsive design in your hatLavacon 2014   responsive design in your hat
Lavacon 2014 responsive design in your hat
Neil Perlin
 
Responsive Web Design - more than just a buzzword
Responsive Web Design - more than just a buzzwordResponsive Web Design - more than just a buzzword
Responsive Web Design - more than just a buzzword
Russ Weakley
 
Silverlight Developer Introduction
Silverlight   Developer IntroductionSilverlight   Developer Introduction
Silverlight Developer Introduction
Tomy Ismail
 
Html 5 mobile - nitty gritty
Html 5 mobile - nitty grittyHtml 5 mobile - nitty gritty
Html 5 mobile - nitty gritty
Mario Noble
 
How i made the responsive mobile version of
How i made the responsive mobile version ofHow i made the responsive mobile version of
How i made the responsive mobile version of
Sayed Ahmed
 
Spectrum 2015 responsive design
Spectrum 2015   responsive designSpectrum 2015   responsive design
Spectrum 2015 responsive design
Neil Perlin
 
Introduction to Responsive Web Design
Introduction to Responsive Web DesignIntroduction to Responsive Web Design
Introduction to Responsive Web Design
Shawn Calvert
 
Is everything we used to do wrong?
Is everything we used to do wrong?Is everything we used to do wrong?
Is everything we used to do wrong?
Russ Weakley
 
Ad

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
 
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
 
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
 
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
 
Embedded UA 101 - STC Summit 2013, Scott DeLoach, ClickStart
Embedded UA 101 - STC Summit 2013, Scott DeLoach, ClickStartEmbedded UA 101 - STC Summit 2013, Scott DeLoach, ClickStart
Embedded UA 101 - STC Summit 2013, Scott DeLoach, ClickStart
Scott DeLoach
 
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
 
MadCap Flare Keyboard Shortcuts - Scott DeLoach, ClickStart
MadCap Flare Keyboard Shortcuts - Scott DeLoach, ClickStartMadCap Flare Keyboard Shortcuts - Scott DeLoach, ClickStart
MadCap Flare Keyboard Shortcuts - Scott DeLoach, ClickStart
Scott DeLoach
 
Stylesheets for Online Help - Scott DeLoach, ClickStart
Stylesheets for Online Help - Scott DeLoach, ClickStartStylesheets for Online Help - Scott DeLoach, ClickStart
Stylesheets for Online Help - Scott DeLoach, ClickStart
Scott DeLoach
 
MadCap Flare Tips and Tricks - Scott DeLoach, ClickStart
MadCap Flare Tips and Tricks - Scott DeLoach, ClickStartMadCap Flare Tips and Tricks - Scott DeLoach, ClickStart
MadCap Flare Tips and Tricks - Scott DeLoach, ClickStart
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
 
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
 
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
 
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
 
Embedded UA 101 - STC Summit 2013, Scott DeLoach, ClickStart
Embedded UA 101 - STC Summit 2013, Scott DeLoach, ClickStartEmbedded UA 101 - STC Summit 2013, Scott DeLoach, ClickStart
Embedded UA 101 - STC Summit 2013, Scott DeLoach, ClickStart
Scott DeLoach
 
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
 
MadCap Flare Keyboard Shortcuts - Scott DeLoach, ClickStart
MadCap Flare Keyboard Shortcuts - Scott DeLoach, ClickStartMadCap Flare Keyboard Shortcuts - Scott DeLoach, ClickStart
MadCap Flare Keyboard Shortcuts - Scott DeLoach, ClickStart
Scott DeLoach
 
Stylesheets for Online Help - Scott DeLoach, ClickStart
Stylesheets for Online Help - Scott DeLoach, ClickStartStylesheets for Online Help - Scott DeLoach, ClickStart
Stylesheets for Online Help - Scott DeLoach, ClickStart
Scott DeLoach
 
MadCap Flare Tips and Tricks - Scott DeLoach, ClickStart
MadCap Flare Tips and Tricks - Scott DeLoach, ClickStartMadCap Flare Tips and Tricks - Scott DeLoach, ClickStart
MadCap Flare Tips and Tricks - Scott DeLoach, ClickStart
Scott DeLoach
 
Ad

Responsive Content: A CSS-based Approach - MadWorld 2015, Scott DeLoach, ClickStart

  • 1. Responsive Content: A CSS-based Approach Scott DeLoach – [email protected] ClickStart – www.clickstart.net In this session, I will present a CSS-based approach for providing responsive content. This method can be used with HTML5’s responsive output option to adapt topic content for desktops, tablets, and phones. We will discuss how to use this approach to show/hide, redesign, and reword/replace content based on the device. I will share working examples that attendees can apply to their own projects, and we will explore options for extending this method for complex situations. Overview  Why responsive content is important  Design challenges and the solution  Content challenges and the solution  Responsive content examples Why mobile? source: techcrunch.com/2014/08/21/majority-of-digital-media-consumption-now-takes-place-in- mobile-apps
  • 2. The problems  Content  Design How going mobile changes design Everything needs respond to screen size  Text  Tables  Images  Navigational elements The design solution - responsive web design (RWD) Ethan Marcotte 2010 Examples www.bostonglobe.com www.change.org www.foodsense.is How going mobile changes content Everything needs to respond to screen size  Terminology  Writing style  Information blocks  Navigation and interactivity The content solution - responsive web content (RWC)  RWC media queries and style classes  display property (plus visibility and height for <li>) RWC - the code /* phone */ @media (max-width: 767px) { body .phone { display: block; } body span.phone { display: inline; } body img.phone { display: inline; } body li.phone { display: list-item; height: auto; visibility: visible; } body table.phone { display: table; } body tr.phone { display: table-row; } }
  • 3. /* tablet */ @media (min-width: 768px) and (max-width: 1279px) { body .tablet { display: block; } body span.tablet { display: inline; } body img.tablet { display: inline; } body li.tablet { display: list-item; height: auto; visibility: visible; } body table.tablet { display: table; } body tr.tablet { display: table-row; } } /* desktop */ @media (min-width: 1280px) { body .desktop { display: block; } body span.desktop { display: inline; } body img.desktop { display: inline; } body li.desktop { display: list-item; height: auto; visibility: visible; } body table.desktop { display: table; } body tr.desktop { display: table-row; } } .phone { display: none; } .tablet { display: none; } .desktop { display: none; } li.phone { display: block; height: 0; visibility: hidden; } li.tablet { display: block; height: 0; visibility: hidden; } li.desktop { display: block; height: 0; visibility: hidden; } For the latest version of the code, see www.clickstart.net and www.responsivewebcontent.com (coming soon). RWC - words <span class="desktop">Click</span><span class="phone tablet">Tap</span> Home. RWC - paragraphs <p class="desktop">This sentence is for desktops.</p> <p class="tablet">This sentence is for tablets.</p> <p class="phone">This sentence is for phones.</p> RWC - lists <ul class="desktop"> <li>Desktop</li> <li>Desktop</li> <li>Desktop</li> </ul> <ul class="tablet"> <li>Tablet</li> <li>Tablet</li> <li>Tablet</li> </ul> <ul class="phone">
  • 4. <li>Phone</li> <li>Phone</li> <li>Phone</li> </ul> RWC - items in a list <ol> <li>A - Desktop</li> <li>B - Desktop</li> <li class="phone">C - Phone</li> <li>D - Desktop</li> </ol> RWC - images <p><img src="img_desktop.png" class=”desktop” /></p> RWC - tables <table class="phone"> <col /> <col /> <thead> <tr> <th>Phone</th> <th>Phone</th> </tr> </thead> <tbody> <tr> <td>phone</td> <td>phone</td> </tr> <tr> <td>phone</td> <td>phone</td> </tr> </tbody> </table> RWC - rows in a table <table> <col /> <col /> <thead> <tr> <th>Heading</th> <th>Heading</th> </tr> </thead>
  • 5. <tbody> <tr class="desktop"> <td>desktop</td> <td>desktop</td> </tr> <tr class="tablet"> <td>tablet</td> <td>tablet</td> </tr> <tr class="phone"> <td>phone</td> <td>phone</td> </tr> </tbody> </table> RWC – sample files See www.clickstart.net and www.responsivecontent.com (coming soon) for sample files. About the presenter Scott DeLoach is the Founder of ClickStart, where he provides training and consulting for MadCap Flare, Adobe Captivate, embedded user assistance, CSS, and HTML5. He has been developing browser-based help systems since 1997, and he has received four Best in Show awards for his work from STC. Scott is a certified Flare and Captivate instructor, and he is the author of MadCap Flare Developer's Guide, CSS to the Point, HTML5 to the Point, and Word 2013 to the Point. For more information about Scott's books see www.lulu.com/clickstart. You can reach Scott at www.clickstart.net or by email at [email protected].