Search Results

  1. CSS Style Guides

    As we wrap up our recent poll on ordering CSS properties, it brings up the larger issue of CSS style guides. Ordering properties is just one choice you have to make that makes up a complete styling strategy. Naming is a part of it. Sectioning is a part of it. Commenting, indentation, overall file structure... it all makes up a complete CSS style guide.

    Let's round up some existing ones.…

  2. How to Write Better Code: The 3 Levels of Code Consistency

    When working on an article about user-centered web development I ended up exploring a bit more the topic of consistency in code. Consistency is one of the key reasons why we need coding guidelines and also a factor for code quality. Interestingly enough, so I noted, there are three levels of consistency: individual, collective, and institutional.…

  3. Magic Numbers in CSS

    Despite the super fun sounding name, magic numbers are a bad thing. It is an old school programming term for "unnamed numerical constant". As in, just some number plunked into the code that is probably vital to things working correctly but are very difficult for anyone not intimately familiar with the code to understand what it is for. CSS is loaded with unnamed numerical constants, but they are usually paired with properties and in the context of a selector so …

  4. Combining the Powers of SEM and BIO for Improving CSS

    CSS is easy, some might argue, but that "easiness" can cause messy code. This is especially true through power of preprocessors like Sass or Less where, if you aren’t careful, your CSS can become harder to deal with instead of easier. Sass? Harder? This Gist shows a great example of Sass nesting hell.

    If your Sass code looks like that, you can definitely improve your code with SEM & BIO, a CSS technique I’ll introduce you to now!…

  5. Interesting Reader Questions

    Why a CMS?

    I was recently criticized that my sites weren't dynamic, and that no one would hire me because everyone wants a dynamic site. Well, the people I'd be targeting will know nothing about computers, thats why they need me to do the updates. I've become alot more versed in HTML\CSS now, and in design in general. Should I worry about learning something like Joomla? It seems frustrating, because I just can't use my normal web design software that …

  6. Centering List Items Horizontally (Slightly Trickier Than You Might Think)

    Update April 2013: This article is pretty old. This isn't very hard. Just give the list centered text (e.g. ul.nav { text-align: center; }) and the list items inline-block (e.g. ul.nav li { display: inline-block; }). If you want to do it with margin for whatever reason, look into width: fit-content;.

    The current standard in coding menus is unordered lists. It's not as semantic as a <nav> tag would be, but it's not that bad. Navigation is, …

  7. A Short History of WaSP and Why Web Standards Matter

    In August of 2013, Aaron Gustafson posted to the WaSP blog. He had a bittersweet message for a community that he had helped lead:

    Thanks to the hard work of countless WaSP members and supporters (like you), Tim Berners-Lee’s vision of the web as an open, accessible, and universal community is largely the reality. While there is still work to be done, the sting of the WaSP is no longer necessary. And so it is time for us to …

  8. Envato Marketplace Redesign

    As I'm posting this, the marketplace websites that Envato runs (ThemeForest, GraphicRiver, etc) have been redesigned. It's a pretty big overhaul... new logos, loads of new features for both buyers and sellers, the iconic "switcher" to change between marketplaces is integrated right into the site identity. Collis himself breaks it all down in this launch post.

    The #1 thing I was secretly hoping for is better (and less buried) search. They really came through on that, …

  9. Thank You (2014 Edition)

    Well-oh-well if it isn't that time of year again. Time to huddle around the virtual campfire, pass around a metaphorical jug of brandy, and bid farewell to another year. You know, that thing we do every year. (2007, 2008, 2009, 2010, 2011, and 2012, 2013).…

  10. Choosing a Responsive Email Framework: MJML vs. Foundation for Emails

    Implementing responsive email design can be a bit of a drag. Building responsive emails isn’t simple at all, it is like taking a time machine back to 2001 when we were all coding website layouts in tables using Dreamweaver and Fireworks.

    But there's hope! We have tools available that can make building email much easier and more like coding a modern site. Let’s take a look at a couple of different frameworks that set out to simplify things for us.…

  11. An Intro to CSS Testing with SonarQube

    The following is a guest post by David Racodon. David contributes to this open source code quality tool he'll tell you all about. I hadn't heard of it until now, but I know there are lots of folks out there interested in tooling to help keep their CSS in check. This is a bit like CSS lint but formalized into an interface that handles code quality for a whole project.

  12. Lint your CSS with stylelint

    The following is a guest post by David Clark. David is the co-creator of a thing called Stylelint, a tool for keeping your CSS in shape. He does a great intro as to why you might need it himself, so take it away David...…

  13. Build Web Layouts Easily with Susy

    Susy provides you with the tools to build your own grid layouts that match the needs of your website. It gives you the freedom and flexibility to build any design that you can imagine. It doesn't matter if your design has 5, 14 or 48 columns. Unequal width columns? Susy's got you covered.

    Why would you pick Susy over the million other frameworks out there on the internet? You may never even heard of it before. What if it's beauty …

  14. Sublime Text for Front End Developers

    The following is a guest post by Wes Bos. Wes has been writing about Sublime Text and all the great stuff it brings to code editing for a while now. He has a new book and video package out now: Sublime Text Power User. I met him at a conference recently and saw his talk on Sublime Text. The conference was buzzing about it. Newbie's jaws were dropped and old pro's learned new tricks. Here, Wes is going

  15. Web Awards for Horizontal and Vertical Writings

    "Tate-Yoko Web Award" is an award given to those who are willing to challenge the web typography of the next generation by designing and utilizing new typesetting standards in the latest CSS codings.

    Maybe the award site should win the award.…

  16. Defining and Dealing with Technical Debt

    We're all familiar with debt, right? It's that concept where an amount is owed from one person (the borrower) to another (the lender). We often use it to describe financial situations. For example, I borrow money from a bank. I now have debt with them in the amount of how much money they lent me (plus interest!) and expect me to repay it.

    Debt isn't always about money. In fact, we run into it as front-end developers all the time …

  17. Using CSS in HTML Emails: The Real Story

    Update: This article is about a decade old as I update this. Probably not a great source of information anymore. A good source of information about CSS in in HTML email is Campaign Monitor's guide.…
  18. Five Questions with James Padolsey

    If you are like me and commonly find yourself Googling around for JavaScript solutions to coding problems, there is a good chance you've come across James Padolsey's Blog. James is a prolific blogger with a clear teaching style I think we all appreciate when looking for solutions. I've referenced his articles many times, for example, when needing to dynamically resize textareas, shuffle DOM elements, or animate to a particular CSS class. All this, and James is …

  19. Comparing Novel vs. Tried and True Image Formats

    Popular image file formats such as JPG, PNG, and GIF have been around for a long time. They are relatively efficient and web developers have introduced many optimization solutions to further compress their size. However, the era of JPGs, PNGs, and GIFs may be coming to an end as newer, more efficient image file formats aim to take their place.

    We're going to explore these newer file formats in this post along with an analysis of how they stack up …

  20. Middle Box Links

    Worst name ever, but I was having a hard time naming it and that seemed to fit the bill. This is the end result:

    It covers a variety of things I thought were interesting:

    • jQuery 1.4's new element creation syntax which is pretty cool and we haven't covered
    • Writing a little plugin to prevent repeated code (and keep it in the spirit of jQuery)
    • Touches on what I am starting to consider object-oriented CSS
icon-anchoricon-closeicon-emailicon-linkicon-logo-staricon-menuicon-nav-guideicon-searchicon-staricon-tag :)