/    Sign up×
Community /Pin to ProfileBookmark

Simple Menu – CS difference between IE and Mozilla

Here’s the html…

<html>
<head>
<meta http-equiv=”Content-Language” content=”en-us”>
<meta http-equiv=”Content-Type” content=”text/html; charset=windows-1252″>
</head>
<body>
<table border=”1″ cellpadding=”0″ cellspacing=”0″ style=”border-collapse: collapse” bordercolor=”#111111″ width=”100%”>
<tr>
<td width=”20%”></td>
<td width=”20%”></td>
<td width=”20%”>
<div id=”menu1″ style=”position: absolute; z-index: 75; width: 20%; visibility: hidden; background-color: #00ff00;” onMouseOut=”document.getElementById(‘menu1’).style.visibility = ‘hidden'”>
<br>blah<br>blah<br>blah<br>
</div>
<a onClick=”document.getElementById(‘menu1’).style.visibility = ‘visible'”>expand</a></td>
<td width=”20%”></td>
<td width=”20%”></td>
</tr>
</table>
</body>
</html>

=================================
=================================

In Mozilla/Netscape the width=20% sets the width of the div to 20% of the page (which is what I want it to do). In IE it sets the width of the div to 20% of the parent cell. Why is it doing this and what is the work-around?

Thanks in advance.

to post a comment
CSS

0Be the first to comment 😎

×

Success!

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