473,386 Members | 1,841 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Managing Page content

119 100+
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
5 1199
acoder
16,027 Expert Mod 8TB
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
phpmagesh
119 100+
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
16,027 Expert Mod 8TB
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
phpmagesh
119 100+
Thank you so much, this cleared my doubt,

Nice to meet you.
Nov 14 '08 #5
acoder
16,027 Expert Mod 8TB
You're welcome. Glad to help.
Nov 14 '08 #6

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

Similar topics

0
by: CitizenX | last post by:
I am currently working on an idea that will make my life a whole lot simpler. I have been looking at many different content management systems and have not found one that does what I need or is as...
1
by: Edward Stevens | last post by:
The IDE Start Page in .Net 2003 contains a list of the projects you have recently worked on. Clicking on any of these opens that particular project. Fine. Unfortunately, one of my projects has...
21
by: dub | last post by:
Hello web folks... I've been desigining web pages for 13 years using my trusty text editor (UltraEdit) and in depth knowledge of HTML. I'm truly a text editor ninja at this point. I am frequently...
8
by: Braky Wacky | last post by:
Hello, I have an ASP.NET webpage that uses an instance of System.Web.UI.HtmlControls.HtmlInputFile for uploading files to our server. I came across the documentation at MSDN for upping the...
14
by: Nick Gilbert | last post by:
Hi, I have an asp.net application which runs from a CD-ROM using Cassini. As such, it is single user only. The application connects to an Access database when it is loaded, and keeps the same...
4
by: Gary Hasler | last post by:
Our site, of which about half the content is PHP pages and is on a Linux Apache server, is currently administered with Microsoft FrontPage 2003. Okay, now that you've finished laughing, let me...
9
by: Chris Pearl | last post by:
Are there Python tools to help webmasters manage static websites? I'm talking about regenerating an entire static website - all the HTML files in their appropriate directories and...
4
by: kiran.inbng | last post by:
I am working on a project which requires converting an existing VB application into web based application.The web application consists following , 1. Tab control on the left side containing 4...
4
by: ddolgoff | last post by:
Hello to everyone, I have a problem of managing a session with cookies and "session_set_save_handler()". I want to use php's built-in session management mechanism with user-level session storage...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.