How to hide element label by element id in CSS?

Posted by Stoob on Stack Overflow See other posts from Stack Overflow or by Stoob
Published on 2010-04-22T21:33:07Z Indexed on 2010/04/22 21:43 UTC
Read the original article Hit count: 295

Filed under:
|
|

Let's say I've got this code

<table> <tr> <td><input id="foo" type="text"></td> <td><label for="foo">This is foo</label></td> </tr> </table>

This will hide the input:

#foo { display: none;}  /* or hidden could work too, i guesss */

How do I hide the label?

© Stack Overflow or respective owner

Related posts about css

Related posts about input