Forums

This topic is locked

scrollbar news section

Posted 17 Jul 2005 02:52:50
1
has voted
17 Jul 2005 02:52:50 Duane Valentino posted:
Hi all,

I am a relative beginnier when it comes to Dreamweaver MX so what I'm trying to do is build a page with a small scrollbar section that houses news comments.

Examples like www.semipermanent.com
www.pixelsurgeon.com

Nice and simple though, no rss feed or anyhing like that

Replies

Replied 18 Jul 2005 00:34:19
18 Jul 2005 00:34:19 Jeremy Conn replied:
Two common ways that I can think of are either a DIV with a hidden section or an iFrame. I'll show you how to do it with the DIV.

<b>DIV WITH CSS ATTRIBUTES</b>
Simply place a DIV into your desired page with the following settings. Adjust the 2 size elements so that your DIV extends to fill whatever space is beyond it. Everything within the DIV will be displayed, and everything 'longer' than the DIV height will be accessible through scrollbar.

EXAMPLE CODE: (Change items marked in <font color=green>GREEN</font id=green>
&lt;DIV align="left" style="BORDER: 0px ; OVERFLOW: auto; <font color=green>WIDTH: 176px; HEIGHT: 304px</font id=green>;"&gt;
Your news goes here.
&lt;/DIV&gt;


<b>Connman21</b>

www.conncreativemedia.com
DWMX2004 | ASP/VB | IIS5 | Access/SQL2000
Replied 18 Jul 2005 05:13:04
18 Jul 2005 05:13:04 Duane Valentino replied:
Thank you for the help, its totally appreciated. I'm going to try it out so I'll post how it goes.



Replied 18 Jul 2005 06:19:17
18 Jul 2005 06:19:17 Duane Valentino replied:
It works great but, there is one worry I have which is, when inputting text in design view in Dreamweaver MX it moves the tables down and makes the design look off. But when viewed in the browser nothing seems to be wrong.

Any reasons why? An explaination would help big time.

Thanks
Replied 18 Jul 2005 16:48:57
18 Jul 2005 16:48:57 Jeremy Conn replied:
It looks "off" in design view because the content actually IS too long, but the OVERFLOW attribute on the DIV makes that content hidden via the browser, resulting in the scrollbar. So, there is nothing wrong, it is just Dreamweaver showing the real scenario in design view.

<b>Connman21</b>

www.conncreativemedia.com
DWMX2004 | ASP/VB | IIS5 | Access/SQL2000
Replied 18 Jul 2005 23:18:33
18 Jul 2005 23:18:33 Duane Valentino replied:
Ok, thanks Jeremy. I just needed to know if that was actual problem to deal with but thanks once again for putting a beginner’s mind at ease.
Replied 19 Jul 2005 05:09:31
19 Jul 2005 05:09:31 Jeremy Conn replied:
No problem... glad I could help.

<b>Connman21</b>

www.conncreativemedia.com
DWMX2004 | ASP/VB | IIS5 | Access/SQL2000

Reply to this topic