Go Back  Xtreme Visual Basic Talk > Other Languages > Web Programming > Is there a way to fix the width of a select box?


Reply
 
Thread Tools Display Modes
  #1  
Old 05-21-2003, 09:53 AM
jules jules is offline
Junior Contributor
 
Join Date: Sep 2002
Location: Oklahoma City, OK
Posts: 234
Default Is there a way to fix the width of a select box?


Code:
<select NAME="cboGetIncID" width="40">

This doesn't do it - the box adjusts to be the width of the longest option.

Thanks!

Julie
Reply With Quote
  #2  
Old 05-21-2003, 10:08 AM
Syko10-96's Avatar
Syko10-96 Syko10-96 is offline
Contributor
 
Join Date: Oct 2002
Location: Virginia, USA
Posts: 716
Default

Hello,

Yes. Simply add a style attribute:
<select name="cboGetIncID" style="width: 100px;">

Hope this helps
Reply With Quote
  #3  
Old 05-21-2003, 11:08 AM
jules jules is offline
Junior Contributor
 
Join Date: Sep 2002
Location: Oklahoma City, OK
Posts: 234
Default

Quote:
Originally Posted by Syko10-96
Hello,

Yes. Simply add a style attribute:
<select name="cboGetIncID" style="width: 100px;">

Hope this helps



Thanks! That works.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Side scroll as in Mario starmidder Game Programming 31 04-04-2003 03:11 PM
screen res adamandhelen General 1 03-26-2003 07:28 AM
[newbie]Mutliple expression select case ? late4ever General 8 01-13-2003 03:15 PM
Loading a Sprite Termor Game Programming 14 12-07-2002 07:37 AM
multiples Recordset and multipls datagrids antua Database and Reporting 2 08-29-2002 06:36 AM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->