May 22 2009

Floats, clears, and color flashes

Jeffrey Zeldman Presents : Floats, clears, and color flashes

Floats, clears, and color flashes

After viewing this site’s redesign in progress, Peter Petrus wrote:

[Y]ou’re using footer to clear floats (content + sidebar). This creates a large drawback, because before footer is downloaded and displayed in the browser, parent wrapper lacks any background.

It means that we’re staring on black text / orange background combo for a few moments. Well, few moments now, but should you put any unresponsive widgets in the sidebar, everything can render much slower. Having main content flash like this isn’t very pleasant – especially when you named the redesign “Designing from the content out”.

Solution is very simple – use ‘:after’ clearing for the main wrapper. Sure, it won’t work on IE, but 1) setting width to wrapper sets hasLayout and triggers clearing 2) #footer is still there, in any case.

I’d read about using “:after” clearing but hadn’t implemented it and thought I could solve the problem an easier way. This afternoon, with about five minutes’ work, I did so.

Read More…


May 18 2009

Twitster

twitster

What is twitster?

Put simply, Twitster is a PHP application that lets you display tweets on your own web site from everyone you follow in Twitter. What’s more, Twitster can filter those tweets by a hash tag (#example) giving you the ability to create a Twitter-based group or community on your own site.

  • Publish your Twitter community on your own web site.
  • Gather and publish tweets from the people and the topics you care about.
  • Powering your site’s community with Twitter means little to no work for member participation. (Just tweet!)

Check it out! Twitster