Forums
This topic is locked
Scroll bar within an APDiv (In DW CS3)
Posted 11 Mar 2008 14:16:41
1
has voted
11 Mar 2008 14:16:41 Kieran Pearce posted:
Hi,I'm currently working on a website that only has a small area for content right in the middle of the layout (meaning i cant let content go all the way down the page)
i've been trying all sorts of codes inside my APDiv to add a scroll bar so that text doesnt go below the area i want but nothing seems to be working.
Could anyone suggest another method i could use or send me a link to some code that will work please?
Many Thanks,
Kieran
Replies
Replied 17 Mar 2008 13:44:31
17 Mar 2008 13:44:31 Kieran Pearce replied:
For those of you who have also had this problem i found that the following code works:
<div id="maincontent">
<table width="100" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><div style="border: 0px solid rgb(0, 0, 0); width: 495px; height: 373px; overflow: auto;">ADD YOUR CONTENT HERE</div></td>
</tr>
</table>
</div>
this will give you a one celled table with a scrollbar inside, just edit the name of the div id and change the sizes and you have a scrollbar inside a layer <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
<div id="maincontent">
<table width="100" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><div style="border: 0px solid rgb(0, 0, 0); width: 495px; height: 373px; overflow: auto;">ADD YOUR CONTENT HERE</div></td>
</tr>
</table>
</div>
this will give you a one celled table with a scrollbar inside, just edit the name of the div id and change the sizes and you have a scrollbar inside a layer <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>