navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

Decrease width of select list

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> General Web Development >> Decrease width of select list
Page: [1]
 
mar0364

 

Posts: 3026
Joined: 4/5/2002
From: Florida, US
Status: offline

 
Decrease width of select list - 5/9/2008 11:59:46   
I've been doing some research and can't come up with a hack around this. As a simplified example I have this code:
<select>
  <option value ="volvo">Volvo is a nice care for your mother</option>
  <option value ="saab">Saab</option>
  <option value ="opel">Opel</option>
  <option value ="audi">Audi</option>
</select>


The drop down selector on the form is going to be as long as the longest option value. Is there anyway I can decrease its width? I'm willing to lose a few characters off the right side of the name.

_____________________________

Easy Web

“Stay committed to your decisions, but stay flexible in your approach.”

mar0364

 

Posts: 3026
Joined: 4/5/2002
From: Florida, US
Status: offline

 
RE: Decrease width of select list - 5/9/2008 12:25:41   
Rich try this CSS
.abc{ width:in_px; font-size:in_px;}
Hope it helps.

_____________________________

Easy Web

“Stay committed to your decisions, but stay flexible in your approach.”


(in reply to mar0364)
mar0364

 

Posts: 3026
Joined: 4/5/2002
From: Florida, US
Status: offline

 
RE: Decrease width of select list - 5/9/2008 12:26:06   
Worked great!! Man your good.

_____________________________

Easy Web

“Stay committed to your decisions, but stay flexible in your approach.”


(in reply to mar0364)
rdouglass

 

Posts: 9167
From: Biddeford, ME USA
Status: offline

 
RE: Decrease width of select list - 5/9/2008 13:04:49   
Psychiatrists have names for conditions like this....:)

_____________________________

Don't take you're eye off your final destination.

ASP Checkbox Function Tutorial.

(in reply to mar0364)
Tailslide

 

Posts: 5913
Joined: 5/10/2005
From: Out here on the raggedy edge
Status: offline

 
RE: Decrease width of select list - 5/9/2008 13:14:15   
Dear god he's finally lost it! :)

_____________________________

"My strategy is so simple an idiot could have devised it"
Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project

(in reply to rdouglass)
Page:   [1]

All Forums >> Web Development >> General Web Development >> Decrease width of select list
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts