I wonder if the display:markers would be useful for this?
Has anyone played around with it before?

>From what I understand, the display marker can be best understood when
looking at a list item. The bullet is the marker and the list information is
the block it is associated with.  Could the text you are using be given
display:marker and then given a position of top:50%? 
I haven't messed with this property and I don't know what the support is
like. I can imagine a certain browser has no idea what I'm talking about.

http://www.w3.org/TR/REC-CSS2/generate.html#markers 

Ted

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Rachel Radford
Sent: Tuesday, August 09, 2005 3:13 PM
To: wsg@webstandardsgroup.org
Subject: RE: [WSG] Align text vertically in a division

Hi everyone,
I'm replying to this because I am also stuck on the same issue. 

I have horizontal navigation that is floated (son of suckerfish style) and
that has relative widths for scalable fonts. Some of the navigation text
runs onto two lines, and some of them are short enough to be on one line. So
problem is the one-liners are at the top of the navigation item and I would
like them to be vertically centered. Can't use line-height trick because
then the two liner nav items get massive line spacing!  Menu is generated
dynamically from CMS database so can't muck with the source code in any way.

Is there any other reliable way of mimicking the old-school valign for table
layouts? I reallllly don't want to use hacky stuff or any javascript stuff
cause already there is so much hacks just for IE!!!

Rach

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of David Laakso
Sent: Wednesday, 10 August 2005 3:16 a.m.
To: wsg@webstandardsgroup.org
Subject: Re: [WSG] Align text vertically in a division

[EMAIL PROTECTED] wrote:

>Hello All,
>
>I am sure that you have described this issue thousand times before, but I
cannot find the trick that will do this easily : how do you center text
vertically in a division ?
>Easy to do with tables of course, but I would like to avoid using tables at
all.
>euh ... as we say in French ... sorry if the question seems stupid.
>Pat
>
There is no such thing as a  stupid question. However, there are often 
stupid answers, and this may be one of them:
CenteringTextVertically-- css-d wiki.
<http://css-discuss.incutio.com/?page=CenteringTextVertically>
Regards,
David Laakso

-- 
David Laakso
http://www.dlaakso.com/


******************************************************
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list & getting help
******************************************************


******************************************************
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list & getting help
******************************************************
******************************************************
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list & getting help
******************************************************

Reply via email to