By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,963 Members | 1,863 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,963 IT Pros & Developers. It's quick & easy.

Managing Page content

100+
P: 119
Hai to all,

I have my html file. but the page height is small since i used small area to show my content.

now what i want is, i want to show a big content in that page, the page size should not get resize.

i dont know how to use read more option in that.. i want to do some thing similar to that.

i already posted this query in html forum, but i got reply to use javascript,

i m new to javascript,

can any one help me please
Nov 14 '08 #1
Share this Question
Share on Google+
5 Replies


acoder
Expert Mod 15k+
P: 16,027
Is it OK to see a scroll bar instead of the "Read more..."? If so, you can avoid JavaScript altogether and just use the overflow property.
Nov 14 '08 #2

100+
P: 119
Is it OK to see a scroll bar instead of the "Read more..."? If so, you can avoid JavaScript altogether and just use the overflow property.

Can you please explain me fully. i dont have idea on overflow property,

Can you help me in that please. Is it easy to implement that property in my html page.

thanks in advance.
Nov 14 '08 #3

acoder
Expert Mod 15k+
P: 16,027
This is a simple example:
[html]<html>
<head>
<style type="text/css">
#div1
{
height:300px;
overflow:scroll;
}
</style>
</head>
<body>

<div id="div1">
This is some text.<br>
This is some text.<br>
This is some text.<br>
This is some text.<br>
This is some text.<br>
This is some text.<br>
This is some text.<br>
This is some text.<br>
This is some text.<br>
This is some text.<br>
This is some text.<br>
This is some text.<br>
This is some text.<br>
This is some text.<br>
This is some text.<br>
This is some text.<br>
This is some text.<br>
This is some text.<br>
This is some text.<br>
This is some text.<br>
This is some text.<br>
This is some text.<br>
This is some text.<br>
This is some text.<br>
This is some text.<br>
This is some text.<br>
This is some text.<br>
This is some text.<br>
This is some text.<br>
This is some text.<br>
This is some text.<br>
This is some text.<br>
This is some text.<br>
This is some text.<br>
</div>

</body>
</html>[/html]Note that if you want to avoid a fixed height and depend on the dynamic page height, then you will need JavaScript.
Nov 14 '08 #4

100+
P: 119
Thank you so much, this cleared my doubt,

Nice to meet you.
Nov 14 '08 #5

acoder
Expert Mod 15k+
P: 16,027
You're welcome. Glad to help.
Nov 14 '08 #6

Post your reply

Sign in to post your reply or Sign up for a free account.