|
Like that. If v-align is not defined, then it is
top. But why <p> not <div>? <p> will add extra margins and
mess up design.
----- Original Message -----
Sent: Sunday, November 05, 2006 12:48
AM
Subject: Re: [jQuery] Table cell
space
The logic would probably go something like this:
*
wrapInner the cell in a <p> * Test the height of the
p * Test the height of the cell * Check the vertical-align
of the cell * If the v-align is middle, give the <p> margin-top
of half the difference in height * If the v-align is bottom, give
the <p> margin-top of the difference in height
Did I miss
anything?
-- Yehuda
On 11/4/06, Yehuda Katz
<[EMAIL PROTECTED]>
wrote:
At
least in Firefox, I can't get the clientHeight of a text node.
-- Yehuda
I would try to find proper cell, then to read
heigh of cell, then to find height of text (element) with clientHeight. If
I can not read height of text it self, I'll wrap that text with div, and
then read the height of that div.
-----
Original Message -----
Sent:
Saturday, November 04, 2006 7:46 PM
Subject:
Re: [jQuery] Table cell space
Dave,
Thanks! Unfortunately, I need to fix the
problem sometime today :(
Hopefully I will be able to replace
whatever hackery I come up with with your reworked corner plugin
:-D
-- Yehuda
On 11/4/06, Dave
Methvin <[EMAIL PROTECTED]> wrote:
>
Is there a way to get the amount of "padding"-like > space above
text in a table cell that's there as a > result of cell
alignment. For example, if I align my > cell to the bottom, it's
useful to know how much > space is above the text
(specifically, for the corner > plugin, which doesn't take this
type of space into > consideration). > > Any
ideas?
Gee, when I started reading that I knew it sounded like
a familiar problem. :)
I am planning to work on the rounded
corner plugin to fix the explicitly-set height issue, maybe that
will address it for table elements as
well.
_______________________________________________
jQuery mailing list [email protected] http://jquery.com/discuss/
-- Yehuda Katz Web Developer | Wycats
Designs (ph) 718.877.1325
_______________________________________________ jQuery
mailing list [email protected] http://jquery.com/discuss/
_______________________________________________ jQuery mailing list [email protected]
http://jquery.com/discuss/
--
Yehuda Katz Web Developer | Wycats
Designs (ph) 718.877.1325
-- Yehuda
Katz Web Developer | Wycats Designs (ph) 718.877.1325
_______________________________________________ jQuery mailing
list [email protected] http://jquery.com/discuss/
|
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/