/    Sign up×
Community /Pin to ProfileBookmark

cant get this to work in IE

Can someone help me, the framecontentleft div doesnt show up at all in IE

stylesheet

[CODE]/* CSS Document */
body{
margin: 0;
padding: 0;
border: 0;
overflow: hidden;
height: 100%;
max-height: 100%;
}

#framecontentTop{
left: 0; /*Set left value to WidthOfLeftFrameDiv*/
right: 0;
width: auto;
height: 80px; /*Height of top frame div*/
overflow: hidden; /*Disable scrollbars. Set to “scroll” to enable*/
background-image:url(../images/bar.jpg);
background-repeat:repeat-x;
font-size:36px;
}

#framecontentLeft{
position: absolute;
top: 80px;
left: 0;
width: 200px; /*Width of left frame div*/
height: 100%;
overflow: hidden; /*Disable scrollbars. Set to “scroll” to enable*/
background-color: #999999;
color: white;
}

#content{
position: fixed;
left: 200px; /*Set left value to WidthOfLeftFrameDiv*/
top: 80px; /*Set top value to HeightOfTopFrameDiv*/
right: 0;
bottom: 0;
overflow: auto;
background-color:#666666;
}

.innertube{
margin: 3px; /*Margins for inner DIV inside each DIV (to provide padding)*/
color:white;
}

.main_content{
margin: 3px; /*Margins for inner DIV inside each DIV (to provide padding)*/
color:black;

}

.titleframe{
margin: 3px; /*Margins for inner DIV inside each DIV (to provide padding)*/
color:white;
font-size:36px;
}

* html #content{ /*IE6 hack*/
padding: 0px 0 0 200px; /*Set value to (HeightOfTopFrameDiv 0 0 WidthOfLeftFrameDiv)*/
height: 100%;
width: 100%;
}

* html #framecontentTop{ /*IE6 hack*/
width: 100%;
}

[/CODE]

page html

[CODE]

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml” xml:lang=”en” lang=”en”><head><!–Force IE6 into quirks mode with this comment tag–>

<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″><title>SITE NAME</title>

<link rel=”stylesheet” type=”text/css” href=”SITE%20NAME_files/styles.css”>
<script type=”text/javascript” src=”SITE%20NAME_files/ajax.js”>

</script></head><body>
<div id=”framecontentTop”>
<div class=”innertube”>
<table border=”0″ cellpadding=”0″ cellspacing=”0″ width=”100%”>
<tbody><tr>
<td width=”4%”><img src=”SITE%20NAME_files/Logo.gif”></td>
<td width=”96%”><span class=”titleframe”>NFL Confidence pool</span></td>
</tr>
</tbody></table>
</div>
</div>
<div id=”framecontentLeft”>
<div class=”innertube”> <a href=’javascript:requestContent(“app/1index.html”);’>test</a></div>
</div>
<div id=”content”><div class=”main_content”>
Ajax worked!
</div>
</div>
</body></html>[/CODE]

to post a comment
CSS

1 Comments(s)

Copy linkTweet thisAlerts:
@WebJoelOct 01.2007 — "framecontentleft" works just fine so far as I can tell. I question the logic of making the content's overflow "hidden" though... if you populate this with dummy text with "overflow:hidden;", the text that exceeds the height of the box is removed from view with no means to reveal it. "height:100%;" means "100% of the viewscreen height", so this varies from computer to computer. "height:auto;" would at least make the DIV expand vertically as text is added.

If you want 100% height to work on an element, the parent element also had to be 100% height ( html, body {height:100%;} ) and you'd probably need to use a page-enclosing wrapper, also set to 100% height.

Options for the 'overflow' of the framecontentleft would be to use "overflow:auto;" to not have any scrolling [I]unless[/I] the content exceeds the height, and then it would only be vertical scrollbars made apparent.

I'm not sure what the purpose of the anchor-wrapped-in-a-DIV is for, -is this required to be wrapped this way?

And why would you want this? ? body{

margin: 0;

padding: 0;

border: 0;

[B]overflow: hidden;[/B]

height: 100%;

max-height: 100%;

}[/QUOTE]
×

Success!

Help @shaun_daniels 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.4,
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: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...