Home > Articles > Web Design & Development > Usability

Bulletproof Web Design: Creative Floating

  • PrintPrint
  • Share ThisShare This
  • DiscussDiscuss
The creative use of the float property can give grid-like results, with a fraction of the code we’d need with the nested-tables approach. By paring down the markup to its barest essentials, you make it easier for browsers, software, and all devices to read your content, at the same time making it easier for other designers and developers to modify and edit these components.

Use floats to achieve grid-like results

In previous chapters, we started each bulletproof approach by first deciding how the component we’re dealing with should be structured—that is, what markup is most appropriate for the content being displayed? This, I believe, is an important step when building any website. With a goal of selecting elements that convey the most meaning to what they surround, you hope to be left with enough “style hooks” to apply a compelling design with CSS. But more importantly, choosing the best markup for the job means the content of the page has the best chance of being understood properly across the widest possible range of browsers and devices. It’s the foundation and should convey a clear message, regardless of the design applied on top of it via CSS. Additionally, if we take time to consider optimal structure (meaningful HTML) and design (CSS) separately, changing that design later on down the road becomes less like finding a needle in a haystack and more like changing the slipcover on a sofa.

Settling on an optimal structure doesn’t have to limit the way it’s displayed, however. As we’ll explore in this chapter, the creative use of the float property can give us grid-like results—with a fraction of the code we’d need with the nested-tables approach. By paring down the markup to its barest essentials, we make it easier for browsers, software, and all devices to read our content—at the same time making it easier for other designers and developers to modify and edit these components.

We start this chapter off by rebuilding a box containing multiple pairings of an image, title, and description. This is a common layout requirement found on sites all over the web, and one that we can handle elegantly using minimal markup and CSS.

  • Share ThisShare This
  • Save To Your Account

Discussions

comments powered by Disqus

Related Resources

Live Twitterview with Nancy Lyons and Meghan Wilker
By on May 3, 2012Comments

Join authors Nancy Lyons and Meghan Wilker for a lively Twitterview about interactive project management on May 10.

Mac Productivity: Quick Scripts and Workflows - Convert Rich Text to Image
By on April 23, 2012Comments

Your wife’s surprise birthday party is tomorrow.  You’ve prepared a top notch slideshow on your Mac using Keynote, and transferred it to your iPad.  Great!  Now you can present directly from the iPad.  There’s only one problem.  The fonts in your presentation are no longer appearing properly because the iPad doesn’t have all the same fonts your Mac does.  It looks like you might have to lug your Mac along too.  No, with Automator’s help, you can just replace the problem text with images.  Here’s how...

Live Twitterview with Ian Devlin
By on December 5, 2011Comments

Take a look at HTML5 in an action-packed Twitterview with HTML5 Multimedia: Develop and Design author Ian Devlin on December 8.

See All Related Blogs