Ask Experts Questions for FREE Help!
Ask    ||    Answer
 
Advanced  
 

Ask QuestionsprogressAnswer QuestionsprogressBuild ReputationprogressBecome an Expert
 
Free Answers in 3 Easy Steps

Register Now
3 Steps

At Ask Me Help Desk you can ask questions in any topic and have them answered for free by our experts. To ask questions or participate in answering them you must register for a free account. By registering you will be able to:
  • Get free answers from experts in any of our 300+ topics.
  • Accept money for answers that you provide.
  • Communicate privately with other members (PM).
  • See fewer ads.

Home > Computers & Technology > Internet & the Web   »   Form element (list) problem.

 
Thread Tools Search this Thread Display Modes
Question
 
 
#1  
Old Dec 6, 2005, 09:30 AM
RickJ's Avatar
RickJ
Über Member
RickJ is offline
 
Join Date: Aug 2005
Location: The Bogs at Windover
Posts: 7,363
RickJ See this member's comment history on his/her Profile page.RickJ See this member's comment history on his/her Profile page.RickJ See this member's comment history on his/her Profile page.RickJ See this member's comment history on his/her Profile page.RickJ See this member's comment history on his/her Profile page.RickJ See this member's comment history on his/her Profile page.
Form element (list) problem.

I'm using

Code:
style="width:200px"
in the select tag to control the width of list boxes, but i'm missing the horizontal scroll bar:

See the Construction list at http://ohiobusinesslist.com/query2.html

How can I get a horizontal scroll bar for the lists that have items in them that are wider than the listbox?

Thanks!!

Reply With Quote
 
     

Answers
 
 
Old Dec 7, 2005, 01:01 AM   #2  
Ultra Member
LTheobald is offline
 
LTheobald's Avatar
 
Join Date: Feb 2004
Location: Cambridge, UK
Posts: 1,047
LTheobald See this member's comment history on his/her Profile page.LTheobald See this member's comment history on his/her Profile page.
Call LTheobald via Skype™ Send a message via MSN to LTheobald
I don't think it's possible with plain HTML/CSS Rick. It should be possible with some JavaScript and a little DHTML but it's probably not worth it.

It'll probably just be best to shrink the font size of the select boxes a little.

Comments on this post
RickJ agrees: Yes, best option.
  Reply With Quote
 
     
 
 
Old Dec 7, 2005, 01:59 AM   #3  
Über Member
RickJ is offline
 
RickJ's Avatar
 
Join Date: Aug 2005
Location: The Bogs at Windover
Posts: 7,363
RickJ See this member's comment history on his/her Profile page.RickJ See this member's comment history on his/her Profile page.RickJ See this member's comment history on his/her Profile page.RickJ See this member's comment history on his/her Profile page.RickJ See this member's comment history on his/her Profile page.RickJ See this member's comment history on his/her Profile page.
Thanks Lee. Yes, after trying a variety of things that just don't cut the mustard, including a tooltip for long ones (which looks cheezy), I'll just take the font down, and go through all of them looking for any long names - and shorten them.
  Reply With Quote
 
     
 
 
Old Dec 7, 2005, 03:20 AM   #4  
Über Member
RickJ is offline
 
RickJ's Avatar
 
Join Date: Aug 2005
Location: The Bogs at Windover
Posts: 7,363
RickJ See this member's comment history on his/her Profile page.RickJ See this member's comment history on his/her Profile page.RickJ See this member's comment history on his/her Profile page.RickJ See this member's comment history on his/her Profile page.RickJ See this member's comment history on his/her Profile page.RickJ See this member's comment history on his/her Profile page.
Aargh!

Figured changing the font size would be easy, but I'm not seeing how to do it.

Here's a sample of the code of one of the lists:

Code:
<select name="health" size="5" multiple id="select5" style="width:205px">
                                <option>Veterinary 
                                <option>Hospital 
                                <option>Nursing Home 
                                <option>Physicians 
                                <option>Retirement Center 
                                <option>Retirement Living 
                                <option>Retirement Center Food Svc. 
                              </select>
I'm using DW...and am guessing that the font size is a default. Can I insert some code to designate the size of the font of the items in the list?

Thank you!
  Reply With Quote
 
     
 
 
Old Dec 7, 2005, 03:52 AM   #5  
Ultra Member
LTheobald is offline
 
LTheobald's Avatar
 
Join Date: Feb 2004
Location: Cambridge, UK
Posts: 1,047
LTheobald See this member's comment history on his/her Profile page.LTheobald See this member's comment history on his/her Profile page.
Call LTheobald via Skype™ Send a message via MSN to LTheobald
Yep, that's no problem. Just add font-width to your style attribute on your select tag. E.g:

Code:
<select name="health" size="5" multiple id="select5" style="width:205px; font-size: 8pt;">

Comments on this post
RickJ agrees: Perfect!
  Reply With Quote
 
     
 
 
Old Dec 7, 2005, 03:56 AM   #6  
Über Member
RickJ is offline
 
RickJ's Avatar
 
Join Date: Aug 2005
Location: The Bogs at Windover
Posts: 7,363
RickJ See this member's comment history on his/her Profile page.RickJ See this member's comment history on his/her Profile page.RickJ See this member's comment history on his/her Profile page.RickJ See this member's comment history on his/her Profile page.RickJ See this member's comment history on his/her Profile page.RickJ See this member's comment history on his/her Profile page.
You deserve double Approval for bearing with me, such a newbie!

Thanks Lee!

Comments on this post
LTheobald agrees: Anytime rick :D Glad I could help.
  Reply With Quote
 
     
 
 
Old Dec 7, 2005, 04:06 AM   #7  
Über Member
RickJ is offline
 
RickJ's Avatar
 
Join Date: Aug 2005
Location: The Bogs at Windover
Posts: 7,363
RickJ See this member's comment history on his/her Profile page.RickJ See this member's comment history on his/her Profile page.RickJ See this member's comment history on his/her Profile page.RickJ See this member's comment history on his/her Profile page.RickJ See this member's comment history on his/her Profile page.RickJ See this member's comment history on his/her Profile page.
Double dog-gonnit!

Check out these 3 lists: http://www.ohiobusinesslist.com/testlist.html

I've got the first designated as size 4, 2nd one 6 and 3rd one 8...yet they all look the same in IE.

Any suggestions?

How much do I owe you?

PS Edit: Note: they look the same as they did without the font-size designations.
  Reply With Quote
 
     
 
 
Old Dec 7, 2005, 04:45 AM   #8  
Über Member
RickJ is offline
 
RickJ's Avatar
 
Join Date: Aug 2005
Location: The Bogs at Windover
Posts: 7,363
RickJ See this member's comment history on his/her Profile page.RickJ See this member's comment history on his/her Profile page.RickJ See this member's comment history on his/her Profile page.RickJ See this member's comment history on his/her Profile page.RickJ See this member's comment history on his/her Profile page.RickJ See this member's comment history on his/her Profile page.
I figured it out.

I was missing the ; after the width.
  Reply With Quote
 
     

Your Answer
Email me when someone replies to my answer
Join Login





Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

 
Similar Sponsors


Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page

Similar Threads
element of design?
(0 replies)
How can I get enamel off heating element
(1 replies)
dual element h2o heater...wiriing scheme??
(3 replies)
Mistake on W-2 form, serious problem
(1 replies)
Tax Problem: Wrong form
(2 replies)

Search this Thread

Advanced Search

Bookmarks

Sponsors



Copyright ©2003 - 2009, Ask Me Help Desk.
All times are GMT -8. The time now is 06:30 PM.