/    Sign up×
Community /Pin to ProfileBookmark

display:none for <tr> in opera

Example:

[code=php]
<table width=”500px” border=”1″>
<tr>
<td width=”20px” onClick=”var r = document.getElementById(‘row1′); r.style.visibility=’hidden’;r.style.display=’none'”>

</td>
<td onClick=”var r = document.getElementById(‘row1′); r.style.visibility=’visible’;r.style.display=””>
+
</td>
</tr>
<tr id=”row1″>
<td>
&#1074;
</td>
<td>
&#1075;
</td>
</tr>
</table>
[/code]

It works fine in IE and mozilla. But in opera first column enlarge enormously after onclick .

What can i do?

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@Declan1991Apr 22.2008 — Take out the r.style.visibility="hidden";
Copy linkTweet thisAlerts:
@KolosauthorApr 23.2008 — 
Take out the r.style.visibility="hidden";
[/QUOTE]


Had no effect.

I think the matter in "display", but not in "visibility". Threre is no enlargement If take out changing of the r.style.display;
Copy linkTweet thisAlerts:
@KolosauthorApr 23.2008 — Solution is simple: <table style="table-layout:fixed">
×

Success!

Help @Kolos 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.18,
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,
)...