Managing Page content

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • phpmagesh
    New Member
    • Nov 2008
    • 119

    Managing Page content

    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
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    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.

    Comment

    • phpmagesh
      New Member
      • Nov 2008
      • 119

      #3
      Originally posted by acoder
      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.

      Comment

      • acoder
        Recognized Expert MVP
        • Nov 2006
        • 16032

        #4
        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.

        Comment

        • phpmagesh
          New Member
          • Nov 2008
          • 119

          #5
          Thank you so much, this cleared my doubt,

          Nice to meet you.

          Comment

          • acoder
            Recognized Expert MVP
            • Nov 2006
            • 16032

            #6
            You're welcome. Glad to help.

            Comment

            Working...