<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Responsive Web Design on HTML5 in 24 Hours</title>
    <link>https://www.html5in24hours.com/tags/responsive-web-design/</link>
    <description>Responsive Web Design on HTML5 in 24 Hours</description>
    <generator>Hugo</generator>
    <language>en-us</language><copyright>Jennifer Kyrnin</copyright><lastBuildDate>Sat, 18 Apr 2015 17:26:23 +0000</lastBuildDate>
    <atom:link href="https://www.html5in24hours.com/tags/responsive-web-design/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>The Lazy Way to Mobile-Friendly</title>
      <link>https://www.html5in24hours.com/posts/the-lazy-way-to-mobile-friendly/</link>
      <pubDate>Sat, 18 Apr 2015 17:26:23 +0000</pubDate>
      <guid>https://www.html5in24hours.com/posts/the-lazy-way-to-mobile-friendly/</guid><description>&lt;h2 id=&#34;or-how-i-made-a-simple-change-on-a-bootstrap-site-to-please-google&#34;&gt;Or How I Made a Simple Change on a Bootstrap Site to Please Google&lt;/h2&gt;&#xA;&lt;p&gt;Like most web designers I know, I am frantically trying to get many websites mobile-friendly in time for &lt;a href=&#34;http://googlewebmastercentral.blogspot.com/2015/02/finding-more-mobile-friendly-search.html&#34;&gt;Google’s deadline of April 21st&lt;/a&gt;. Knowing that &lt;a href=&#34;http://getbootstrap.com/&#34;&gt;Bootstrap&lt;/a&gt; is a very mobile-friendly framework, I have been migrating a lot of the sites I manage into it. This has worked great, but as the deadline looms ever nearer, I have been cutting more corners in getting the sites ready.&lt;/p&gt;&#xA;&lt;p&gt;And at this point, most of the sites that I’ve left hanging are my own.&lt;/p&gt;&#xA;&lt;p&gt;So today, I decided to check my branding site &lt;a href=&#34;http://htmljenn.com/&#34;&gt;http://htmljenn.com/&lt;/a&gt;. And as I suspected, even with Bootstrap, it came up as not friendly.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://www.html5in24hours.com/images/screenshot515-300x262.jpg&#34; alt=&#34;Not Mobile Friendly&#34;&gt;](/images/screenshot515.jpg) I knew that header image was too big!&lt;/p&gt;&#xA;&lt;p&gt;As you can see from the picture, my headline graphic is way too large for most mobile screens. I knew this, but I was probably hoping it would fix itself overnight or something. It didn’t.&lt;/p&gt;&#xA;&lt;p&gt;Luckily, Bootstrap offers a feature that makes it easy to get rid of the offending graphic (for now) and replace it with text that is mobile-friendly: The Bootstrap responsive utility classes.&lt;/p&gt;&#xA;&lt;p&gt;There are 16 classes you can use in Bootstrap to show and hide content from different sized devices. They are:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;.visible-xs-*&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;.visible-sm-*&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;.visible-md-*&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;.visible-lg-*&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;.hidden-xs&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;.hidden-sm&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;.hidden-md&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;.hidden-lg&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;You may notice that I only listed eight classes above. That’s because the &lt;code&gt;.visible&lt;/code&gt; classes each have three variations:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;.visible-*-block&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;.visible-*-inline&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;.visible-*-inline-block&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Since I realized that most likely the real problem with the mobile site was that the banner image was too big, I decided to hide it (for now) on smaller screens. Instead, I would show them the site title in an &lt;code&gt;&amp;lt;h1&amp;gt;&lt;/code&gt; tag.&lt;/p&gt;&#xA;&lt;p&gt;So I added the &lt;code&gt;&amp;lt;h1&amp;gt;&lt;/code&gt; site title (&lt;code&gt;&amp;lt;h1&amp;gt;HTMLJenn&amp;lt;/h1&amp;gt;&lt;/code&gt;) and then added the class &lt;code&gt;.hidden-md&lt;/code&gt; to it. This would hide the site title from any devices of medium size or larger.&lt;/p&gt;&#xA;&lt;p&gt;Then I hid the banner image by adding the class &lt;code&gt;.visible-md-block&lt;/code&gt; to it. This makes it visible only to devices of medium size or larger.&lt;/p&gt;&#xA;&lt;p&gt;After I uploaded these simple changes, I tested on Google and got:&lt;/p&gt;&#xA;&lt;p&gt;[caption id=&amp;ldquo;attachment_1131&amp;rdquo; align=&amp;ldquo;aligncenter&amp;rdquo; width=&amp;ldquo;300&amp;rdquo;]&lt;a href=&#34;https://www.html5in24hours.com/images/screenshot516.jpg&#34;&gt;&lt;img src=&#34;https://www.html5in24hours.com/images/screenshot516-300x262.jpg&#34; alt=&#34;Mobile Friendly&#34;&gt;&lt;/a&gt; It’s mobile-friendly!&lt;/p&gt;&#xA;&lt;p&gt;Hooray! My site is mobile-friendly. Now to work on making it look less ugly! But that can wait until I’ve finished fixing all my other sites!&lt;/p&gt;&#xA;&lt;h2 id=&#34;what-to-do-to-make-your-site-mobile-friendly&#34;&gt;What To Do to Make Your Site Mobile Friendly&lt;/h2&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://www.google.com/webmasters/tools/mobile-friendly/&#34;&gt;Test your site&lt;/a&gt; to see if Google feels it is mobile friendly.&lt;/li&gt;&#xA;&lt;li&gt;If it isn’t, don’t panic. &lt;strong&gt;Google will not delist your site.&lt;/strong&gt; This bears repeating. Just because a site is not mobile friendly does &lt;strong&gt;not&lt;/strong&gt; mean that it will not show up in Google search. It just means that when someone on a mobile device searches Google, your site will not rank &lt;em&gt;as well&lt;/em&gt; as a similar site that is mobile friendly.&lt;/li&gt;&#xA;&lt;li&gt;If it isn’t already, add your site to &lt;a href=&#34;https://www.google.com/webmasters/tools/&#34;&gt;Google Webmaster Tools&lt;/a&gt; and follow the instructions in the &lt;a href=&#34;https://developers.google.com/webmasters/mobile-sites/mobile-seo/&#34;&gt;Google Mobile SEO&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;There are many ways you can make your sites more mobile friendly. The Bootstrap framework is one way to get a responsive web design fairly quickly.&lt;/p&gt;&#xA;&lt;h2 id=&#34;more-help-with-bootstrap-mobile-friendly-design-rwd-and-googles-change-to-search-results&#34;&gt;More Help with Bootstrap, Mobile-Friendly Design, RWD, and Google’s Change to Search Results&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Order my book &lt;em&gt;&lt;a href=&#34;http://www.amazon.com/gp/product/0672338386/ref=as_li_qf_sp_asin_il_tl?ie=UTF8&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=0672338386&amp;amp;linkCode=as2&amp;amp;tag=kyrnindesign-20&amp;amp;linkId=EB4FXW6K476IINJB&#34;&gt;Sams Teach Yourself Responsive Web Design in 24 Hours&lt;/a&gt;&lt;/em&gt;&lt;/li&gt;&#xA;&lt;li&gt;Get &lt;a href=&#34;http://getbootstrap.com/&#34;&gt;Bootstrap&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;Pre-order &lt;em&gt;&lt;a href=&#34;http://www.amazon.com/gp/product/0672337045/ref=as_li_qf_sp_asin_il_tl?ie=UTF8&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=0672337045&amp;amp;linkCode=as2&amp;amp;tag=kyrnindesign-20&amp;amp;linkId=EP4DRO2DWWYNAJSA&#34;&gt;Sams Teach Yourself Bootstrap in 24 Hours&lt;/a&gt;&lt;/em&gt; by Jennifer Kyrnin&lt;/li&gt;&#xA;&lt;li&gt;Read &lt;a href=&#34;http://bradfrost.com/blog/web/mobile-first-responsive-web-design/&#34;&gt;Mobile First Responsive Web Design&lt;/a&gt; by Brad Frost&lt;/li&gt;&#xA;&lt;li&gt;Test your site with the &lt;a href=&#34;https://www.google.com/webmasters/tools/mobile-friendly/&#34;&gt;Google Mobile Friendliness Test&lt;/a&gt; from &lt;a href=&#34;https://www.google.com/webmasters/tools/&#34;&gt;Google Webmaster Tools&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;Read &lt;a href=&#34;http://googlewebmastercentral.blogspot.com/2015/02/finding-more-mobile-friendly-search.html&#34;&gt;Finding More Mobile Friendly Search Results&lt;/a&gt; from Google Webmaster Central&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;</description>
    </item>
  </channel>
</rss>
