Profile
Achievement


jonhenshaw's Recent CSS Snippets
- All /
« Prev 1 Next »
A good CSS example of how to style Horizontal Rule (HR) elements. It's also Internet Explorer (IE) friendly.
3
1435
posted 16 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
3544
posted 17 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
1783
posted 18 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
3855
posted 18 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
2042
posted 18 years ago by jonhenshaw