/    Sign up×
Community /Pin to ProfileBookmark

Scrollable box not working in IE

Here’s the problem a friend of mine is encounting:

ok i wanted to make a box to be scrollable if the height and width exceeded so it doesn’t stretch the site so i did the following:

CSS:

[CODE].contentBox {
display:block;
border-style: none;
border-color: 000;
padding:0px;
margin-top:0px;
width:600px;
overflow:auto
}

#boxcodescroll { max-height:400px; }[/CODE]

HTML:

[CODE]<!– BEGIN code_open –></span>
<table width=”90%” cellspacing=”1″ cellpadding=”3″ border=”0″ align=”center”>
<tr>
<td><span class=”genmed”><b>{L_CODE}:</b></span></td>
</tr>
<tr>
<td class=”code”><div class=”contentBox” id=”boxcodescroll”><!– END code_open –>
<!– BEGIN code_close –></div></td>
</tr>
</table>
<span class=”postbody”><!– END code_close –>[/CODE]

so basically in HTML i added the following to the table code:

[CODE]<div class=”contentBox” id=”boxcodescroll”>
and the closing tag
</div>[/CODE]

worked great on firefox and opera, but in IE (Internet Explorer) didn’t work at all, its like the whole CSS and HTML coding for the scrollbars is not even there. any ideas?

.

to post a comment
CSS

3 Comments(s)

Copy linkTweet thisAlerts:
@ToonMarinerFeb 09.2007 — firstly don't omit the has on the colour code - some browsers don't see the rest of the css if there is an error.

Second pre IE don't recognize max-height
Copy linkTweet thisAlerts:
@hitmanauthorFeb 09.2007 — What would be an alternative for max-height? I think that's what he is looking for
Copy linkTweet thisAlerts:
@WebJoelFeb 09.2007 — scrolling="yes" or scrolling="auto".
×

Success!

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