Solved

Select Object Size

Posted on 1998-08-20
3
170 Views
Last Modified: 2010-04-09
It seems to me that the size of a selec object depends of the size of the largest option it contains.
Can I assign a different size of the select ? ?
0
Comment
Question by:carflores
  • 2
3 Comments
 
LVL 1

Accepted Solution

by:
evilgreg earned 50 total points
ID: 1836860
Nope. You /can/ do some funky stuff with the OPTGROUP element, but HTML does not allow for control of the maximum size of the rows. Which is probably a good thing - why cut off your longest entry?

Of course, you could change the size with Java, but that's not really HTML anymore....

(If you are specifically trying to acheive something, let us know - there may be a workaround)

0
 

Author Comment

by:carflores
ID: 1836861
I don´t want to cut off the longest entry, contrarily I want to make the select bigger than the longest entry
0
 
LVL 1

Expert Comment

by:evilgreg
ID: 1836862
You can make the introductory item extra large:

<SELECT>
<OPTION SELECTED>-----Please choose from the following---
<OPTION>Monday
<OPTION>Tuesday
<OPTION>Wednesday
etc...

Or you can use the non-breaking space entity - it's ugly, but it works:

<OPTION>Two
<OPTION>
&nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp;
<OPTION> Three

Put a space between each one for an added effect.

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now