Google Adsense have finally added the flexibility of responsive ad units to allow advertising to better fit in with responsive sites. At its most basic it’s as simple as inserting a piece of code into your HTML and Adsense does the rest, serving up an ad unit that best fits that space. (more…)
CSS3 supports a bunch of nice new CSS features, including rounded corners, drop shadows, glows, and gradients. However, different CSS vendors will use different prefixes to standard CSS3 features while still in an ‘experimental’ stage. This means you need multiple lines to accomplish the one CSS feature, to target all the different browsers. Below is a bunch of CSS that will give you these CSS features in as many browsers as possible (yes, including older versions of IE).
Targeting IE with specific CSS, is always a awful task, however I thought I’d cover the two basic ways to do it: in HTML using conditional CSS and in stylesheets using hacks.
Conditional CSS lets you include a specific IE only stylesheet on your HTML page. It is the preferred way of having targeted IE specific CSS and is guaranteed to work with future version of IE, something that cannot be said for the hacks.
You can target:
A specific version <!--[if IE 6]>
All version below a specific version <!--[if lt IE 6]>
All versions above a specific version <!--[if gt 6]>
All version below or equal to a specific version <!--[if lte IE 6]>
All version above or equal to a specific version <!--[if gte IE 6]>
Let’s look at including a stylesheet only for IE6 in the <head> element.