Archive for November, 2007

CSS Dock Menu

Wednesday, November 28th, 2007
CSS dock menu

I have seen a lot of OS X inspired dock menus out there but this is the best that I have seen by far, brought to you by our friends at N-Design Studio, a site that got featured here a few months back.

It uses the JQuery library and the Fisheye component so everything gets manipulated at the DOM level. My only gripe here as with other similar implementations is image aliasing due to browser-level resizing, a limitation that we just have to live with.

Fisheye aliasing

Check out the demo page to see what I mean.

Improve Website Performance With CSS Sprite Generator

Sunday, November 25th, 2007

CSS sprites are a way to reduce the number of HTTP requests made for image resources referenced by your site. Images are combined into one larger image at defined X and Y coorindates. Having assigned this generated image to relevant page elements the background-position CSS property can then be used to shift the visible area to the required component image.

CSS Sprites screenshot

(more…)

Free CSS Optimizers To Improve Website Performance

Thursday, November 22nd, 2007

After reading BloggingPro’s article on CSS Optimization, I have decided to come up with my own study.

For this test, I sampled CSS from six sites:

  • iBegin - Localized business search engine
  • CSS vault - Of course, I had to test it on our own website didn’t I?
  • Tech Soapbox - One of my favorite technology news blogs
  • Mashable - Social networking and tech news
  • CNN - Recently updated their website and makes extensive use of CSS for positioning and design
  • PayPal - Also recently updated their website

I used the following CSS Optimizers:

The tests were done using the options that would yield the highest compression. Here are the results.

Site CSS Optimiser Icey Flumpcakes Clean CSS
iBegin 36.68% 26.48% 27% 25.40%
CSS Vault 16.33% 36.32% 17% 35.10%
Teach Soapbox 28.45% 36.42% 26% 35.40%
Mashable 21.46% 30.32% 22% 29.80%
CNN 8.54% 31.44% 15% 26.10%
PayPal 2.45% 16.94% 7% 15.30%

Based on these results, it appears that Icey produces the best compression results, followed closely by Clean CSS, then by Flumpcakes and finally by CSS Optimiser.

That being said, however, it is noteworthy to point out that optimizing CSS code involves many techniques such as stripping out of line feeds and empty tags, combining common elements, merging shorthand properties and more, such that it is possible for the resulting code to display differently when used on the actual site, which is why these CSS optimizers encourage CSS validation prior to any optimization.

Also, these optimization techniques are lossy. Once CSS code has been optimized there is no turning back, and it will be very difficult if not impossible to make changes to the optimized code by hand. Thus, it is always advisable to keep a backup of the original CSS code.

For non-lossy code optimization there is always server-size methods such as gzip, an Apache mod that compresses content at the expense of consuming server resources and is unsupported by older browsers,
and CSS-SSC, a server-side preprocessor which parses the original CSS file and serves a compressed version to the clients.

PHP + CSS DTR Lets You Display Custom Fonts As Images

Monday, November 19th, 2007

PHP+CSS DTR logo

PHP + CSS Dynamic Text Replacement is a JavaScript-free version of the Dynamic Text Replacement method originally created by Stewart Rosenberger.
(more…)

Christmas Days Wordpress Theme Released By Design Disease

Friday, November 16th, 2007

Inspired by the holiday season, Design Disease has just released “Christmas Days”, as a Christmas-inspired Wordpress theme as a gift to bloggers around the world. It is one sweet theme so make sure to check it out!

Christmas Days Wordpress Theme Released By Design Disease

The theme has been tested on WordPress 2.3.1 with Firefox , Opera, Safari and IE6/7. It validates as XHTML 1.0 Transitional.

Related links:

CoolTips: Create Better Looking Tooltips

Tuesday, November 13th, 2007

CoolTips logo

CoolTips replaces regular browser tooltips with fully stylable tool tips. It uses lightweight and unobtrusive JavaScript to replace conventional web-browser tooltips.

CoolTips sample

CoolTips automagically gets contents from the title attribute by utilizing the Prototype JavaScript framework. It uses script.aculo.us for animation. Both frameworks will need to be initialized to for it to work.

Link: CoolTips homepage

CSSType: Pixel Perfect Typography Made Easy

Saturday, November 10th, 2007

CSSType logo

CSSType is a web-based, JavaScript powered tool to automagically create CSS code for specific text formatting values such as word spacing, line height, letter spacing, and many more.
(more…)

Installing Multiple IE On A Single Machine

Wednesday, November 7th, 2007
Multiple IE screenshot

Nothing can be more disappointing than discovering that all those hours you spent laboriously getting your website to display properly on Firefox and IE7 does not work on IE6. As developers we definitely need to have IE6 and IE7 running side by side on the same machine. That’s how I discovered Multiple IE.
(more…)

10 Tips To A Better CSS

Sunday, November 4th, 2007

Some good tips from Istvan, who develops Yahoo! Stores for a living, comes 10 tips on creating clean and efficient CSS.

FTA:

In a typical workday, I deal with dozens of yahoo stores and very often I have to tweak, fix, or change CSS used by these stores. While some stores have very clean and easy to follow style sheets or CSS definitions, the vast majority of stores I’ve seen seem to include complete hack jobs, style sheets put together completely haphazardly, or as an afterthought. While working in such a store, the idea came to me to turn my gripes into a post. So the following is my list of dos and don’ts of good CSS or style design.

Styled Links Using The CSS Background Property

Thursday, November 1st, 2007

CSS Tricks points out the novel idea of using the CSS background property to style hyperlinks. While I’m sure most designers / developers have used the border-bottom technique, the use of a image presents greater styling control — something to consider for future projects in case you are aiming for something different.

Alternative style links