Multiline text boxes

G

gjtired

Hi, I'm not sure the best way to do something and I hope someone can
help me. I'm developing a web application that a user enters test
questions in. I store the questions in a database. When a person takes
the test I need to be able to display the questions. I can use a
multiline text box but I want the user to see the entire question and
not have to use the scroll bars. I also don't want the scroll bars
visible if they are not used.

I basically have 2 questions for you.
1. Can I make it so the scroll bars are not displayed for a
multiline textbox?
2. Am I going about this all the wrong way? If so, how should I
do it?

Thanks
 
D

DotNet Coder

Hi gjtired,

If the user does not have to edit the text displayed, I would use a div
with the "overflow: auto;" style applied to it.

Something like this:
<div style="overflow: auto; width: 150px; height: 250px;">Text
here</div> (or you could use: <div style="overflow-y: auto; width:
150px; height: 250px;">Text here</div>).

On most browsers, the scroll bars will only display if the text is
larger than the area specified.

HTH,
~d
 
G

gjtired

Thanks for your reply. I'm using IE 6.0 and the scroll bars stay
visible. Any suggestions on how to get rid of them?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top