473,418 Members | 2,084 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,418 software developers and data experts.

vertical-align on span that resides inside a table cell

I am currently using IE 6.0 and 5.5 and the scenario is the following.
I have a span that contains text, and the span is beign contained by a
table cell (this is the way thing need to be in my application). I
have an issue when the span has a heigth less than 18px (meaning
height of the span, there is only one line of text and the height of
the text is less than 18). The issue is that I start getting a
padding, I add a color background to the span to see how height the
span is, the table cell can not get less than 18px (to simplify the
table, it is a table with no height, only one row, only with one cell
that has no height). Inside the span, I defined the style to be
vertical-align:top, but when I remove the vertical-align the padding
goes away. However, I need the vertical-align on the span.

My table looks like this

<table border="0" cellpadding="0" cellspacing="0"
style="position:absolute;top:190;left:184;" >
<tr>
<td bgcolor="aqua">
<span style='height:11;width:100;;background:#8a2be2;fon t-family:Arial;font-size:10;font-weight:400;;position:relative;display:inline;verti cal-align=top;'>Mi
text</span></td>
</tr>
</table>

Does anybody have an idea why having the vertical-align:top (I tried
also vertical-align=text-top) would add bottom extra padding to the
cell?

Thanks,

P
Jul 20 '05 #1
3 12404
*kAldam* <x_*****@hotmail.com>:

style="position:absolute;top:190;left:184;" >
style='height:11;width:100;;background:#8a2be2;fon t-family:Arial;font-size:1
0; font-weight:400;;position:relative;display:inline;verti cal-align=top;'>


Ever considered using correct syntax before asking further going questions?
You used no units at all and one time an '=' instead of a ':'.

--
To the optimist, the glass is half full.
To the pessimist, the glass is half empty.
To the engineer, the glass has an appropriate reserve space.
To the economist, the glass is twice as big as it needs to be.
Jul 20 '05 #2
Ever considered looking at the problem at hand, rather than looking at
what people are wearing at the meetings? ..and yes, I did a typo when
trying to post this article, in the hopes that somebody with enough
experience will answer asap.
For anyone else, interested in a solution to this problem. Apparently,
the container ( in this case the table cell) seems to have a default
text height, so even thought I set the font size in the contained item
(the span), the table cell will create the extra space because of its
default height. Giving a font size to the table cell in this case will
solve this behaivour.
Christoph Paeper <cr***********@gmx.net> wrote in message news:<br***********@ariadne.rz.tu-clausthal.de>...
*kAldam* <x_*****@hotmail.com>:

style="position:absolute;top:190;left:184;" >

style='height:11;width:100;;background:#8a2be2;fon t-family:Arial;font-size:1
0;
font-weight:400;;position:relative;display:inline;verti cal-align=top;'>


Ever considered using correct syntax before asking further going questions?
You used no units at all and one time an '=' instead of a ':'.

Jul 20 '05 #3
x_*****@hotmail.com (kAldam) wrote:
Ever considered looking at the problem at hand,
If you cannot behave (the Usenet way), why should we help you for free?
For anyone else, interested in a solution to this problem.
I don't thin I'm interested in your "solution" to your problem.
Apparently, the container ( in this case the table cell) seems to
have a default text height, so even thought I set the font size in
the contained item (the span), the table cell will create the extra
space because of its default height. Giving a font size to the
table cell in this case will solve this behaivour.


You appear quite confused, and the above confirms it. Should you ever
wish to participate in Usenet discussions constructively, try to learn
how to post to Usenet and how to get your CSS syntax right and how to
post the URL of a demo so that your problem can be seen in context.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Jul 20 '05 #4

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

Similar topics

10
by: John Baker | last post by:
Hi: I have a user who has labels that are set up 3 across and 11 vertical (which is unusual at best), and he wants me to print names and addresses on them. I have already set up for labels 10...
0
by: GiladP1 | last post by:
Hi, I am trying to create a vertical label or a vertical text box by useing their 'Vertical' property. But the text just disapears. I can manage to get right-to-left text to be vertical but...
1
by: James Dean | last post by:
Can you make vertical text in a richtextbox or is there any way around this like make the string vertical outside the textbox then try to paste it in that way into the textbox?.... *** Sent...
7
by: bienwell | last post by:
Hi, I'm using the CheckBoxList control in ASP.NET for Web development. This checkboxlist is bound by the database. If we have more items for this checkbox list, it takes space on the page. I...
0
by: DraguVaso | last post by:
Hi, I'm having a DataGrid on which I want to draw 2 moveable vertical lines. What should happen is: When I move a vertical line, I have somewhere an indication on which character in the datagrid...
5
by: Rico | last post by:
I have label that I need to be vertical. The problem is that when I select "Vertical=yes" the label reads from top to bottom rather than bottom to top (which i need). Can this be done? Any...
3
by: Avi G | last post by:
Hi, i work with VS 2005 and i need to know how to put the windows time(Clock) on my label that it is on the form that i will see the full time include the second as they move, and i need to know...
2
by: akm | last post by:
I am facing an issue with the vertical scroll bar. Actually i am using data grid to display the data in my tables, and also i am using the same view form to diplay the data for different tables....
1
by: platoon1sc | last post by:
Hi guys.I have a problem with Internet Explorer in my web-application. I have a vertical scrollbar into my jsps but firefox show the vertical srollbar, but IE doesn't. IE show a blank space where...
3
by: Spiros Bousbouras | last post by:
The fact that vertical tab and form feed exist both in the basic source character set and the basic execution character set suggests to me that there is a class of display devices where vertical...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have 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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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,...

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.