February 2012
2 posts
4 tags
using jQuery pathname to assign a class or change...
This is a pretty useful one, I use it quite often. I’m currently building a navigation which has an icon above each link. The icon is a background image that contains a transparent and non-transparent versions (CSS sprite). I want the background position to be showing transparent unless the user is on the page which the link refers to. So, this looks at the URL and assigns it to a...
Feb 13th
1 note
4 tags
ie7 margin: 0 auto; css fix
God knows why, but ie7 doesn’t like this simple piece of css. Here’s a workaround for your ie7 stylesheets.. body {text-align:center;} #wrapper {text-align:left;}
Feb 12th