Closed Bug 282492 Opened 20 years ago Closed 20 years ago

A table is not displayed properly when style="display: block" is used in <tr> or <table>.

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 97506

People

(Reporter: Jano1122, Assigned: bugzilla)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

I wanted to hide a line of a table dynamicly. The first thing that came to my
mind is to use style="display: block" in <tr>. Well, maybe next release :-)
Can you show me how to do that in Firefox or Netscape? This bug is in both. 
Check my example and you will see what I am talking about.

<table width="700" border="1">
	<tr>
		<td align="left">tab 1 left</td>
		<td align="center">tab 2 center</td>
		<td align="right">tab 3 right</td>
	</tr>
	<tr style="display: block">
		<td align="left">tab 1 left</td>
		<td align="center">tab 2 center</td>
		<td align="right">tab 3 right</td>
	</tr>
</table>




Reproducible: Always

Steps to Reproduce:
1. Just use my example on a page.
2.
3.

Actual Results:  
The second line cells are not aligned properly.

Expected Results:  
The second line cells are suppose to look like in the first line.
Default value of the table row is "table-row", instead toggle between "none" and
"" for a cross-browser solution.

*** This bug has been marked as a duplicate of 97506 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Thanks Jose, you saved me :-)
You need to log in before you can comment on or make changes to this bug.