Scrollbox in Div? |
Scrollbox in Div? |
May 31 2007, 03:41 PM
Post
#1
|
|
|
Cait ![]() ![]() Group: Member Posts: 12 Joined: Oct 2006 Member No: 474,829 |
Is it possible to just put a scroll box in a div instead of having the auto flow?
|
|
|
|
![]() |
May 31 2007, 07:16 PM
Post
#2
|
|
![]() i lost weight with Mulder! ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Designer Posts: 4,070 Joined: Jan 2005 Member No: 79,019 |
to have a scrolling div, all you need to do is assign a height to it.
ex: CODE <style type='text/css'> #div { position: absolute; width: 400px; height: 400px; left: ___; top: ___;} </style> <div id="div">blah blah</div> Once the content gets bigger than the assigned height (400px) it will scroll |
|
|
|
Jun 1 2007, 02:35 PM
Post
#3
|
|
|
Cait ![]() ![]() Group: Member Posts: 12 Joined: Oct 2006 Member No: 474,829 |
http://i15.photobucket.com/albums/a398/cai...bjnbkjfnvfr.jpg
Ok, I don't know if it's possible but I was wanting to put a scroll box under the comment box so you would have to keep scroll to read what i put in there. Is it possible in any way? |
|
|
|
Jun 1 2007, 02:59 PM
Post
#4
|
|
![]() i lost weight with Mulder! ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Designer Posts: 4,070 Joined: Jan 2005 Member No: 79,019 |
thats just a textarea
CODE <textarea>blah</textarea> you can edit it with css: CODE <style type='text/css'>
textarea { font:;} </style> |
|
|
|
Jun 3 2007, 01:19 PM
Post
#5
|
|
|
Cait ![]() ![]() Group: Member Posts: 12 Joined: Oct 2006 Member No: 474,829 |
Thxs that worked, but can you center the words, and use bold and underlines with the text?
|
|
|
|
Jun 3 2007, 02:09 PM
Post
#6
|
|
![]() i lost weight with Mulder! ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Designer Posts: 4,070 Joined: Jan 2005 Member No: 79,019 |
I don't think you can use <b> or <u> in textareas..
as for centering: CODE <style type='text/css'>
input, textarea { text-align: center;} </style> |
|
|
|
Jun 7 2007, 05:28 PM
Post
#7
|
|
![]() Floating on a cloud of durrrr...... ![]() Group: Member Posts: 7 Joined: Jun 2007 Member No: 532,213 |
I don't think you can use <b> or <u> in textareas.. as for centering: CODE <style type='text/css'> input, textarea { text-align: center;} </style> No codes will have any effect if they're placed within a textarea. Those are often used for sample scripts and codes, because they won't affect the rest of the page. |
|
|
|
![]() ![]() |