CSS Specific for Internet Explorer

As much as we don’t like to deal with the IE bugs, we still have to face it because your boss and visitors are still using Explorer. It gets frustrating when different versions of Explorer displays web pages differently due to the inconsistent rendering engine. We typically use IE conditional comments to fix the IE issues. But there are more ways than the conditional comments…

VN:F [1.9.22_1171]
Rating: +1 (from 1 vote)

An all CSS button

A few years ago I gave a talk about why a button made a great place to bring in type from a branding element such as a logo. My point was that if the type in your logo was an image, and stylish buttons were also often images, then why not align the fonts in both to bring some cohesiveness to the typography. This was probably four years ago, and we’ve come a long way since. Now, in certain situations, CSS can replace the inflexible image buttons we used in the past. Add on top of that the advances made in @font-face and you have yourself a powerful combination for creating a wide variety of interface elements that are reusable and will degrade well in older browsers…

VN:F [1.9.22_1171]
Rating: +2 (from 2 votes)

Cross-browser CSS gradient buttons

Recently I talked about CSS cross-browser gradients and last week I wrote again about CSS3 gradients. So what I’m going to do today? I will show you how to put the CSS gradient feature in practical use.In this article you will see how you can create a set of gradient buttons just with CSS no images…

VN:F [1.9.22_1171]
Rating: +2 (from 2 votes)

The practicalities of CSS Media Queries, lessons learned

CSS Media Queries are part of CSS3 and in brief: they allow you to tailor your websites appearance for different screen sizes. Most people I speak to know about media queries but have been a little shy in trying them out. You can read about media queries elsewhere – here, I’d like to speak about a first-hand experience of using them…

VN:F [1.9.22_1171]
Rating: +1 (from 1 vote)

Create a vertically centred horizontal navigation

Centring block level elements is easy, just define a width and set margin:0 auto;, but what if you don’t know that fixed width? You could use text-align:center;, but that won’t work on 100%-width block-level elements either… that’ll only work on text-level elements.

VN:F [1.9.22_1171]
Rating: +1 (from 1 vote)