scrolling within div triggered by jump:restrict to div

Discussion in 'HTML' started by stan, Jan 18, 2007.

  1. stan

    stan Guest

    In the code below, the jump within the div causes scrolling within the
    div and as well withing the page as a whole. It's only necessary that
    this scrolling take place within the div. I am looking for a way to
    restrict the rolling, triggered by the jump, to the area within the
    div.

    Here is the code.

    <html>
    <head>
    <style type="text/css">
    ..sectionhead {
    text-align: left;
    background: #EBEBEB;
    height: 7.25em;
    width: 100%;
    border-style:ridge;
    border-width:thin;
    border-color:grey;
    float: left;
    margin-left:0px;
    margin-right:0px;
    overflow-y: auto;
    color: black;



    }


    </style>
    </head>
    <body>
    blah<br>blah<br>blah<br>blah<br>blah<br>blah<br>blah<br>
    blah<br>blah<br>blah<br>blah<br>blah<br>blah<br>blah<br>
    <div class="sectionhead">
    <a href="#test">go to "test"</a><br>
    text in div<br>text in div<br>text in div<br>text in div<br>
    <a name="test"></a>
    more text in div<br>more text in div<br>more text in div<br>
    more text in div<br>more text in div<br>more text in div<br>
    blah<br>blah<br>blah<br>blah<br>blah<br>blah<br>blah<br>
    </div>
    blah<br>blah<br>blah<br>blah<br>blah<br>blah<br>blah<br>blah<br>
    blah<br>blah<br>blah<br>blah<br>blah<br>blah<br>blah<br>blah<br>
    blah<br>blah<br>blah<br>blah<br>blah<br>blah<br>blah<br>blah<br>
    blah<br>blah<br>blah<br>blah<br>blah<br>blah<br>blah<br>blah<br>
    </html>

    ------------

    Stan
     
    stan, Jan 18, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    0
    Views:
    759
  2. Patrick S
    Replies:
    3
    Views:
    175
    Fred Oz
    Nov 11, 2004
  3. Eadwine Rose
    Replies:
    2
    Views:
    221
    Eadwine Rose
    Oct 15, 2006
  4. Replies:
    0
    Views:
    130
  5. scrolling within div

    , Jan 14, 2007, in forum: Javascript
    Replies:
    5
    Views:
    135
Loading...

Share This Page