Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Markup (HTML, XHTML, XML) _ html

Posted by: gladiator Jul 28 2010, 10:52 AM

I am new to html,how can I expand the size of the box in drop-down list or the texarea box,I used size="20" or rows="40" columns="50"

but it did not work! I want to expand the width of the box but I cannot do it?

Posted by: Darin McGrew Jul 28 2010, 11:04 AM

The textarea element uses the cols attribute:
http://htmlhelp.com/reference/html40/forms/textarea.html

There is no HTML to specify the width of a select element:
http://htmlhelp.com/reference/html40/forms/select.html
You'll need to use CSS instead:
http://htmlhelp.com/faq/html/docs.html#about-css

Posted by: gladiator Jul 29 2010, 10:18 AM

QUOTE(anulko @ Jul 29 2010, 03:38 AM) *

QUOTE(gladiator @ Jul 28 2010, 10:52 AM) *

I am new to html,how can I expand the size of the box in drop-down list or the texarea box,I used size="20" or rows="40" columns="50"

but it did not work! I want to expand the width of the box but I cannot do it?


you can use [style="width:300px;"] instead of "size" attribute and it will help you to expand the size of the textarea easily...

thankssssssssssssssssssssssssssssss.it workssssssssssssssssssssssssssssss

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)