Member since 06/27/2006

Location: Nashville, TN


5 snippets

1086 profile views

34 Comment(s) Posted

View their favorites



first submission:submitting first snipplet popular snippet:having a snipplet with 20 favorites

jonhenshaw's Recent CSS Snippets

« Prev 1 Next »
A good CSS example of how to style Horizontal Rule (HR) elements. It's also Internet Explorer (IE) friendly.
3 119 posted 11 years ago by jonhenshaw
The selector portion of the CSS rule targets which XHTML tags/classes this rule will be applied to. At first glance, it looks like all img tags as well as all tags with a class of "png". You’ll notice the * html in front of both of these. Wait, the...
15 193 posted 12 years ago by jonhenshaw
This is an excellent solution for fixing IE 6's inability to display transparent PNGs correctly. Step 1: Include the following conditional comment the HEAD area of your document. You will need to update the CSS selector and also the path to wheree...
13 143 posted 13 years ago by jonhenshaw
This handy CSS attribute can be used to keep text from wrapping. It can also be used to keep other HTML elements from wrapping. Simply apply the white-space:nowrap attribute to any HTML element to force text and images to not return within a specifie...
5 483 posted 13 years ago by jonhenshaw
IE6 and before doesn't support :hover in CSS (except for anchors). You can use this script to make hovers work in IE. Just add the following line to your stylesheet (this assumes the path of the file -- you may need to change it to reflect your paths...
7 232 posted 13 years ago by jonhenshaw
« Prev 1 Next »