View Single Post
Old 10-03-2012, 10:37 AM   PM User | #2
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,613
Thanks: 5
Thanked 865 Times in 842 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
First of all, I appreciate that you’re thinking about a fallback at all. Most people just implement technologies without thinking any further.

Then, one thing I’m always doing right in the beginning is to add a class to the body (or html root element) using JS which serves as my hook to apply specific styles that are only seen if JS is enabled. The reverse approach (which is used by some people, too) would be to add a “no JS” class to the html and remove it with JS then. This way you can do the following with your box: If JS is not available/enabled then make it a simple CSS hover function.
Code:
#inkassobox:hover {height: 280px;}
__________________
Don’t click this link!
VIPStephan is offline   Reply With Quote
Users who have thanked VIPStephan for this post:
Samz3n (10-03-2012)