Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > scrolling within div triggered by jump:restrict to div

Reply
Thread Tools

scrolling within div triggered by jump:restrict to div

 
 
stan
Guest
Posts: n/a
 
      01-18-2007
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>bl ah<br>
blah<br>blah<br>blah<br>blah<br>blah<br>blah<br>bl ah<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>bl ah<br>
</div>
blah<br>blah<br>blah<br>blah<br>blah<br>blah<br>bl ah<br>blah<br>
blah<br>blah<br>blah<br>blah<br>blah<br>blah<br>bl ah<br>blah<br>
blah<br>blah<br>blah<br>blah<br>blah<br>blah<br>bl ah<br>blah<br>
blah<br>blah<br>blah<br>blah<br>blah<br>blah<br>bl ah<br>blah<br>
</html>

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

Stan

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
smooth scrolling & auto scrolling sillyputty Firefox 1 08-24-2007 02:10 AM
scrolling within div stan@capitalcityrealty.ca Javascript 5 01-15-2007 10:26 PM
internal link/jump within div that has vertical scrolling stan@capitalcityrealty.ca Javascript 0 12-25-2006 08:52 PM
div within div Tom HTML 10 01-15-2005 07:29 PM
Block DIV within a block DIV? Noozer HTML 3 01-06-2005 10:24 PM



Advertisments