473,473 Members | 1,738 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Excess vertical space below a <SELECT>

Hi --

I have a table cell in which is placed a <SELECT> tag. The drop-down box has
an excessive amount of whitespace below it, forcing the cell to adjust its
height to accommodate this extra space. The <SELECT> includes a "class="
attribute to a stylesheet definition that is currently empty.

How do I get rid of this dead space below the drop-down box?

Thanks,
CL
Jul 20 '05 #1
5 9909
Charles Lavin wrote:

I have a table cell in which is placed a <SELECT> tag. The drop-down box has
an excessive amount of whitespace below it, forcing the cell to adjust its
height to accommodate this extra space. The <SELECT> includes a "class="
attribute to a stylesheet definition that is currently empty.
empty stylesheets cause problems. In IE 5/Mac, it causes the browser
to hang without ever rendering the html/css.
How do I get rid of this dead space below the drop-down box?


I don't know if it will help (probably not). But put in the otherwise
empty stylesheet

body {font-size: 100%}

It does no harm, and may correct a but in MSIE/Win. And it corrects
the IE/Mac bug.

--
Brian
follow the directions in my address to email me

Jul 20 '05 #2
Hi --

Putting in the {font-size:100%} didn't help. And completely taking out the
stylesheet definition didn't help either.

Thanks,
CL

"Brian" <us*****@mangymutt.com.invalid-remove-this-part> wrote in message
news:gWJ5b.352188$Ho3.52674@sccrnsc03...
Charles Lavin wrote:

I have a table cell in which is placed a <SELECT> tag. The drop-down box has an excessive amount of whitespace below it, forcing the cell to adjust its height to accommodate this extra space. The <SELECT> includes a "class="
attribute to a stylesheet definition that is currently empty.


empty stylesheets cause problems. In IE 5/Mac, it causes the browser
to hang without ever rendering the html/css.
How do I get rid of this dead space below the drop-down box?


I don't know if it will help (probably not). But put in the otherwise
empty stylesheet

body {font-size: 100%}

It does no harm, and may correct a but in MSIE/Win. And it corrects
the IE/Mac bug.

--
Brian
follow the directions in my address to email me

Jul 20 '05 #3
Please don't top-post. Please do edit the quoted material.

Charles Lavin wrote:
I have a table cell in which is placed a <SELECT> tag. The
drop-down box has an excessive amount of whitespace below it,
forcing the cell to adjust its height to accommodate this extra
space. The <SELECT> includes a "class=" attribute to a
stylesheet definition that is currently empty.


empty stylesheets cause problems. I don't know if it will help
(probably not). But put in the otherwise empty stylesheet

body {font-size: 100%}


Putting in the {font-size:100%} didn't help. And completely taking
out the stylesheet definition didn't help either.


Please supply a url so that we may help you.

--
Brian
follow the directions in my address to email me

Jul 20 '05 #4
> I have a table cell in which is placed a <SELECT> tag. The drop-down box has
an excessive amount of whitespace below it, forcing the cell to adjust its


Set "margin: 0px; padding: 0px" on the <form> definition inside the
table - or move the opening and closing <form> tags so that the table
is inside it.

One other tip. In a <div> version of a table in which I put my own
<select>, I noticed that any text to the left of the <select> would be
vertically top-aligned with the <select> control itself. I couldn't
get the <select> control to move up vertically so that things were
vertically centered. I ended up having to do the following:

<select style="margin-top: -22px; margin-bottom: 2px">

Yes, that's right. It's a complete hack and neither one of those
declarations has any right to work as it does. In IE, it's the
"margin-top" that moves it up. Anything < 22 doesn't do anything,
whereas when I changed it from 21 to 22 it suddenly starting moving
up. (IE ignores the "margin-bottom".) Mozilla, on the other hand,
ignores the "margin-top" and pays attention to the "margin-bottom".
Although, why using margin-bottom to move the control up (rather than
add an actual margin at the bottom) eludes me.
Jul 20 '05 #5
> I have a table cell in which is placed a <SELECT> tag. The drop-down box has
an excessive amount of whitespace below it, forcing the cell to adjust its


Set "margin: 0px; padding: 0px" on the <form> definition inside the
table - or move the opening and closing <form> tags so that the table
is inside it.

One other tip. In a <div> version of a table in which I put my own
<select>, I noticed that any text to the left of the <select> would be
vertically top-aligned with the <select> control itself. I couldn't
get the <select> control to move up vertically so that things were
vertically centered. I ended up having to do the following:

<select style="margin-top: -22px; margin-bottom: 2px">

Yes, that's right. It's a complete hack and neither one of those
declarations has any right to work as it does. In IE, it's the
"margin-top" that moves it up. Anything < 22 doesn't do anything,
whereas when I changed it from 21 to 22 it suddenly starting moving
up. (IE ignores the "margin-bottom".) Mozilla, on the other hand,
ignores the "margin-top" and pays attention to the "margin-bottom".
Although, why using margin-bottom to move the control up (rather than
add an actual margin at the bottom) eludes me.
Jul 20 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Burton Figg | last post by:
I have a SELECT statement which holds a list of times (for adding appointments to a database): e.g. <select name="time" id="time" size="3" multiple> <option value="00:00">00:00</option>...
6
by: Bonge Boo! | last post by:
This has got to be obvious, but I can't make it work. I have a form called with 3 pull down menus. They are linked to a database which generates the values for the <SELECT? Pull-downs. Lets...
6
by: Chris Fink | last post by:
Does anyone know it is possible to include a small image(.gif .jpeg) within a <SELECT><option> so that the user would see the option text as well as a little image(icon) in the option? I know this...
6
by: joseph.lindley | last post by:
Forgive me for I am a bit of a web-dev novice - but I'm not doing too bad. I'm currently working with a bit of javascript to dynamically add <option>s into a select box. My code currently works...
3
by: i_dvlp | last post by:
I'm trying to replicate a fancy drop-down control (MS-egads!) with form <select><option> It doesn't look like you can specity width as an attribute or define width with CSS. It looks like my...
7
by: lambertb | last post by:
Hi, is this possible to achieve this, and how? http://img217.imageshack.us/img217/779/derrrvw2.png thanks!
4
by: luftikus143 | last post by:
Hi there, I have a nasty little problem, as so often, only with IE. Here is an screenshot to better illustrate the problem. http://geodata.grid.unep.ch/screenshot13.png The map is clickable (to...
11
by: Richard Maher | last post by:
Hi, I have read many of the copius entries on the subject of IE performance (or the lack thereof) when populating Select Lists. I don't mind the insert performance so much, (I get 100x120byte...
1
by: ximian | last post by:
(IE6) When <select> tag contains many elements (eg. 50) it cannot display them at once. IE6 displays 30 elements at most and shows the vertical scrollbar. My question is: is it possible to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.