/    Sign up×
Community /Pin to ProfileBookmark

Hide/Show Columns in Table with CSS

I have a large table, and have classes on the TD’s I want to toggle. This works fine in IE8, FF, Chrome, etc. However in IE7 and IE6, the class switching on the table doesn’t seem to take effect. If I go into the IE developer toolbar, and manually turn the CSS class off and on, it then works, but I have to do that each time.

I found one place suggesting to toggle the visibility and display properties of the table, which is why you’ll see the table flash when you click Show 1.

Here is a test page I set up: [URL=”http://www.athletic.net/Demo/Josh/Test/ClassSwitching.htm”]http://www.athletic.net/Demo/Josh/Test/ClassSwitching.htm[/URL]

Any ideas?

Thanks!

PS – I’ve also posted this question here:
[URL=”http://stackoverflow.com/questions/455958/hide-show-column-in-an-html-table/2189588#2189588″]http://stackoverflow.com/questions/455958/hide-show-column-in-an-html-table/2189588#2189588[/URL]

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@FangFeb 03.2010 — Server error ...
Copy linkTweet thisAlerts:
@bowdoinjauthorFeb 03.2010 — Sorry about that! Thanks for letting me know.
×

Success!

Help @bowdoinj spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.21,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...