This is a discussion on "A Frame without using frames" within the Web Page Design section. This forum, and the thread "A Frame without using frames are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
A Frame without using frames
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
A Frame without using frames
Hi All,
Had lots of success with my first ask for help on this site so thought I would try again... I want to put some text onto a web page that will need to be scrolled through by the user so i need to embed a scroll bar within the page itself which works seperatley from the browser scroll bar. I can do this quite simply by using a frame but it seems that is no longer best practice. Can anyone point me in the right direction. I am a Dreamweaver MX user and not too hot with code (shame on me)! Any help you could give would be much appreciated. Cheers, Jim |
|
|
|
|||
|
Re: A Frame without using frames
You need to make a <div> and adjust the scroll.
|
|
|||
|
Re: A Frame without using frames
As sypher says you need to place the text within a div. Set the overflow attribute to either scroll or auto.
The theory is that 'scroll' causes them to be there all the time, and 'auto only places them there if the amount of text exceeds the size of the div. As you might expect, you don't get exactly the same response across all browsers, even some placing a horizontal scroll bar whether you need one or not. I, as do a lot of people, mostly dislike the use of on-page scroll bars and urge you to think if this is a really necessary evil before you implement this. |
|
|||
|
Re: A Frame without using frames
I actually don't know this either i've never had the need for a scrolling textbox, I don't fully understand your explaination, When I look at the properties of a <div> tag I do not see an overflow option and wouldn't the div need to be given an exact size in order to allow it to overflow? Isn't that a layer?
Sorry if that sounds stupid but i'm not grasping this, Anthony |
|
|||
|
Re: A Frame without using frames
As for the position
|
|
|||
|
Re: A Frame without using frames
ah you must forgive me, i was looking in the wrong place! i was looking in dreamweaver at their defined commands for the funcion overflow and they were silly! sorry i was meant to do it myself in notepad :P thanks i have tested it now and see the diff between auto and scroll.
Thanks again, Anthony (p.s. have a brownie!) |
![]() |
| Tags |
| frame, without, using, frames |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| EASY PEASY Displaying frame address in another frame question | molotov | JavaScript Forum | 3 | Nov 20th, 2007 17:29 |
| CSS #frame height and PHP | SCDWB | Web Page Design | 6 | May 12th, 2007 22:45 |
| frames or not to frame | simonb | Web Page Design | 6 | Jan 25th, 2007 15:36 |
| Get frame contents | technosponge | JavaScript Forum | 3 | Feb 5th, 2006 03:04 |
| <frame> | Fox | Web Page Design | 1 | Aug 26th, 2005 20:58 |