/    Sign up×
Community /Pin to ProfileBookmark

Absolute positioned image disappears in IE 7

I have a td inside it I have a relatively positioned div. Inside the div there is an img and a ul. The img is positioned absolutely. The height of the div therefore depends on the height of the ul. The height of the img depends on the height of the div. This works great in FF 3.6. However, the absolute positioned img disappears in IE 7. I do not float anything. What is causing this?

CSS code:

[CODE]
#navLinksTD
{
padding:0px;
margin:0px;
}
#navLinksBoxDiv
{
position:relative;
width:100%;
height:100%;

padding:0px;
margin:0px;
}
#navLinksInBox
{
position:relative;
padding:0px;
margin:0px;
top:5px;
left:5px;
}
#navLinksBg
{
position:absolute;
width:100%;
height:100%;
top:0px;
left:0px;

right:0px;
bottom:0px;

margin:0px;
padding:0px;
}
[/CODE]

html code:

[CODE]
<table id=”myTable” width=”222px” cellspacing=”0px” cellpadding=”0px” border=”0px”>
<tbody>
<tr>
<td id=”leftColTopTdImg”><img width=”222px” height=”77px” src=”../leftcol_top.jpg”/>
</td>
</tr>
<tr><td id=”navLinksTD”>
<!–<div id=”navDivContainer”>–>
<div id=”navLinksBoxDiv”>
<img id=”navLinksBg” src=”../menu_combined_2r.jpg”/>
<ul id=”navLinksInBox”>
<li>
<a href=”#”>Driving While Intoxicated</a>
</li>
<li>
<a href=”#”>Sex Crimes</a>
</li>
<li>
<a href=”#”>2nd Driving While Intoxicated</a>
</li>
<li>
<a href=”#”>2nd Sex Crimes</a>
</li>
</ul>
<!–End of navLinksBoxDiv–>
</div>
<!–</div>–>
<img id=”menuBottom” src=”../menu_bottomedge.jpg” alt=”The bottom of the menu” />
<!–End of navLinksTD–>
</td>
</tr>
</tbody>
</table>

[/CODE]

to post a comment
HTML

1 Comments(s)

Copy linkTweet thisAlerts:
@Eye_for_VideoDec 12.2011 — Post a link to the actual page so we can test the behavior.

Eye for Video

www.cidigitalmedia.com
×

Success!

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