[UPHPU] More CSS frustration

Mac Newbold mac at macnewbold.com
Tue Jan 16 10:25:53 MST 2007


Yesterday at 9:39am, jtaber said:

> for example the following does not vertically center the title (at least on 
> my firefox 2.0 browser)
>
>   vertical-align: center;

One more reply, in case it helps someone: As was mentioned, for vertical 
alignment it is "middle" instead of "center". That's the first thing.

Second, vertical-align _does_ work in all major browsers, but AFAIK only
when applied to a table cell. So if you have a table cell and tell it to 
be vertical-align: middle; it will do what you intended. The simplest way 
in this case, even though it seems a bit of a waste, would be to make a 
single-celled table (one row, one column) that is the size of the area in 
which you want the title centered.

I applaud your effort to use more CSS. We've found a lot of benefit from 
using CSS wherever appropriate in all of our stuff, though we've had 
similar frustrations at times with things that aren't supported. The 
visibone.com site has hi-res images of the books they publish, if you 
wanted to have some "cheat sheets" for what browsers actually support 
well. We still make use of tables where appropriate, since it is the most 
time-effective, cost-effective, and simplest way to get the best 
cross-browser results at the current time. YMMV, IANAL.

Thanks,
Mac

--
Mac Newbold		MNE - Mac Newbold Enterprises, LLC
mac at macnewbold.com	http://www.macnewbold.com/


More information about the UPHPU mailing list