[pmwiki-users] Vertically centering text alongside images.

Vince Administration vadmin at math.uconn.edu
Wed Aug 27 10:25:55 CDT 2008


On Aug 27, 2008, at 10:23 AM, Tegan Dowling wrote:

>
>
> On Wed, Aug 27, 2008 at 8:29 AM, Vince Administration  
> <vadmin at math.uconn.edu> wrote:
> The instructions for displaying images around text in
> http://www.pmwiki.org/PmWiki/Images explains almost everything about
> placing images in a page (well, almost everything that I need),  
> butone simple? thing seems to elude me. I am using lfloat  and the
> captioning, etc, work fine, but I would like the text to the right  
> ofthe image (the images are usually narrow and several lines long,  
> the text not
> as long) to be vertically centered with the image. Can somebody  
> point me to what I need to do?

>
> I use tables.
>
> Heheheheh.  Well?  Someone had to say it.
>
> The tables method is forbidden by CSS purists.  I read everything I  
> can find about how to do this without tables, but every "solution"  
> I've ever seen required so many hacks and work-arounds for the  
> different ways that different browsers handle stuff that none of  
> them ever seemed do-able to me.  So I use tables.  If you find a  
> non-table solution that does *not* require a whole slew of hacks  
> and work-arounds, just be sure to check it in all the major browsers.
>
Thanks Tegan,
I had no idea how to use tables to do it, so I looked at the advanced  
tables documentation, and there was valign. About a minute later,
problem solved.
       Thanks Again,
         Vince (not a CSS purist, in fact a CSS novice)




More information about the pmwiki-users mailing list