Attribute Selectors





ranking Sort Sort   |   date Sort Sort   |   member Sort Sort
Syndication

5
Date Submitted Mon. Oct. 10th, 2005 1:45 PM
Revision 1
Helper ryan
Tags CSS | Hovering
Comments 9 comments
Advanced CSS Hovering
2
Date Submitted Mon. Oct. 10th, 2005 3:25 PM
Revision 1
Helper ryan
Tags Clear | CSS | Floats
Comments 1 comments
Clearing Floats
8
Date Submitted Wed. Feb. 21st, 2007 8:53 AM
Revision 1
Beginner mikedowson
Tags CSS | JavaScript
Comments 2 comments
An easy way to hide and show div's using Javascript and CSS.

Basically just a slight variation on this script by Real Gagnon.
6
Date Submitted Mon. Jun. 5th, 2006 8:53 PM
Revision 1
Coder mattrmiller
Tags !important | CSS | IE | Ignore
Comments 1 comments
Normally in CSS whichever rule is specified last takes precedence. However if you use !important after a command then this CSS command will take precedence regardless of what appears after it.
12
Date Submitted Mon. Oct. 30th, 2006 2:23 PM
Revision 1
Beginner Mattkins
Tags CSS | DHTML | JavaScript
Comments 3 comments
Allows you to hide all elements on an HTML page by their tag name. Extremely handy in getting around the "Windowless Elements" problem in IE, which is a bug that puts certain elements, most commonly select boxes, on top of any other element, no matter what. As you can imagine, this causes real problems with DHTML drop-down menus and such like. This is the simplest and quickest fix I've come up with, I simply set this function to run alongside the drop-down and all of the select tags vanish before a menu drops, then I run the show function when the menu retracts.
-7
Date Submitted Sat. Mar. 11th, 2006 5:09 PM
Revision 1
Helper martindale
Tags CSS
Comments 6 comments
Make IE bend to your every will and command.
15
Date Submitted Sat. Aug. 5th, 2006 6:22 AM
Revision 1
Beginner Jo3y
Tags CSS | IE
Comments 2 comments
Not really a hack, but rather a workaround for layout problems with IE.
Conditional
-10
Date Submitted Tue. Oct. 17th, 2006 3:25 PM
Revision 1
Helper jeremec
Tags Attribute | div | JavaScript | Name
Comments 7 comments
One way to group elements in HTML is to assign them a name attribute. Multiple elements can share a name, then you can easily access them as an array using the getElementsByName() method.

The problem is that some DOM parsers aren't keen on, or are ignorant to, this use of the name attribute, so a simple object.name returns undefined. In my case, it was a DIV in Firefox 1.5 that was behaving this way.

There is a simple work around for this that works in Firefox, I haven't tested it in others. It is to use the getAttribute method that is an extension of any element object.

This ability can be useful if you have a function that performs a transformation on the active element, and another transformation on closely related elements.
7
Date Submitted Mon. Oct. 10th, 2005 9:49 PM
Revision 1
Beginner jag5311
Tags "Square One" | CSS
Comments 1 comments
Set Everything to Square One
6
Date Submitted Tue. Oct. 11th, 2005 1:20 PM
Revision 1
Beginner jag5311
Tags Centered | CSS | Fixed
Comments 0 comments
A Simple Centered Fixed Width Layout