Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
How to make a textarea like scrollable box in a html file
Old 11-25-2006, 10:49 AM How to make a textarea like scrollable box in a html file
dansgalaxy's Avatar
Defies a Status

Posts: 6,521
Name: Dan
Location: Swindon
Trades: 0
How can i make a textarea box like scrollable section on my page.
i want it to look exatly like a frame but the content being in the same file as the rest of the document.
if this makes any sense i hope someone can help...
dansgalaxy is offline
Reply With Quote
View Public Profile Visit dansgalaxy's homepage!
 
 
Register now for full access!
Old 11-25-2006, 10:59 AM Re: How to make a textarea like scrollable box in a html file
Mooofasa's Avatar
Defies a Status

Posts: 1,611
Name: Michael (mik) Land
Location: England
Trades: 0
Give it so many rows high, then when extra content appears it will automatically scroll.
__________________

Please login or register to view this content. Registration is FREE
- Tumblog with thoughts, quotes, links, videos, images and my creations.

Please login or register to view this content. Registration is FREE
- The best free web browser.

Please login or register to view this content. Registration is FREE
- Firefox is now Firefail.
Mooofasa is offline
Reply With Quote
View Public Profile Visit Mooofasa's homepage!
 
Old 11-25-2006, 11:07 AM Re: How to make a textarea like scrollable box in a html file
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,935
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
Two ways:
Code:
<textarea rows="4" cols="50">  (adjust numbers as appropriate.)
...
</textarea>
or
Code:
<div style="width:  600px;  height:  600px;  overflow:  scroll;"> (adjust numbers as appropriate...if you don't want the scrollbars to show up, change scroll; to auto; )
...
</div>
The difference between the two is that the content within the div (assuming it's coded correctly) will be included as search engine usable text whereas the textarea content will not.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 11-25-2006, 12:08 PM Re: How to make a textarea like scrollable box in a html file
Mooofasa's Avatar
Defies a Status

Posts: 1,611
Name: Michael (mik) Land
Location: England
Trades: 0
Just remember not to use overflow: scroll on any other elements (it collapses the element in IE/mac).
__________________

Please login or register to view this content. Registration is FREE
- Tumblog with thoughts, quotes, links, videos, images and my creations.

Please login or register to view this content. Registration is FREE
- The best free web browser.

Please login or register to view this content. Registration is FREE
- Firefox is now Firefail.
Mooofasa is offline
Reply With Quote
View Public Profile Visit Mooofasa's homepage!
 
Old 11-25-2006, 02:31 PM Re: How to make a textarea like scrollable box in a html file
dansgalaxy's Avatar
Defies a Status

Posts: 6,521
Name: Dan
Location: Swindon
Trades: 0
Thanks very much for your replies i knew about the textarea method but i wanted to have it look like a webpage not a input area if u know what i mean...

anyway i was using the div way but for some reason when i made it larger than 200px wide/height the scroll bars disappeard... no idea why and u had to scroll with keys
lol
dansgalaxy is offline
Reply With Quote
View Public Profile Visit dansgalaxy's homepage!
 
Old 11-25-2006, 02:33 PM Re: How to make a textarea like scrollable box in a html file
dansgalaxy's Avatar
Defies a Status

Posts: 6,521
Name: Dan
Location: Swindon
Trades: 0
Quote:
Originally Posted by Mooofasa View Post
Just remember not to use overflow: scroll on any other elements (it collapses the element in IE/mac).
what do u mean it collapses the elements? can u explain what exactly u mean plz
dansgalaxy is offline
Reply With Quote
View Public Profile Visit dansgalaxy's homepage!
 
Old 11-25-2006, 06:33 PM Re: How to make a textarea like scrollable box in a html file
Mooofasa's Avatar
Defies a Status

Posts: 1,611
Name: Michael (mik) Land
Location: England
Trades: 0
The elements will be closed, like an accordian.

You can change the font formatting of the textarea with simple CSS. However, the div is more advisable.
__________________

Please login or register to view this content. Registration is FREE
- Tumblog with thoughts, quotes, links, videos, images and my creations.

Please login or register to view this content. Registration is FREE
- The best free web browser.

Please login or register to view this content. Registration is FREE
- Firefox is now Firefail.
Mooofasa is offline
Reply With Quote
View Public Profile Visit Mooofasa's homepage!
 
Reply     « Reply to How to make a textarea like scrollable box in a html file
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 2.12279 seconds with 12 queries