Advertisement

07.07.2008 at 02:50AM PDT, ID: 23542790
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.3

CSS / Javascript problem on Firefox

Asked by giligatech in Cascading Style Sheets (CSS), JavaScript, Hypertext Markup Language (HTML)

Tags: ,

Hi,
I created a table and inside a <td> I created another table.
Every time you click on the td, the table is shown / hidden.
The table inside is with width 100%.
The problem is that on firefox, when you show the table, it's somehow shrinks.....
you can see that in Internet Explorer the problem doesn't occurs.

Below is the code:

ThanksStart Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Untitled Page</title>
    
    <script language="javascript">
        function showTicket(id)
        {
	        if (document.getElementById(id).style.display == 'none')
		        document.getElementById(id).style.display = 'block';	  
	        else
		        document.getElementById(id).style.display = 'none';
        }
    
    </script>
 
</head>
<body>
<div align="center">
    <table class="MainGridCss" cellpadding="0" cellspacing="0" border="0" style="width: 683px; border-collapse: collapse;">
        <tr style="background-color: #E5F3FF; border-style: None; height: 20px;">
            <th>1</th>
            <th>2</th>
            <th>3</th>
            <th>4</th>
            <th>5</th>
            <th>6</th>
            <th>7</th>
        </tr>
        
        <tr onmouseover="this.style.cursor='hand';this.style.backgroundColor='#dadada'" onmouseout="this.style.backgroundColor='#ffffff'" onclick="showTicket('tbl1');">
            <td>1516</td>
            <td>18/06/2008 12:00:00</td>
            <td>Classic</td>
            <td>
                <div style='width: 160px;'>
                    <div style='width: 20px; text-align: center; float: left'>A</div>
                    <div style='width: 20px; text-align: center; float: left'>10</div>
                    <div style='width: 20px; text-align: center; float: left'>A</div>
                    <div style='width: 20px; text-align: center; float: left'>J</div>
                    <div style='width: 20px; text-align: center; float: left'>A</div>
                    <div style='width: 20px; text-align: center; float: left'>K</div>
                    <div style='width: 20px; text-align: center; float: left'>A</div>
                    <div style='width: 20px; text-align: center; float: left'>9</div>
                </div>
            </td>
            <td>123213213</td>
            <td>321213213</td>
            <td>asdsadsad</td>
        </tr>
        <tr>
            <td align="center" colspan="7">
                <table cellpadding="0" cellspacing="0" style="width: 100%; border: solid 1px #e6e6e6; display: none;" id="tbl1">
                    <tr style="background-color: #e6e6e6; border-style: None; height: 15px;">
                        <th>New 1</th>
                        <th>New 2</th>
                        <th>New 3</th>
                        <th>New 4</th>
                        <th>New 5</th>
                    </tr>
                    <tr>
                        <td>1516</td>
                        <td>18/06/2008 12:00:00</td>
                        <td>
                            <div style='width: 160px;'>
                                <div style='width: 20px; text-align: center; float: left'>A</div>
                                <div style='width: 20px; text-align: center; float: left'>10</div>
                                <div style='width: 20px; text-align: center; float: left'>A</div>
                                <div style='width: 20px; text-align: center; float: left'>J</div>
                                <div style='width: 20px; text-align: center; float: left'>A</div>
                                <div style='width: 20px; text-align: center; float: left'>K</div>
                                <div style='width: 20px; text-align: center; float: left'>A</div>
                                <div style='width: 20px; text-align: center; float: left'>9</div>
                            </div>
                        </td>
                        <td>sdfdsfdsf</td>
                        <td>sdfdsfdsf</td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr onmouseover="this.style.cursor='hand';this.style.backgroundColor='#dadada'" onmouseout="this.style.backgroundColor='#ffffff'">
            <td>1516</td>
            <td>18/06/2008 12:00:00</td>
            <td>Classic</td>
            <td>
                <div style='width: 160px;'>
                    <div style='width: 20px; text-align: center; float: left'>A</div>
                    <div style='width: 20px; text-align: center; float: left'>10</div>
                    <div style='width: 20px; text-align: center; float: left'>A</div>
                    <div style='width: 20px; text-align: center; float: left'>J</div>
                    <div style='width: 20px; text-align: center; float: left'>A</div>
                    <div style='width: 20px; text-align: center; float: left'>K</div>
                    <div style='width: 20px; text-align: center; float: left'>A</div>
                    <div style='width: 20px; text-align: center; float: left'>9</div>
                </div>
            </td>
            <td>123213213</td>
            <td>321213213</td>
            <td>asdsadsad</td>
        </tr> 
    </table>
    </div>
</body>
</html>
[+][-]07.07.2008 at 03:51AM PDT, ID: 21943894

View this solution now by starting your 14-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Cascading Style Sheets (CSS), JavaScript, Hypertext Markup Language (HTML)
Tags: FireFox, CSS, JavaScript, HTML
Sign Up Now!
Solution Provided By: william007
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20081112-EE-VQP-43 / EE_QW_2_20070628