I list files in directories that can be downloaded. I made the checkboxes of objects that I don’t want user to be able to download non-clickable. All directories cannot be downloaded and some of the files.
But I want to hide the checkboxes completely. It is very confusing that the checkbox is there but cannot be used.
My sample code is on jsfiddle
Basically, there are two quick, CSS methods for hiding the checkbox:
display:nonevisibility:hiddenHere’s a fiddle that uses the first for directories and the second for disabled files; but it’s not that big a deal. The major difference, as you saw, is that the second leaves the empty space.
Also! Important! The CSS uses the attribute selector and the child selector, neither of which are supported in IE6.