/    Sign up×
Community /Pin to ProfileBookmark

div background image shrinks in ie

My background picture in my div works fine in FF and Safari but in IE it shrinks vertically so that there is about a 20-30px gap on the bottom. Here is the code:

[CODE].box_container{
width:827px;
margin-left: auto;
margin-right: auto;
height:auto;
}

.leftupper {
margin-top: 0px;
border:3px solid #000000;
width: 408px;
height: 300px;
background-color: #354e35;
background-image:url(/images/pillow.png);
background-repeat:no-repeat;
float: left;
}

.textbox {

font-size:85%;
width:340px;
height:240px;
margin-left:auto;
margin-right:auto;
margin-top:20px;
background-color:#ffffff;
border:3px solid black;
/* for IE */
filter:alpha(opacity=70);
opacity:0.6;

}
[/CODE]

[code=html]

<div class=”box_container”>
<div class=”leftupper”>
<div class=”textbox”>
<p>a bunch of text here </p>
</div>

</div>

[/code]

Thanks for the help!

to post a comment
CSS

0Be the first to comment 😎

×

Success!

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