Profile
Achievement
Huskie's Recent Snippets
- All /
« Prev 1 Next »
CSS code to add a CSS3 box shadow to the bottom of an element only.
0
2999
posted 13 years ago by Huskie
With the current combobox implementation, the full list is emptied and re-rendered every time you expand the dropdown. Also you are stuck with setting the minLength to 0, because it has to do an empty search to get the full list.
Here is my own im...
0
3258
posted 14 years ago by Huskie
Clear all text fields on focus based on original value with single function. The code checks for a 'title' attribute on each input with class 'text' and compares this to the current value of the field.
0
3351
posted 14 years ago by Huskie
IE6 and IE7 don't respect the 'outline' attribute for hyperlinks. This jQuery snippet removes the annoying outline in these browsers.
0
2320
posted 14 years ago by Huskie
This code snippet fetches the very latest minified version of jQuery from Google's CDN. If this is not available, we revert to a locally stored version (current version at time of publish was 1.7.1 - update this to suit going forward).
1
2370
posted 14 years ago by Huskie
If you place favicon.ico and apple-touch-icon.png in the root of your website, these references are NOT required.
0
2036
posted 14 years ago by Huskie
In my opinion, this is the best cross-browser method of clearing floated elements in a container. Remember to add .clear-fix{zoom:1;} to an IE specific stylesheet, otherwise IE 7 will complain.
0
2101
posted 14 years ago by Huskie
Example call: $menuName = sleek_get_theme_menu_name('footer-menu')
0
2630
posted 15 years ago by Huskie
Could possibly be simplified to maximise efficiency. It relies on a separare WP Sleek framework function sleek_get_theme_menu_name. This could ideally be improved to allow the theme location to passed as a parameter somehow.
0
2688
posted 15 years ago by Huskie
Pure CSS3 buttons with 9 pre-defined colours and 3 styles.
Adapted from Web Designer Wall - http://www.webdesignerwall.com/demo/css-buttons.html
1
2048
posted 15 years ago by Huskie
Useful for WordPress installations that need more than 32M of memory
0
2258
posted 15 years ago by Huskie
Add attribute to links to open them in a new window. Example - rel="external". Alternative to target="_blank", conforming to XHTML specification.
0
2365
posted 15 years ago by Huskie