N
Neal
I supplied the full html. You can simply copy and paste it.
And we have nothing to do but do your work for you? How selfish.
Post a URL.
I supplied the full html. You can simply copy and paste it.
John Dalberg wrote
<bangs brucies head on desk />
Yes, *it is wrong*. You are applying display: block to an element where that
does not make sense. Table bodies can *not* be block level element. It does
not pull an error because it *is* syntactally correct. However it is most
certainly semantically incorrect. It's like saying body {display: inline;}.
Syntax is correct but what do you think a browser would do with it?
Just why do you want to turn a <tbody> element into a block level element in
the first place?
At the very least you should be using display: table-row-group (as per the
CSS specification, chapter 17).
Ideally you should omit the display property altogether and let the default
style sheet (appendix A in the spec) override the default display: inline
with display: table-row-group.
<bangs brucies head on desk />
What's the proper way of hiding a few table rows in css as a default when a
page loads without resorting to Javascript?
Just why do you want to turn a <tbody> element into a block level element in
the first place?
What's the proper way of hiding a few table rows in css as a default when a
page loads without resorting to Javascript?
John
That's a bad idea for reasons I gave in your last thread.
Why do you think it doesn't display correcty [...]
It's displaying how it should display correctly.
What's the proper way of hiding a few table rows in css as a default
when a page loads without resorting to Javascript?
[snip]
What's the proper way of hiding a few table rows in css as a default
when a page loads without resorting to Javascript?
There is no "proper way" because you shouldn't do it. If you intend to use
scripting to show and hide rows, only scripting should do that.
What if the user agent hides the rows, but it cannot perform the script
actions to show them again? How are your users supposed to effectively
access the content?
As I've said previously, hide the rows with script. If they can be hidden
that way, you can be sure the user can show them again.
Mike
John said:So to show some rows I use <tbody style="display: table-row-group;">
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.