<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:media="http://search.yahoo.com/mrss/"><channel><title><![CDATA[CSS - Stapps.io]]></title><description><![CDATA[CSS - Stapps.io]]></description><link>https://blog.stapps.io/</link><generator>Ghost 0.11</generator><lastBuildDate>Thu, 01 Jan 2026 22:19:19 GMT</lastBuildDate><atom:link href="https://blog.stapps.io/tag/css/rss/" rel="self" type="application/rss+xml"/><ttl>60</ttl><item><title><![CDATA[CSS Wishlist 2018]]></title><description><![CDATA[<blockquote>
  <p>Last year I wrote up a wishlist of CSS features I'd love to see make there way into browsers, but it never got released. This year I've come back to it and thought I'd release it with notes of where we got to over the last year. </p>
</blockquote>

<p><em>Got any ideas</em></p>]]></description><link>https://blog.stapps.io/css-wishlist-2018/</link><guid isPermaLink="false">c000ceb9-2eb8-4ea8-9263-51fc21f844a7</guid><category><![CDATA[Design]]></category><category><![CDATA[CSS]]></category><dc:creator><![CDATA[Andrew Stilliard]]></dc:creator><pubDate>Mon, 15 Jan 2018 23:00:00 GMT</pubDate><content:encoded><![CDATA[<blockquote>
  <p>Last year I wrote up a wishlist of CSS features I'd love to see make there way into browsers, but it never got released. This year I've come back to it and thought I'd release it with notes of where we got to over the last year. </p>
</blockquote>

<p><em>Got any ideas not listed? Let's talk about them in the comments.</em></p>

<p>My focus is on functionality/effects we can already achieve, but in less than ideal ways. Luckily, many of these are things that are coming soon!</p>

<h3 id="elementmediaqueries">Element media queries</h3>

<p>Like media queries but at an element / selector level. This makes CSS snippets much more portable. <br>
e.g. <a href="http://marcj.github.io/css-element-queries/">http://marcj.github.io/css-element-queries/</a> <br>
I'd also started a simple project for this back in 2012 but it used jQuery <a href="https://github.com/stilliard/jquery-responsive-containers">https://github.com/stilliard/jquery-responsive-containers</a> <br>
Which was inspired by this post from 2011: <a href="http://blog.andyhume.net/responsive-containers/">http://blog.andyhume.net/responsive-containers/</a> <br>
Looking at how CSS-Element-Queries does this, that's pretty close to perfect but I'd still love to see this built in as then sharing modules that auto adjust to the area you give them is amazing!</p>

<blockquote>
  <p><strong>Update:</strong> There's been a lot more talk about this over the last year. <br>
  Here's a great write-up of <a href="https://webdesign.tutsplus.com/articles/the-current-state-of-element-queries--cms-29690">the current state of Element Queries</a>.</p>
</blockquote>

<h3 id="acsspropertytohandleclearfix">A CSS property to handle clearfix</h3>

<p>Commonly solved issues with classes are making their way to official css property support. Such as the flexbox and css grid extensions are allowing us to go away from having to use grid classes. This new breed of properties stays more true to an original vision of CSS as being a layer over the content without needing much change to the original content to apply it. <br>
The new display: flow-root; property gives us the .clearfix hack without needing to add class="clearfix" to all elements needing it. Sweet!</p>

<p>Read More:</p>

<ul>
<li><a href="https://rachelandrew.co.uk/archives/2017/01/24/the-end-of-the-clearfix-hack/">https://rachelandrew.co.uk/archives/2017/01/24/the-end-of-the-clearfix-hack/</a></li>
</ul>

<blockquote>
  <p><strong>Update:</strong> In 2017 we saw Chrome &amp; Firefox implement this! -> <a href="https://caniuse.com/#search=flow-root">https://caniuse.com/#search=flow-root</a></p>
</blockquote>

<p><img src="https://blog.stapps.io/content/images/2017/03/supersweet.jpg" alt=""></p>

<h3 id="sectiondepthselectorthatunderstandsdocumentoutline">Section depth selector that understands document outline</h3>

<p>e.g. first<code>&lt;section&gt;&lt;h1&gt;</code> vs 2nd level etc. <br>
Similar to <a href="https://github.com/w3c/html/issues/774#issuecomment-278404905">https://github.com/w3c/html/issues/774#issuecomment-278404905</a> <br>
<a href="https://css-tricks.com/document-outline-dilemma/">https://css-tricks.com/document-outline-dilemma/</a></p>

<blockquote>
  <p><strong>Update:</strong> Personally this has been less of a concern for me over the last year.</p>
</blockquote>

<h3 id="matchesanypseudoclass">:matches() / :any() pseudo-class</h3>

<p>The ability to write a single selector that handles multiple possible inner values is very powerful. <br>
A simple example would be table styling for td &amp; th elements. <br>
Rather than:  </p>

<pre><code>.fancy-table th,
.fancy-table td { ... }
</code></pre>

<p>We could write:  </p>

<pre><code>.fancy-table :matches(th, td) { ... }
</code></pre>

<p><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/:any">https://developer.mozilla.org/en-US/docs/Web/CSS/:any</a></p>

<blockquote>
  <p><strong>Update:</strong> Safari is currently the only browser to properly support this but fingers crossed for better support this year. Great write up of this feature on CSS-Tricks -> <a href="https://css-tricks.com/almanac/selectors/m/matches/">https://css-tricks.com/almanac/selectors/m/matches/</a></p>
</blockquote>

<h3 id="hasparentpseudoclass">:has() / parent pseudo-class</h3>

<p>Ever wanted to select an element that contains another? <br>
You could select list items with sub lists inside to style, or style links that have images inside differently to other links. <br>
<a href="https://developer.mozilla.org/en-US/docs/Web/CSS/:has">https://developer.mozilla.org/en-US/docs/Web/CSS/:has</a></p>

<blockquote>
  <p><strong>Update:</strong> Still no support for this.</p>
</blockquote>

<h3 id="caseinsensitiveattributeselectors">Case insensitive attribute selectors</h3>

<p>This always catches me out, attribute selectors are case sensitive by default which means if you're not sure of the case you'll either need to repeat your rule for different cases or come up with another solution, while with the feature you can simply write:  </p>

<pre><code>a[href^="http:" i] { ... }  
</code></pre>

<p><a href="http://css4.rocks/case-sensitivity-selector.php">http://css4.rocks/case-sensitivity-selector.php</a> <br>
<a href="https://caniuse.com/#search=Case">https://caniuse.com/#search=Case</a></p>

<blockquote>
  <p><strong>Update:</strong> This has actually been available in Chrome, Firefox &amp; Safari for a while now but still no Edge support.</p>
</blockquote>

<h3 id="blank">:blank</h3>

<p>A more useful :empty in my opinion. <br>
Where :empty selects where the element is empty, exactly as it says on the tin. Except, sometimes, empty is too strict. Blank space seems like it's empty but that's finally covered with the new :blank pseudo selector. <br>
<a href="http://css4.rocks/selectors-level-4/tree-structural-pseudo-classes.php">http://css4.rocks/selectors-level-4/tree-structural-pseudo-classes.php</a></p>

<blockquote>
  <p><strong>Update:</strong> No news here, but another fantastic write up of this on CSS Tricks -> <a href="https://css-tricks.com/almanac/selectors/b/blank/">https://css-tricks.com/almanac/selectors/b/blank/</a></p>
</blockquote>

<h3 id="extend">@extend</h3>

<p>Last but certainly not least, ability to extend from other classes. One of the main reasons we either reach for a CSS preprocess or dive into the HTML and throw a few classes on each element is our need to re-use modular styled css components. <br>
<a href="https://css-tricks.com/the-extend-concept/">https://css-tricks.com/the-extend-concept/</a> <br>
<a href="https://tabatkins.github.io/specs/css-extend-rule/">https://tabatkins.github.io/specs/css-extend-rule/</a></p>

<blockquote>
  <p><strong>Update:</strong> This is probably the feature I'm most excited to see some day, but no news on this yet.</p>
</blockquote>

<h4 id="whatsonyourcsswishlistforthisyear">What's on your CSS wishlist for this year?</h4>]]></content:encoded></item><item><title><![CDATA[Simple CSS Timeline using clear to avoid item collisions]]></title><description><![CDATA[<p>It's easy to forget some of the simplest CSS properties are secret super heroes.</p>

<p>The property of the day for me is <code>clear</code>.</p>

<p>Here's an example using it to make sure we don't have sections floating to the wrong side as each timeline area is a list item in a</p>]]></description><link>https://blog.stapps.io/simple-css-timeline-with-clear-to-avoid-collisions/</link><guid isPermaLink="false">33382310-1f51-4fef-ad7f-1a4a67900735</guid><category><![CDATA[CSS]]></category><category><![CDATA[Design]]></category><dc:creator><![CDATA[Andrew Stilliard]]></dc:creator><pubDate>Mon, 08 Jan 2018 20:00:00 GMT</pubDate><content:encoded><![CDATA[<p>It's easy to forget some of the simplest CSS properties are secret super heroes.</p>

<p>The property of the day for me is <code>clear</code>.</p>

<p>Here's an example using it to make sure we don't have sections floating to the wrong side as each timeline area is a list item in a single unordered list. You can see it prevent collisions as you resize the browser window it'll push down the items to the other side so that you don't get items on the left overtake items on the right and appear in the wrong order.</p>

<p><em>Check the code comments to see how it's built.</em></p>

<p data-height="800" data-theme-id="0" data-slug-hash="gLYwMK" data-default-tab="result" data-user="stilliard" data-embed-version="2" data-pen-title="CSS 2 Column Timeline - With ability to choose which side each item shows on (plus a way to join 2 together)" class="codepen">See the Pen <a href="http://codepen.io/stilliard/pen/gLYwMK/">CSS 2 Column Timeline - With ability to choose which side each item shows on (plus a way to join 2 together)</a> by Andrew Stilliard (<a href="http://codepen.io/stilliard">@stilliard</a>) on <a href="http://codepen.io">CodePen</a>.</p>  

<script async src="https://production-assets.codepen.io/assets/embed/ei.js"></script>]]></content:encoded></item><item><title><![CDATA[CSS structure & anti patterns (Part 2)]]></title><description><![CDATA[<p>This Is Part 2, you may want to read <strong><a href="https://blog.stapps.io/css-structure-anti-patterns-part1">Part 1 on CSS anti patterns first</a></strong></p>

<h2 id="howtostructureyourcss">How to structure your css.</h2>

<p>This is not to say this is the perfect way to work. But it's the way I've been working for years and has really helped me. Inspired by others</p>]]></description><link>https://blog.stapps.io/css-structure-anti-patterns-part2/</link><guid isPermaLink="false">c2077e88-beff-4ba3-a8ee-245a055fee7a</guid><category><![CDATA[CSS]]></category><category><![CDATA[Design]]></category><category><![CDATA[REC]]></category><category><![CDATA[Responsive]]></category><category><![CDATA[patterns]]></category><dc:creator><![CDATA[Andrew Stilliard]]></dc:creator><pubDate>Wed, 08 Jun 2016 15:07:19 GMT</pubDate><content:encoded><![CDATA[<p>This Is Part 2, you may want to read <strong><a href="https://blog.stapps.io/css-structure-anti-patterns-part1">Part 1 on CSS anti patterns first</a></strong></p>

<h2 id="howtostructureyourcss">How to structure your css.</h2>

<p>This is not to say this is the perfect way to work. But it's the way I've been working for years and has really helped me. Inspired by others and by the book <a href="https://smacss.com/">SMACSS</a>.</p>

<h3 id="thinkinginmodules">Thinking in modules.</h3>

<p>Modular design for me means to separate logical pieces of code for maintainability and reuse. </p>

<p>If everything you do is in one big file, no comments or anything separating parts, all code is very specific and cannot be easily re-used, then it'll be difficult to maintain. </p>

<p>Working in modules you'll find you work faster and more precisely: you'll become a ninja at making quick changes for the client and the client will love you, or at least you'll be happier with your own code. </p>

<h3 id="exampletime">Example time:</h3>

<p>Here's some CSS maybe you've written before. Some text node colors, some buttons have a fancy style (I'll call that fancy-button for later), some text content areas with minor changes between them and a couple minor tweaks on a larger screen. </p>

<p><em>This will be a long code example but feel free to comment if you have any questions about it</em>/</p>

<p>Original code / what not to do:</p>

<p><strong># File: site.css</strong></p>

<pre><code class="language-css">h1 { color: #444444; }  
h2 { color: #444444; }  
h3 { color: #444444; }  
p { color: #000000; }

.header-search .button {
    background: orange;
    color: #FFF;
    padding: 1em;
}
.sidebar-filter #submit-button {
    background: orange;
    color: #FFF;
font-size: 20px;  
    padding: 1em;
}
#contact-form-button {
    padding: 1em;
}
.home-page-content {
  padding: 1em;
  *padding: 15px;
  border-top: 5px solid red;
}
.home-page-content h1 {
   color: red;
}
.about-page-content {
  padding: 1em;
  *padding: 15px;
 border-top: 5px solid blue;
}
.about-page-content h1{
color: blue;  
}

@media screen and (min-width: 35.5em) {
  h1, h2, h3 {
    border-bottom: 1px solid #CCC;
  }
  .home-page-content {
    margin: 0 1em;
  }
  .about-page-content {
    margin: 0 1em;
  }
}
</code></pre>

<p>To me, you can work with it, but it's not ideal, and as that grows it will get unmanageable. Lets separate it out to more modular files: <em>(The following files would be included/imported into your site.css file)</em> <br>
I'll comment above each part with the file name, and then under it will be notes on what changed and why its better. </p>

<p><strong># File: base.css</strong></p>

<pre><code class="language-css">/* ===== Base styles for site ===== */

/* --- main font colors --- */
h1,  
h2,  
h3 {  
    color: #444;
}
p {  
    color: #000;
}

/* --- default button style --- */
button,  
input[type="button"],  
input[type="submit"],  
.button {
    padding: 1em;
}

/* first breakpoint */
@media screen and (min-width: 35.5em) {
    h1,
    h2,
    h3 {
        /* add a clean border under headings */
        border-bottom: 1px solid #CCC;
    }
}
</code></pre>

<p>The above shows base styles for making the page, e.g. fonts, button styles etc.. <br>
Separating out the base styles like this helps you quickly find default style applied to all elements. It should be fairly simple, anything more complex should be it's own module or layout file. </p>

<p><strong># File: modules/fancy-button.css</strong></p>

<pre><code class="language-css ">/* ===== fancier designed buttons ===== */

.fancy-button {
    background: orange;
    color: #FFF;
}

/* --- fancy button mods --- */

/* larger text version (could be abstracted further) */
.fancy-button-large {
    font-size: 160%;
}
</code></pre>

<p>This module for the fancy-buttons assumes you have access to change the HTML, if that's not the case you could make the same module file, but instead of <code>.fancy-button</code> and <code>.fancy-button-large</code> you can comma separate the selectors like so:  </p>

<pre><code class="language-css ">/* ===== fancier designed buttons ===== */

.header-search .button,
#submit-button {
    background: orange;
    color: #FFF;
}

/* --- fancy button mods --- */

/* larger text version (could be abstracted further) */
#contact-form-button {
    font-size: 160%;
}
</code></pre>

<p>This keeps it modular in it's design, it's only the name of the selectors used that isn't as organised so that's still awesome. </p>

<p><em>Also notice <code>.sidebar-filter #submit-button</code> has been changed to <code>#submit-button</code> as an ID should be unique and the class prefix is therefore redundant.</em></p>

<p><strong># File: modules/page-content.css</strong></p>

<pre><code class="language-css ">/* ===== Page content areas styling ===== */

.page-content {
    border-top: 5px solid;
    padding: 1em;
    *padding: 15px; /* slight IE hack needed to account for a margin bug */
}

@media screen and (min-width: 35.5em) {
    .page-content {
        /* space out the content a bit when available */
        margin: 1em;
    }
}
</code></pre>

<p>This offers a generic module for page content, which could quickly be applied to all pages without need for copy and paste. As the design grows, this would be much more important. </p>

<p><strong># File: pages.css</strong></p>

<pre><code class="language-css ">/* ===== Specific page mods ===== */

/* --- home page (red theme) --- */

.home-page-content {
    border-top-color: red;
}
.home-page-content h1 {
    color: red;
}

/* --- about page (blue theme) --- */

.about-page-content {
    border-top-color: blue;
}
.about-page-content h1{
    color: blue;
}
</code></pre>

<p>This layout file for specific pages offers per page differences, which are now very minor and get down to exactly what is different, making maintaining and debugging much easier. </p>

<p>Once you've written your code like this, go back over and review it. Spending a little time re-reading, improving and re-factoring your own code is worth it. You'll learn more about the way you write code, patterns you could reuse. <br>
Using dev tools, you can look over some of your code too, specifically you can inspect the elements you've been working on and view the style tab. Here if you see that code is being overridden a lot of the time with large amounts crossed out then you could probably re-write the code, or re-think the way that element works and the css modules you have selectors to it. </p>

<p>Check out these resources on truly making your css skills awesome!</p>

<ul>
<li><a href="https://smacss.com/book/">https://smacss.com/book/</a></li>
<li><a href="http://maintainablecss.com/">http://maintainablecss.com/</a></li>
</ul>

<p>Also I've previously wrote about a <a href="https://blog.stapps.io/reading-list-for-modern-web-design/">reading list for modern web design</a>.</p>

<h3 id="somebestpracticestotakeaway">Some best practices to take away.</h3>

<ul>
<li>Think in modules.</li>
<li>Take pride in your code, format it well.</li>
<li>Understand what your code does and why and avoid magic.</li>
<li>Use comments and files to organise code and additional comments to explain why some things are needed.</li>
<li>Avoid specific browser hacks.</li>
</ul>

<p>My closing comment is: invest in your knowledge now, your future self will thank you. </p>

<p>If you have any questions? Or found a bug ;), please leave me a comment and I'll try to reply as quick as I can. </p>]]></content:encoded></item><item><title><![CDATA[CSS structure & anti patterns (Part 1)]]></title><description><![CDATA[<blockquote>
  <p>"CSS is quick to learn, but takes years to master". <br>
  - Not sure where I first read this but it's still true today. </p>
</blockquote>

<p>It's difficult to give years of experience as training. People expect designers to know things after a day of training that you'd normally learn with months or</p>]]></description><link>https://blog.stapps.io/css-structure-anti-patterns-part1/</link><guid isPermaLink="false">500dcc73-448f-4c96-85cc-d3cb3a22eca8</guid><category><![CDATA[CSS]]></category><category><![CDATA[Design]]></category><category><![CDATA[REC]]></category><category><![CDATA[Responsive]]></category><category><![CDATA[patterns]]></category><dc:creator><![CDATA[Andrew Stilliard]]></dc:creator><pubDate>Wed, 08 Jun 2016 15:06:45 GMT</pubDate><content:encoded><![CDATA[<blockquote>
  <p>"CSS is quick to learn, but takes years to master". <br>
  - Not sure where I first read this but it's still true today. </p>
</blockquote>

<p>It's difficult to give years of experience as training. People expect designers to know things after a day of training that you'd normally learn with months or years of experience. Some patterns I'll talk about in this post only reveal themselves as bad decisions later on. The best I can do is show you mistakes I've made, and other designers have made. Hopefully you can learn from where we went wrong ;). </p>

<h2 id="antipatterns">Anti-patterns.</h2>

<p><a href="https://en.wikipedia.org/wiki/Anti-pattern">Anti-patterns explained</a>: What not to do and why. <br>
<em>Found something controversial? Leave me a comment and we can discuss it further :).</em></p>

<h3 id="1avoidseparatingstylesforthesamethings">1. Avoid separating styles for the same things.</h3>

<p>A case of this I've seen before is separating into different device groups, e.g. mobile.css, tablet.css, desktop.css. <br>
Similar used to be done on sites with a ie7.css file etc. </p>

<p>On the face of it, it sounds like a good idea. Everything is separated out, but it's separated in the wrong way and ultimately it's a naive approach.  It often encourages duplication because the blocks of style are separated. This makes it difficult to track down specific styles for an element as they then span multiple files, which often ends in code being copied for each file as it's forgotten it's already set and inherited.  </p>

<p>Instead my advice is to build specific module css files, we'll come back to how you do this later in the post. </p>

<h3 id="2dontcopypastechunksofcode">2. Don't copy paste chunks of code.</h3>

<p>This one seems obvious when thinking about most coding languages, but maybe not so with your css. <br>
While working on your css, think about how some styles can be joined together. Remember you can join css selectors with commas so code such as:  </p>

<pre><code class="language-css">.banner p {
  margin: 0 0.5em;
  color: #222;
}
.banner h3 {
  margin: 0 0.5em;
  color: #444;
}
</code></pre>

<p>Can become this, which is much easier to maintain and keep consistent:  </p>

<pre><code class="language-css">/* ===== Banner module ===== */
.banner h3,
.banner p {
  margin: 0 0.5em;
}
.banner p {
  color: #222;
}
.banner h3 {
  color: #444;
}
</code></pre>

<p>Yes the above code is longer but maintainability is what we are aiming for. </p>

<h3 id="3avoidnamingclassesjustbytheircurrentproperties">3. Avoid naming classes just by their current properties</h3>

<p>Such as <code>.red</code>, because what is red? Will it always be red, what if we change to green... Do we go round everywhere changing the class name to green, or do we change the property and will red now mean green. <br>
Ok this one seems obvious especially with my example, but often when designing more modular css you can get carried away and go too abstract to the point of classes for everything like <code>.red, .font-serif, .text-align-right</code> which leads to even worse code. </p>

<p>Instead, try to think of what the element is, such as a block on the sidebar for latest news. you could have a module called <code>.latest-news</code>, but then you could go further and make that a generic <code>.sidebar-block</code> which can be reused for all your sidebar blocks. On top of this you could then still have <code>.latest-news</code> or <code>.sidebar-block-latest-news</code> for specific extra changes on top of the default <code>.sidebar-block</code>, but consider how this could be shared with other blocks on the page too. </p>

<h3 id="4dontjustslapimportantonit">4. Don't just slap !important on it ;)</h3>

<p>I find <code>!important</code> is very rarely needed, but too often designers try a selector, find it doesn't work and is somewhere overridden. So they give up and slap an <code>!important</code> on it. <br>
Learn about how selectors and inheritance works! <br>
<img src="https://blog.stapps.io/content/images/2016/06/css-specificity-meme.jpg" alt=""></p>

<p>The topic of CSS specificity deserves its own post, luckily there's several out there that do great jobs. <a href="https://web.archive.org/web/20140302025313/http://www.stuffandnonsense.co.uk/archives/css_specificity_wars.html">Specificity Wars</a> is a fun introduction to it, along with articles on <a href="https://css-tricks.com/specifics-on-css-specificity/">CSS-Tricks</a>, <a href="https://www.smashingmagazine.com/2007/07/css-specificity-things-you-should-know/">Smashing Magazine</a> and the <a href="https://developer.mozilla.org/en/docs/Web/CSS/Specificity">Mozilla Developer Network</a></p>

<p>Tools such as <a href="http://specificity.keegan.st/">Specificity Calculator</a> are also helpful for you to work out why a selector is more specific. </p>

<p>If you don't bother to learn about it, you'll be forever doomed to fight your forest fire of !importants later. </p>

<h3 id="5readthesourcecode">5. Read the source code!</h3>

<p>While you're working in systems or you have build scripts that generate a main/master css file from all your other files, don't be afraid to jump in and take a look to work out why an issue is happening or to check your code is being built the way you expect. <br>
Systems sometimes also have to place some css in page, maybe because of their current module architectures, whatever the reason, if that's the system you work within, you'd better be confident you can find where some css comes from. (Luckily dev tools will tell you if css is from a file or on the page). CSS like this deserves care and attention to override. The source code wont lie to you. </p>

<h3 id="6devtoolsisyourbestfriendknowitinsideout">6. Dev tools is your best friend, know it inside out!</h3>

<p>Better than reading the source code (though that's still important) is using dev tools. </p>

<p>You need to learn dev tools for the browser you're working on. No two ways about it, go learn them now, at least the inspector :). <br>
Here's a link for <a href="https://www.codeschool.com/courses/discover-devtools">Chrome</a> and <a href="https://developer.mozilla.org/en-US/docs/Tools">Firefox</a>. </p>

<p>The inspector will save you minutes, hours, days, weeks and more in trial and error. </p>

<h3 id="7avoidfixingheightwidthswhenyoucan">7. Avoid fixing height &amp; widths when you can.</h3>

<p>This often happens when you have a mockup in photoshop and then you try to match the exact dimensions, which is great, except that this likely wont work as the screen size decreases. <br>
Try to make your modules fluid, then they can fit into a grid or take the widths of the container. Patterns like this are core to responsive design. </p>

<h3 id="8designingfordesktopdownormobileup">8. Designing for desktop down or mobile up?</h3>

<p>Instead try to think of mobile and up where you can. Often this will lead to simpler css breakpoints and less cruft around content. With this you can think about what's really needed in the design, without too much extra that on mobile wouldn't make sense. <br>
Read more on <a href="http://zurb.com/word/mobile-first">Mobile First here</a>, or check out Luke Wroblewski's <a href="https://abookapart.com/products/mobile-first">Mobile First book</a></p>

<h3 id="9clearfixthecontainersofyourfloats">9. Clearfix the containers of your floats.</h3>

<p>The clearfix class is somewhat magical, but really it's very simple. There's a few implimentations of it, but generally the practice involves adding a hidden pseudo element at the bottom of the content that clears the floats. <br>
Sometimes you'll find this called ".clearfix", or ".cf". <br>
<a href="http://nicolasgallagher.com/micro-clearfix-hack/">Read more about one great example of this here</a>
<img src="https://blog.stapps.io/content/images/2016/06/css-floats-y-u-no-clear-yourself.jpg" alt=""></p>

<h3 id="10avoidmagic">10. Avoid magic.</h3>

<p>Maybe this seems weird when I just said clearfix is magic. But clearfix is simple when you understand how it works. Try to avoid code that seems to magically make things better if you don't understand why. Otherwise, how can you trust it will always work? How do you customize around it without breaking it? <br>
Clearfix is a great example of this as if you did not understand how it works, you may try and add a pseudo element after it in your own css and find the clearfix no longer works. </p>

<h3 id="11usetheappropriatemethodforlayout">11. Use the appropriate method for layout.</h3>

<p>Often grids or inside blocks instead of floats for layout. <br>
E.g. if you have 3 columns of evenly sized text next to each other, a grid is perfect. If you have a navigation list or boxes next to each other that are sized by their content, normal grids would be a terrible solution. Inline blocks are best for that as they are sized based on the content. If you have a title with a link to the right, float the link to the side, grids again are not really the best for that. There's no one way of doing things right, don't just follow one specific method, think about how it looks and what would really make the most sense. It may take a little longer to stop and think about each part. But if you do it will save you so many headaches later.</p>

<h3 id="12dontstyleeverythingasunique">12. Don't style every thing as unique.</h3>

<p>Try to reuse modules, again this is not to copy and paste, instead create a generic look for basic elements within content, and then create re-usable classes / modules for applying different styles. </p>

<h3 id="13optforrelativemeasurementsoverfixedwhenyoucan">13. Opt for relative measurements over fixed when you can.</h3>

<p>Simple one, relative measurements such as em, %, rem etc. are more flexible and will often work better with your responsive design than px. <br>
Not that you should cast aside px as a dirty relic, instead, consider the best measurement for the use case. Often in responsive design this will be relative measurements though. </p>

<h3 id="14remembernotallinteractionsrequirejquery">14. Remember not all interactions require jQuery.</h3>

<p><img src="https://blog.stapps.io/content/images/2016/06/css-can-do-that.jpg" alt=""></p>

<p><a href="https://developer.mozilla.org/en/docs/Web/CSS/:hover">:hover</a>, <a href="https://developer.mozilla.org/en/docs/Web/CSS/:active">:active</a>, <a href="https://developer.mozilla.org/en/docs/Web/CSS/:focus">:focus</a> and <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-classes">more</a>. Learn them, wield them like the awesome tools they are. </p>

<p>You probably already use these and know them well. But if you're working on something in javascript, it's easy to forget and use jquery or similar to do it instead.</p>

<h3 id="15combineproperties">15. Combine properties</h3>

<p>Properties such as <code>font</code> and <code>background</code> can be combined. It's worth using the combined versions for simplicity such as:</p>

<pre><code class="language-css">background-color: rebeccapurple;  
background-image: url(/images/logo.png);  
background-repeat: no-repeat;  
background-position: top left;  
</code></pre>

<p>Could be:  </p>

<pre><code class="language-css">background: rebeccapurple url(/images/logo.png) no-repeat top left;  
</code></pre>

<h3 id="16avoidunnecessarilylongselectors">16. Avoid unnecessarily long selectors</h3>

<p>Sure, referencing <code>body #content .sidebar a</code> works, but would <code>.sidebar a</code> work just as well?</p>

<h3 id="17alwaystestyourideas">17. Always test your ideas.</h3>

<p>Developer tools allow us to test our ideas live, why wait to compile or ftp a file to a server to test your idea for a fix. Change it live in the developer tools and you'll have instant feedback.</p>

<h3 id="18browsertesttoo">18. Browser test too!</h3>

<p>With complex modules, check ideas for them as you're going in browsers you think may be problematic, this will make things a lot easier when you return to fully browser check it later. </p>

<p><a href="https://blog.stapps.io/modern-browser-testing/">I've written more about browser testing here</a>.</p>

<p>You can also use <a href="http://caniuse.com/">Can I Use...</a> to find out browser support for new CSS properties etc. to find which browsers are likely problematic to start with. </p>

<p><img src="https://blog.stapps.io/content/images/2016/06/css-i-see-problem.jpg" alt=""></p>

<h3 id="19avoidspecificbrowserhacks">19. Avoid specific browser hacks.</h3>

<p>Try to find the cause of the problem, rather than a quick fix that may lead to further problems. You may find it's a problem in your CSS and you can work around a problem easier than just hacking it. <br>
If you have to use a <a href="http://www.browserhacks.com/">hack</a>, explain why in a comment, make sure that in a month when you return to this project you'll know why you added it in. </p>

<h3 id="20formatyourcssinaclearanduniformway">20. Format your CSS in a clear and uniform way.</h3>

<p>This one is a somewhat personal preference, but I try to always write CSS in the same way. I use 4 spaces for indentation (some people use tabs), I separate each selector onto a new line as I believe selectors are kind of the most important part of the css definition, and each property onto a new line.</p>

<p>You can see more of my style choices for CSS in the following post.</p>

<p><strong>Can you expand this list past 20? Leave a comment with your own anti patterns or advice.</strong></p>

<hr>

<p>Enough with what not to do...  </p>

<h3 id="continuetopart2forhowtostructureyourcssandmoretipscssstructureantipatternspart2"><a href="https://blog.stapps.io/css-structure-anti-patterns-part2">Continue to Part 2 for how to structure your CSS and more tips.</a></h3>

<hr>

<p>If you disagree with this list or do you have your own suggestions? Leave a comment below and I'll try to reply quickly.</p>]]></content:encoded></item><item><title><![CDATA[Reading list for modern web design]]></title><description><![CDATA[<p>Over the years I've found some books on web design to be just as important as posts online. Here's a short post on books I've read, enjoyed and think are worth while reading in terms of web design today. </p>

<p>These books are fairly up to date but the methods used</p>]]></description><link>https://blog.stapps.io/reading-list-for-modern-web-design/</link><guid isPermaLink="false">00b1f4c7-2e89-4dbc-8b8e-19c77fdad321</guid><category><![CDATA[Responsive]]></category><category><![CDATA[Design]]></category><category><![CDATA[Development]]></category><category><![CDATA[CSS]]></category><category><![CDATA[javascript]]></category><category><![CDATA[REC]]></category><category><![CDATA[Books]]></category><dc:creator><![CDATA[Andrew Stilliard]]></dc:creator><pubDate>Sat, 04 Jun 2016 16:13:00 GMT</pubDate><content:encoded><![CDATA[<p>Over the years I've found some books on web design to be just as important as posts online. Here's a short post on books I've read, enjoyed and think are worth while reading in terms of web design today. </p>

<p>These books are fairly up to date but the methods used are solid and still valid into tomorrow. <br>
By no means am I saying "read these and you're ready", or a definitive list of books I've read or think you should read. But if you're looking for books to tune your skills, this list may help. </p>

<p>I'd also encourage you to leave comments below to share books on web design you've enjoyed and have helped you too. </p>

<h2 id="books">Books</h2>

<div class="books-container">

<p>In case you've not stumbled onto this gem before, <a href="http://alistapart.com/">A List Apart</a> is a great source of useful information. Their series of short books on  
<a href="https://abookapart.com/">A Book Apart</a> offer great core skills such as:</p>

<!-- HTML5 book -->  
<div class="media book-media">  
  <a href="https://html5forwebdesigners.com/" class="img">
<img src="https://blog.stapps.io/content/images/2016/06/html5-for-web-designers-book.png" alt="">
  </a>
  <div class="bd">
    <h3 class="title">HTML5 for web designers by Jeremy Keith.</h3>
    <p>Looking to get up to speed on HTML5? A core skill of modern web design is being able to use these new HTML elements with purpose.</p>
  </div>
</div>

<!-- CSS3 book -->  

<div class="media book-media">  
  <a href="https://abookapart.com/products/css3-for-web-designers" class="img">
<img src="https://blog.stapps.io/content/images/2016/06/css3-for-web-designers-book.jpg" alt="">
  </a>
  <div class="bd">
    <h3 class="title">CSS3 for web designers by Dan Cederholm.</h3>
    <p>Also a core tool on your belt is CSS3. Techniques such as rounded corners (with border-radius) and background gradients and more are all common place in modern design. These are made simpler with this book.</p>
  </div>
</div>

<!-- Responsive web design book -->  

<div class="media book-media">  
  <a href="https://abookapart.com/products/responsive-web-design" class="img">
<img src="https://blog.stapps.io/content/images/2016/06/responsive-web-design-book.jpg" alt="">
  </a>
  <div class="bd">
    <h3 class="title">Responsive web design by Ethan Marcotte.</h3>
    <p>A brilliant intro to responsive web design, very useful techniques from the guy that coined the term "responsive web design"!</p>
  </div>
</div>

<p>The above are just 3 of their books, it's worth checking out <a href="https://abookapart.com/products/">more</a>. Hopefully this is a nice taste of books they offer and should help you learn the core skills needed to get started with modern web design.</p>

<p>On to other ranges of books, the following focus more on techniques, patterns, usability and inspiration.</p>

<!-- SMACSS book -->  

<div class="media book-media">  
  <a href="https://smacss.com/" class="img">
<img src="https://blog.stapps.io/content/images/2016/06/smacss-book.jpg" alt="">
  </a>
  <div class="bd">
    <h3 class="title">Scalable and Modular Architecture for CSS (SMACSS) by Jonathan Snook.</h3>
    <p>Another short book but front to back a great read full of useful info on writing and structuring css.
<br>The patterns he talks about are simple and easy to follow, but make all the difference in creating maintainable css designs.  
<br><em>I can't recommend this book enough.</em></p>  
  </div>
</div>

<!-- Smashing magazine book -->  

<div class="media book-media">  
  <a href="https://shop.smashingmagazine.com/products/the-smashing-book-1-digital-edition" class="img">
<img src="https://blog.stapps.io/content/images/2016/06/smashing-mag-book.jpg" alt="">
  </a>
  <div class="bd">
    <h3 class="title">Any from the "Smashing Book" series.</h3>
    <p>Full of the latest modern techniques, inspiring articles and more. 
  <br>Personally read books 1 & 3 but I'd bet the 2nd is worth wile too. 
  <br>The <a href="https://www.smashingmagazine.com/">Smashing Magazine</a> website has been a constant source of useful info and inspiration for years. </p>
  </div>
</div>

<!-- Don't make me think book -->  

<div class="media book-media">  
  <a href="https://www.amazon.co.uk/dp/0321965515/ref=pd_lpo_sbs_dp_ss_1?pf_rd_p=569136327&pf_rd_s=lpo-top-stripe&pf_rd_t=201&pf_rd_i=0321344758&pf_rd_m=A3P5ROKL5A1OLE&pf_rd_r=BSZR6QXQ8QGC19K6K9TC" class="img">
<img src="https://blog.stapps.io/content/images/2016/06/dont-make-me-think-book.jpg" alt="">
  </a>
  <div class="bd">
    <h3 class="title">Don't Make Me Think: A Common Sense Approach to Web Usability by Steve Krug.</h3>
    <p>If being able to build a site is the first step, then building it right is the second. This book goes over common web usability and is definitely worth the read.</p>
  </div>
</div>

<p>Ready to dive into Javascript?</p>

<!-- Eloquent JavaScript book -->  

<div class="media book-media">  
  <a href="http://eloquentjavascript.net/" class="img">
<img src="https://blog.stapps.io/content/images/2016/06/eloquent-javascript.jpg" alt="">
  </a>
  <div class="bd">
    <h3 class="title">Eloquent JavaScript: A Modern Introduction to Programming by Marijn Haverbeke.</h3>
    <p>This book came out around 2011 but I wish it had been there back in 2008 when I first started Javascript. It's useful for getting started with Javascript, or fine tuning your skills and filling in any blanks. </p>
  </div>
</div>

<!-- Javascript good parts book -->  

<div class="media book-media">  
  <a href="http://eloquentjavascript.net/" class="img">
<img src="https://blog.stapps.io/content/images/2016/06/js-good-parts.gif" alt="">
  </a>
  <div class="bd">
    <h3 class="title">JavaScript: The Good Parts by Douglas Crockford.</h3>
    <p>Douglas Crockford gives a great run through of the language and the syntax to give you a solid understanding of programming with it.</p>
  </div>
</div>

<p>Looking for something a bit deeper? Something for improving your developer skills?</p>

<!-- Eloquent JavaScript book -->  

<div class="media book-media">  
  <a href="https://pragprog.com/book/tpp/the-pragmatic-programmer" class="img">
<img src="https://blog.stapps.io/content/images/2016/06/pragmatic-programmer.jpg" alt="">
  </a>
  <div class="bd">
    <h3 class="title">The Pragmatic Programmer:
From Journeyman to Master by Andrew Hunt and David Thomas.</h3>  
    <p>If you're interested in levelling up your skills then this book may be for you. It covers patterns, methodology, solid ideas and tools to take your code to the next level. It's also surprising easy to follow as it's often ultimately about common sense. </p>
  </div>
</div>

<p></p></div><p></p>

<h2 id="newsletters">Newsletters</h2>

<p><em>I like a good newsletter or 10 for keeping up to date on the modern web.</em>
They're one way that's really helped me stay up to date especially over the past year. Maybe they will work for you too.</p>

<p>Sitepoint's <a href="https://www.sitepoint.com/versioning/email">Versioning</a> newsletter is worth subscribing to if you're interested in a daily digest of latest web news. <br>
Though this can be too frequent, <a href="https://web-design-weekly.com/">Web Design Weekly</a>, or <a href="http://responsivedesignweekly.com/">Responsive Design Weekly</a> are 2 great weekly newsletters also. <br>
There are many others like this such as HTML5 Weekly, CSS Weekly, Javascript Weekly and eWebDesign newsletter. <br>
My advice is to pick one and see if you like it. If not you can always un-subscribe :).  </p>

<p>If you're working on an <a href="http://www.reallyeasycart.co.uk/">REC</a>, here's some more links that may be of use for keeping up to date: <a href="http://design.reallyeasycart.co.uk/up-to-date.html">http://design.reallyeasycart.co.uk/up-to-date.html</a></p>

<p>Please leave comments with books or posts online you'd recommend :), I'd love to hear about books that you've read and have helped you, along with inspiration for what I should read next.  </p>]]></content:encoded></item><item><title><![CDATA[Modern browser testing]]></title><description><![CDATA[<p>Browser testing has come along way, these aren't the days of IE5/6 double margin bugs or old IE hasLayout problems. <br>
We still battle some bugs but by large they are much less common to run into for day to day design. However this doesn't mean you don't need to</p>]]></description><link>https://blog.stapps.io/modern-browser-testing/</link><guid isPermaLink="false">5b2513a2-4243-4056-bf2f-a93cadd2ec2e</guid><category><![CDATA[Design]]></category><category><![CDATA[CSS]]></category><category><![CDATA[Responsive]]></category><category><![CDATA[REC]]></category><category><![CDATA[Development]]></category><category><![CDATA[Template]]></category><dc:creator><![CDATA[Andrew Stilliard]]></dc:creator><pubDate>Thu, 02 Jun 2016 08:24:50 GMT</pubDate><content:encoded><![CDATA[<p>Browser testing has come along way, these aren't the days of IE5/6 double margin bugs or old IE hasLayout problems. <br>
We still battle some bugs but by large they are much less common to run into for day to day design. However this doesn't mean you don't need to test!</p>

<h3 id="contents">Contents</h3>

<ol>
<li><a href="https://blog.stapps.io/modern-browser-testing/#tipswhilecoding">Tips while coding</a>  </li>
<li><a href="https://blog.stapps.io/modern-browser-testing/#selectingbrowsers">Selecting browsers to test</a>  </li>
<li><a href="https://blog.stapps.io/modern-browser-testing/#whybrowserstack">Why BrowserStack</a>  </li>
<li><a href="https://blog.stapps.io/modern-browser-testing/#testing">Testing like a pro</a></li>
</ol>

<p><a id="tipswhilecoding"></a>  </p>

<h2 id="tipswhilecodingtomakeyourbrowsertestingeasier">Tips while coding to make your browser testing easier</h2>

<ol>
<li><p><strong>Don't focus too much on making your designs pixel perfect in every browser.</strong></p>

<blockquote>
  <p>"While some designers strive for cross-browser pixel perfection, proponents of fluid design do not think that layouts have to look identical across all platforms and screen resolutions." <br>
  <em>- The Smashing Book (Chapter on the Art &amp; Science of CSS Layouts)</em> </p>
</blockquote>

<p>Often clients (or our own OCD's) will want a design to be pixel perfect across multiple browsers and sizes, but there's very little need for this. I'm not saying make them drastically different in each browser, but if they have minor differences then this is good enough for me. The important thing is the design is able to adapt to the available screen size, and look good enough in browsers where support for some features isn't easily available. E.g. rounded corners with border-radius, these days it's pretty much all browsers, but if you go back to IE8 it doesn't support border-radius. Though if you look at your design, does the fact it doesn't have rounded corners cause any problems? no? great, leave it, no fancy polyfills etc needed. Which nicely brings me to my next point.</p></li>
<li><p><strong>Don't fear vendor prefixes, but also don't fret about them either.</strong> <br>
That sounds confusing, I probably could word that better. <br>
What I mean is, feel free to use vendor prefixes in your code. But make your own decisions of when to and not to use them. E.g. <a href="http://caniuse.com/#feat=flexbox">flexbox</a> is a great case of where it's needed, especially because of IE10's alt syntax. But <a href="http://caniuse.com/#feat=css-repeating-gradients">css gradients</a>, if you set a fallback background-color then this will likely be fine if you don't bother adding the vendor prefixed versions too as they will use the fallback. <br>
<a href="http://pleeease.io/play/">There</a> <a href="https://autoprefixer.github.io/">are</a> <a href="http://prefixr.com/">many</a> <a href="http://prefixr.cloudvent.net/">sites</a> out there that offer automatically adding prefixes to your code. But simpler than this, you can get editor plugins (for <a href="https://wbond.net/sublime_packages/prefixr">Sublime</a>, <a href="https://atom.io/packages/autoprefixer">Atom</a>, etc.) which can run right in your editor with a single command. 
One rule to remember with these new css properties &amp; vendor prefixes is, always use the real property too, don't just style for webkit prefixes, make sure you style for all and then add prefixes for added support. Also, think about browsers that don't even have prefixes. Make sure your design degrades gracefully without them, or better yet, build without them where you can and add them on top after, so you know the base is already nice and this progressively enhances the design in newer browsers. </p></li>
<li><p><strong>Avoid browser specific hacks.</strong> <br>
Ok yes, very unlikely if you're supporting IE7 or 8 maybe. But 9+ and most other modern browsers, do you really need that hack? In the case that you super need a hack, <a href="http://browserhacks.com/">browserhacks.com</a> is a great resource for it. <strong>But</strong> is it needed?</p></li>
<li><p><strong>Avoid adding lines of code you don't understand.</strong></p>

<p>Sure use libraries and snippets, in fact I encourage it, but try to look and learn how they work. Especially if it's a few lines in your own css. Sometimes when you copy other peoples code you can be left with properties that don't appear to make sense. Best case is if they are not explained somewhere, try taking them out, does it break, if so you'll learn why they were added, and if not, maybe you can remove them to simplify the code. You can always add them back in later if needed. But try to avoid seeing some code as <em>magic</em>. Magic hides reality, and often I've found magic can lead to bugs.</p></li>
<li><p><strong>Resize your browser often while developing.</strong> <br>
This is one of the fastest ways to quickly catch problems fast, and to prove your designs adapt to the screen size available. </p></li>
<li><p><strong>Learn to master your browsers dev tools</strong> <br>
Each of the major browsers have developer tools that help you build sites. Its really worth investing time in learning these tools. Most of them offer some sort of emulation for browser modes, screen sizes, user agents etc. So this is useful for browser testing. But the tools are also useful during testing because you can use them to inspect elements style to see exactly why something isn't working. Rather than the old methods of try this property, refresh browser maybe it'll work. Instead you can try your ideas live!</p>

<p>Spend some time familiarising yourself with the top browser tools: <a href="https://developer.chrome.com/devtools">Chrome</a>, <a href="https://developer.mozilla.org/en-US/docs/Tools">Firefox</a>, <a href="http://www.opera.com/dragonfly/">Opera</a>, <a href="https://developer.apple.com/safari/tools/">Safari</a>, <a href="https://msdn.microsoft.com/en-us/library/bg182326(v=vs.85).aspx">IE</a>, <a href="https://developer.microsoft.com/en-us/microsoft-edge/platform/documentation/f12-devtools-guide/">Edge</a>.</p>

<p><a href="https://www.codeschool.com/courses/discover-devtools">Here's a free course on the chrome dev tools, really worth a watch.</a></p></li>
</ol>

<p><a id="selectingbrowsers"></a>  </p>

<h2 id="selectingbrowserstotest">Selecting browsers to test</h2>

<p>Always test the latest browsers, versions &amp; platforms. <br>
Chrome latest, Firefox Latest, IE11, Edge Latest. Android Chrome latest, IOS Safari latest etc. <br>
This is the quickest way to be extra safe with your design. </p>

<p><strong>Working with an existing site</strong></p>

<p>If your existing site has analytics, this is the perfect place to start to make sure you cover it's most used devices, browsers and versions. <br>
For example, just because you've tested on the latest IOS safari version, doesn't mean that's the version that's currently most in use for this site. <br>
It's really worth checking the browsers that bring the most visitors and importantly the most conversions. </p>

<p>Login to Analytics > Audience > Technology > Browser &amp; OS. <br>
Then you can also click on a specific browser to then find a tab to see specific versions of that browser.</p>

<p>Be sure to set the date range for last month, and then also compare to last 6 months. </p>

<p>You can check out device/browser sizes if you click the Screen resolution tab at the top, though my personal recommendation is to make your design adapt to all screen widths rights down to 320px <em>(or 240px if you can but not always so easy)</em>.</p>

<p>If it's an ecommerce store &amp; revenue is stored too then you can see which devices, browsers and versions generate revenues. This is important, as if a specific older browser is bringing in thousands, maybe a couple big customers use it, it may not even be a popular browser but if it brings in the bucks, you'd better be supporting it ;).</p>

<p><a href="https://www.aabacosmallbusiness.com/advisor/google-analytics-browsers-visitors-220046730.html">Find out more details on using Google analytics to find browser support here</a>.</p>

<p><a id="whybrowserstack"></a>  </p>

<h2 id="browsertestingwithbrowserstack">Browser testing with BrowserStack</h2>

<p>Ok, I cannot stress the importance of this tool: <a href="https://www.browserstack.com/start">BrowserStack</a></p>

<p><em>This may sound like an advert for BrowserStack, I just really love their tool.</em></p>

<p>Here's my 5 favourite features it has!</p>

<ol>
<li>Test on all the major browsers &amp; versions,  </li>
<li><p>On all the major platform versions of Windows, OS X, Android, IOS &amp; Windows Phone. - It's not just about the browsers, its also about the different versions of them, and the different platforms they are on. <br>
When a client calls up saying they have a problem on IE 10 on Windows 8, you can fire up BrowserStack and test the same as them. <br>
<em>Speaking of which, tools like <a href="http://fmbip.com/get-started/">Findmebyip.com</a> offer urls you can share with your clients to find out what browser they are currently using as often people don't know.</em>  </p></li>
<li><p>These are not emulators, real browsers on real platforms! I've had designers tell me before they don't trust services like this because it's not the real device, which i understand, but with BrowserStack you really have access to real instances of windows and OS X with the real browsers installed. Also for mobile they have "Physical Devices" which are real devices in a device farm BrowserStack have so you're really on the device testing! They also offer emulators for some mobile devices they don't have, but the physical devices cover most cases.</p></li>
<li><p>Their <a href="https://www.browserstack.com/mobile-features">mobile features</a> are top notch. <strong>Access to dev tools on mobile devices</strong> is more important than I can express! This one feature really is worth the subscription on it's own. </p></li>
<li><p>Zero setup &amp; it boots up super fast! Starting up a test laptop or VM can take longer and on a good connection BrowserStack feels fairly smooth!</p></li>
</ol>

<p>Bonus feature: Built in issue tracker, I haven't used this feature much but on a project where you're testing but not the developer, you can use this to keep screenshots as a list of issues for the designer/developer to fix. </p>

<h3 id="asidenotesontestingapps">Aside notes on testing apps</h3>

<p>I'll mention here BrowserStack is not the only tool out there for this, It's the one I use most and personally I believe it's the best tool for the job. It's worth knowing about other similar tools such as: <a href="http://browsershots.org/">Browsershots</a>, <a href="https://turbo.net/browsers">turbo.net/browsers</a> and <a href="https://www.browserling.com/">Browserling</a></p>

<p>It's no replacement if you already have the device in front of you, but you wont have all the different versions in front of you. You may have a couple iphones in the office, maybe even different models. But are they on different IOS versions and therefore different mobile safari versions? Don't forget about people who haven't upgraded their phones yet, and no, saying "they should just upgrade" is not an excuse! <em>(Something a friend once said to me with his design after I pointed out an IOS 5 issue, sighs)</em>.</p>

<p>Also worth noting, if browserstack is not available to you, or it's too slow, you can use VMs for windows / IE / Edge debugging, in fact <a href="https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/linux/">Microsoft provides these free</a>. </p>

<p>For mobile device debugging, you can use dev tools with chrome's remote debugging feature. <a href="https://developer.chrome.com/devtools/docs/remote-debugging">Follow this tutorial on how to set this up.</a></p>

<p><a id="testing"></a>  </p>

<h2 id="testinglikeapro">Testing like a pro</h2>

<p>These are some brief tips to testing, but all this boils down to using the site like a real user.</p>

<ol>
<li>Resize in and out on every page.  </li>
<li>Scroll up and down while resizing, don't just load it on small screen and assume because the top of the page is ok that the rest will be too.  </li>
<li>Click every link, to the point of trying to break the site.  </li>
<li>Following on from the previous tip, try to break the site! Don't just test the things you already know work, try to think outside the box, your users certainly will.  </li>
<li>Pay special extra attention to custom interactions you've added to the site. Just because it looks nice, doesn't always mean it works.  </li>
<li>When you do find bugs, use the browser dev tools like mentioned above, especially the console if it's an interaction / javascript issue.  </li>
<li>After testing, accept that you can't test everything perfectly, over time your testing skills will be better, but it's important you’re aware reports of bugs <em>will</em> come in. You need to be ready for those reports, ready to find out which browser has the issue if possible like we talked about above, and try to reproduce it in the same browser version. </li>
</ol>

<h3 id="additionaltestingforbonuspoints">Additional testing for bonus points</h3>

<ol>
<li>Test performance with <a href="https://developers.google.com/speed/pagespeed/insights/">Google Page Speed</a>.  </li>
<li>Test mobile friendliness using <a href="https://www.google.co.uk/webmasters/tools/mobile-friendly/">Google’s tool</a>.  </li>
<li>Check the SEO of pages, such as title tag, meta tags, single <code>&lt;h1&gt;</code> tag, alt tags on images etc. Moz offer some <a href="https://moz.com/blog/designing-for-seo">great information</a> on this. </li>
</ol>

<p>I hope this has been useful, please leave a comment below with any of your own tips on browser testing to help improve this resource for others. </p>]]></content:encoded></item><item><title><![CDATA[Responsive breakpoints preview tool]]></title><description><![CDATA[<p>I'll start by saying there really are loads of great tools out there to preview sites on different viewports / screen width. <br>
Such as: <a href="http://mattkersley.com/responsive/">http://mattkersley.com/responsive/</a>, <a href="https://www.responsinator.com/">https://www.responsinator.com/</a> and <a href="http://responsivedesignchecker.com/">http://responsivedesignchecker.com/</a>.</p>

<p>And even some tools that offer excellent detection of media queries / breakpoints and then automatically</p>]]></description><link>https://blog.stapps.io/responsive-breakpoints-preview-tool/</link><guid isPermaLink="false">6f7317d1-bd94-4146-bdf6-775238cf5661</guid><category><![CDATA[Responsive]]></category><category><![CDATA[Testing]]></category><category><![CDATA[Design]]></category><category><![CDATA[Development]]></category><category><![CDATA[CSS]]></category><category><![CDATA[REC]]></category><dc:creator><![CDATA[Andrew Stilliard]]></dc:creator><pubDate>Wed, 02 Dec 2015 23:59:00 GMT</pubDate><content:encoded><![CDATA[<p>I'll start by saying there really are loads of great tools out there to preview sites on different viewports / screen width. <br>
Such as: <a href="http://mattkersley.com/responsive/">http://mattkersley.com/responsive/</a>, <a href="https://www.responsinator.com/">https://www.responsinator.com/</a> and <a href="http://responsivedesignchecker.com/">http://responsivedesignchecker.com/</a>.</p>

<p>And even some tools that offer excellent detection of media queries / breakpoints and then automatically create iframes of each so you can quickly view them, such as: <a href="http://breakpointtester.com/">http://breakpointtester.com/</a> and <a href="http://re-view.emmet.io/">http://re-view.emmet.io/</a></p>

<p>The 1st set of tools are great, especially when demoing to clients to help them see different specific devices. <br>
While the 2nd set of tools are also really useful when developing to see the different breakpoints built in and to quickly demo them side by side too. <br>
The minor downside to these 2nd set of breakpoint tools however is they are either browser plugins or bookmarklets, which for some clients will not make a lot of sense. </p>

<p>Instead we need a tool like the 1st ones where you can link to it, but with breakpoint detection like the 2nd set of tools.</p>

<p>And so, here's a new tool you can use: <br>
<a href="http://responsive.stapps.io/">http://responsive.stapps.io/</a></p>

<p>Like the other tools, this only works on sites that don't block iframe access, e.g. google blocks it's site from being viewed in an iframe. </p>

<p>Also, unlike some of the other tools, it currently only works on sites with css breakpoints  / media queries. </p>

<p>It has 2 display modes, the default one is a slider of each display size, you can use the arrows on the side or keyboard to navigate between them. <br>
Then the other display mode is to show all the sizes next to each other, like the other breakpoint based tools, which is useful for quick comparisons. <br>
<em>You'll need to click "run" again to change the display modes.</em></p>

<p>It's pretty new so message me about any bugs, but enjoy :).</p>

<p><em>If you're an REC user, you can find a link to this under the preview url in Admin > Templates > Open/Edit Template</em></p>]]></content:encoded></item></channel></rss>