www.webdeveloper.com
Results 1 to 5 of 5

Thread: how to hide td

  1. #1
    Join Date
    Nov 2004
    Location
    xxxyyy
    Posts
    357

    how to hide td

    in my table, I have one <tr> where 100 td's are there . I want to hide 60 td's ...How to do that ?

    what are the options I have .

  2. #2
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    css display:none; or visibility:hidden;

  3. #3
    Join Date
    Mar 2010
    Posts
    2,803
    You can give them a class name and then assign the style
    Code:
    display: none
    to the class name

  4. #4
    Join Date
    Nov 2004
    Location
    xxxyyy
    Posts
    357
    Quote Originally Posted by tirna View Post
    You can give them a class name and then assign the style
    Code:
    display: none
    to the class name
    I don't want to put 60 style display: none .

    Can we use <div> here ...just 1 <div> and 1 style display: none ?

  5. #5
    Join Date
    Mar 2010
    Posts
    2,803
    Quote Originally Posted by cofactor View Post

    I don't want to put 60 style display: none .

    You don't have to. Just copy and paste

    class="whatever"

    to your td's and then assign

    display: none;

    just once in your css. It should not take more than a couple of minutes to do at the most.

    Can we use <div> here ...just 1 <div> and 1 style display: none ?

    Try it, see if it works and then put it through the w3c validator at
    http://validator.w3.org/ to see if it is valid.

    ..

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles