A Frame without using frames

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.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jun 16th, 2006, 13:57
New Member
Join Date: Jun 2006
Location: manchester
Age: 31
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote

  #2 (permalink)  
Old Jun 16th, 2006, 14:42
Most Reputable Member
Join Date: Aug 2005
Location: North Wales, United Kingdom
Age: 21
Posts: 1,093
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to sypher
Re: A Frame without using frames

You need to make a <div> and adjust the scroll.
Reply With Quote
  #3 (permalink)  
Old Jun 16th, 2006, 15:55
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to ukgeoff
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.
Reply With Quote
  #4 (permalink)  
Old Jun 16th, 2006, 20:03
Up'n'Coming Member
Join Date: Jun 2006
Location: Northern Ireland, United Kingdom
Age: 22
Posts: 81
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Antwan
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
Reply With Quote
  #5 (permalink)  
Old Jun 16th, 2006, 21:31
Most Reputable Member
Join Date: Aug 2005
Location: North Wales, United Kingdom
Age: 21
Posts: 1,093
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to sypher
Re: A Frame without using frames

Code: Select all
overflow: scroll
Add that in your css file for the div you want to have the scroll bars onto.

As for the position
Code: Select all
width:207px; height:194px;
just basic css.
Reply With Quote
  #6 (permalink)  
Old Jun 16th, 2006, 21:52
Up'n'Coming Member
Join Date: Jun 2006
Location: Northern Ireland, United Kingdom
Age: 22
Posts: 81
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Antwan
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!)
Reply With Quote
  #7 (permalink)  
Old Jun 16th, 2006, 22:10
Most Reputable Member
Join Date: Aug 2005
Location: North Wales, United Kingdom
Age: 21
Posts: 1,093
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to sypher
Re: A Frame without using frames

thanks alot
Reply With Quote
Reply

Tags
frame, without, using, frames

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 On

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


All times are GMT. The time now is 17:55.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43