I’m working on a website where I need to show/hide table rows. I got the feature working, but the CSS gets bad when I do show. I’m providing a working link; click the ‘More…’ link and see the action for an example. I’m using jQuery’s toggle(slow) for hiding and showing
I have a page built using tables:
If you see the section right side of image where the tick marks are there. After the tick mark the section moves to right hand side. This happened when I did put a code to show/hide the extra features.. any solution for this problem?
The page seems to display correctly in IE8. In Chrome and in FF the problem is that
display: blockelements inside a table make the browser render the table wrong if there are elements withoutdisplay: blockas well. A solution is either todisplay: blockto the firsttbodyelement already (this is far the easiest solution)display: nonefrom the.extra_propertieswhen showing the extra rows (and leaving thedisplay: blockoff as well) ordisplay: table-row-groupwhen showing. It’s to be noted, thatdisplay-row-groupdoesn’t work in IE, though.