473,387 Members | 1,517 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,387 software developers and data experts.

Vertical alignment of table cell contents in FireFox


Please can someone remind me of the most elegant fix for the way Firefox
fails to vertically align cell content by default?

For example, the second event on:

http://www.westmidlandbirdclub.com/diary/

Thank you.

--
Andy Mabbett
Say "NO!" to compulsory ID Cards: <http://www.no2id.net/>

Free Our Data: <http://www.freeourdata.org.uk>
Aug 27 '06 #1
6 7831
Andy Mabbett wrote:
Please can someone remind me of the most elegant fix for the way Firefox
fails to vertically align cell content by default?
It doesn't fail to do so.
For example, the second event on:

http://www.westmidlandbirdclub.com/diary/
The cells are vertical-align: inherit, as are the rows, and the tbody is
vertical-align: middle, and the data is aligned to the middle of the cell,
as expected.
--
David Dorward <http://blog.dorward.me.uk/ <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Aug 27 '06 #2
Andy Mabbett wrote:
Please can someone remind me of the most elegant fix for the way Firefox
fails to vertically align cell content by default?

For example, the second event on:

http://www.westmidlandbirdclub.com/diary/
The first event too. It's isn't a failure to align. It's middle
alignment. (I wish the default were top alignment, but so be it.)
Changing it is straightforward, since your table has a class:

table.t90 td, table.t90 th { vertical-align: top; }
Aug 27 '06 #3
In message <4l************@individual.net>, Harlan Messinger
<hm*******************@comcast.netwrites
>Andy Mabbett wrote:
>Please can someone remind me of the most elegant fix for the way Firefox
fails to vertically align cell content by default?
For example, the second event on:
http://www.westmidlandbirdclub.com/diary/

The first event too. It's isn't a failure to align. It's middle
alignment. (I wish the default were top alignment, but so be it.)
Indeed.
>Changing it is straightforward, since your table has a class:

table.t90 td, table.t90 th { vertical-align: top; }
Just what I needed, thank you.

--
Andy Mabbett
Say "NO!" to compulsory ID Cards: <http://www.no2id.net/>

Free Our Data: <http://www.freeourdata.org.uk>
Aug 27 '06 #4
In message <ec*******************@news.demon.co.uk>, David Dorward
<do*****@yahoo.comwrites
>Please can someone remind me of the most elegant fix for the way Firefox
fails to vertically align cell content by default?

It doesn't fail to do so.
You think it does vertically align cell content by default?

--
Andy Mabbett
Say "NO!" to compulsory ID Cards: <http://www.no2id.net/>

Free Our Data: <http://www.freeourdata.org.uk>
Aug 27 '06 #5
Andy Mabbett wrote:
>>Please can someone remind me of the most elegant fix for the way Firefox
fails to vertically align cell content by default?
>>It doesn't fail to do so.
You think it does vertically align cell content by default?
Yes.

How could it not vertically align cell content by default? It has to put the
content somewhere, and it would be a very odd algorithm that placed it in a
random position in the cell!

--
David Dorward <http://blog.dorward.me.uk/ <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Aug 27 '06 #6
In message <ec*******************@news.demon.co.uk>, David Dorward
<do*****@yahoo.comwrites
>
>>>Please can someone remind me of the most elegant fix for the way Firefox
fails to vertically align cell content by default?
>>>It doesn't fail to do so.
>You think it does vertically align cell content by default?

Yes.

How could it not vertically align cell content by default? It has to
put the content somewhere, and it would be a very odd algorithm that
placed it in a random position in the cell!
Apologies - having re-read my posts, I see I was not expressing myself
clearly; I meant, of course "vertically align cell content to "top" by
default".
--
Andy Mabbett
Say "NO!" to compulsory ID Cards: <http://www.no2id.net/>

Free Our Data: <http://www.freeourdata.org.uk>
Aug 27 '06 #7

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

Similar topics

8
by: abracad | last post by:
Hi Is it possible to vertically align an image in the middle of a DIV of fixed height?
3
by: Frank Wheeler | last post by:
Why am I unable to attain proper vertical alignment between a DIV and a TABLE here: http://www.whbvillage.com/agenda-archives/agendex.html The DIV is coded: <DIV style="float: left;...
1
by: Kenneth | last post by:
Okay, I've been scouring Google for hours looking for a solution to this problem, but as of yet I can't find one. XHTML Transitional seems to specify that I can no longer set a table's height to...
3
by: WB | last post by:
Hi, I have a RadioButtonList that display a table of my products like so: <asp:RadioButtonList ID="RblProducts" runat="server" CssClass="text" RepeatColumns="4" RepeatDirection="Horizontal" />...
15
by: scott | last post by:
Hello, I'm working on updating some of my table-based sites to use CSS instead of tables. One of my sites has a header that is composed of three elements: A B C In my prior design, this was...
18
by: ~john | last post by:
Sorry if this is a dumb question buy my CSS is pretty bad... but how do I get text to center vertically within a div tag? Here's my code below... the text is displaying on the far top-right. I...
0
by: dudethat | last post by:
Hello, im brand new to forums and as you will see to css! The problem im having here is the text i want in the cell (class hd) refuses to align to the top in firefox. Ive tried placing it straight...
7
by: komosalab | last post by:
Hi folks, I'm new to CSS and kind of lazy when it comes to coding, but I've tried to do this page by the book and it has a weird problem. I've created a table with a particular background...
2
by: esteuart | last post by:
I need to get the right combination for a div to clip any text inside and allow vertical alignment. I only have this problem in FireFox. I have 3 divs nested within each other. The outer div has...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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:
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...

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.