/    Sign up×
Community /Pin to ProfileBookmark

Bottom layer should take rest space

I have 2 div .In top div i have menu.In bottom div i have iframe .
i want that top div should take about 20 % space and bottom div take rest of the space .Currently scrollbar are appear both horizontally and vertically .
How can i remove this scrollbar.

to post a comment
HTML

2 Comments(s)

Copy linkTweet thisAlerts:
@WebJoelJul 18.2007 — Possibly, make the height of the scrollbar be height:auto; to use-up whatever height is available for the user's screen height.

As for the horizontal scrollbar, -does the page have a container with a defined width? Don't forget that if scrollbars are present, they are considered to be part of the total width (about an extra 20-px.). A all-enclosing "wrapper" DIV set to 100% or 99% of the width and 100% height, and the contents inside this, might solve the problem. To make height:100% work correctly, you have to state a line of CSS to make the parent elements (body & html) be 100% height:

<style>

body, html {height:100%;}

</style>

Seeing the code would make it easier to assist. ?
Copy linkTweet thisAlerts:
@d17mayauthorJul 19.2007 — Possibly, make the height of the scrollbar be height:auto; to use-up whatever height is available for the user's screen height.

As for the horizontal scrollbar, -does the page have a container with a defined width? Don't forget that if scrollbars are present, they are considered to be part of the total width (about an extra 20-px.). A all-enclosing "wrapper" DIV set to 100% or 99% of the width and 100% height, and the contents inside this, might solve the problem. To make height:100% work correctly, you have to state a line of CSS to make the parent elements (body & html) be 100% height:

<style>

body, html {height:100%;}

</style>

Seeing the code would make it easier to assist. ?[/QUOTE]


I give a sample code

<body class="body">

<div class="container">

<div class="top">

some contents here

</div>

<div class="bottom">

<iframe class="iframeclass></iframe>

</div>

</div>

</body>

how i design this classes

The content of iframe is dynamic its heihgt change everytime page refresh.

Thanks
×

Success!

Help @d17may 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 6.2,
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: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

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