Just keep in mind that if you do use <br/> than you layout won't hold up as soon as someone with slightly older eyes uses their browser settings to increase the font-size even a single step where-as the table MAY hold up a little better.
Or, if you're not worried about that, keep a note somewhere so when your client's much older aunt or uncle checks out the site and things aren't lining up, you'll immediately know why. ;) -----Original Message----- From: css-d-boun...@lists.css-discuss.org [mailto:css-d-boun...@lists.css-discuss.org] On Behalf Of Tim Dawson Sent: Monday, April 13, 2009 3:13 AM To: css-d@lists.css-discuss.org Subject: Re: [css-d] Vertically centering text in a paragraph Thanks, Bob. I know it's possible to take table-aversion too far, and you are right in saying the information is essentially tabular. I'll look into it. Meanwhile I'm using a varying number of <br /> which has the merit of being very simple to insert. Provided the content is fairly static, it's not much trouble to maintain, either. Not good semantically, of course, and I'm sure I'll have the standardistas after me. Tim designer wrote: > Tim: I know you said that you didn't want to go the table way, but a table > in this case is perfectly acceptable, insofar as the relationship between > the image and text is a tabular one. I wouldn't hesitate to use a table > here, so long as it's marked up properly. > > Bob > > > ----- Original Message ----- > From: "Tim Dawson" <t...@ramasaig.com> > To: <css-d@lists.css-discuss.org> > Sent: Monday, April 13, 2009 9:45 AM > Subject: [css-d] Vertically centering text in a paragraph > > >> I'm working on a site which has several images on the page (300x225px). >> Each >> image has some descriptive text alongside, which generally is not as high >> as the >> image. My client would like the text vertically centred on the image. >> >> http://www.mull-bed-and-breakfast.co.uk/newcrofts/self-catering.php >> >> CSS deliberately seems to avoid a v-align capability in paragraphs. I >> realise I >> could introduce padding, but that would have to be tailored for every >> piece of >> text. Tables allow v-align in cells, I know, but I don't want to go that >> route >> either Is there a better way, please ? >> >> Tim Dawson >> >> -- >> Tim Dawson >> Maolbhuidhe >> Fionnphort >> Isle of Mull PA66 6BP >> >> 01681 700718 >> ______________________________________________________________________ >> css-discuss [cs...@lists.css-discuss.org] >> http://www.css-discuss.org/mailman/listinfo/css-d >> List wiki/FAQ -- http://css-discuss.incutio.com/ >> List policies -- http://css-discuss.org/policies.html >> Supported by evolt.org -- http://www.evolt.org/help_support_evolt/ >> >> > > > ______________________________________________________________________ > css-discuss [cs...@lists.css-discuss.org] > http://www.css-discuss.org/mailman/listinfo/css-d > List wiki/FAQ -- http://css-discuss.incutio.com/ > List policies -- http://css-discuss.org/policies.html > Supported by evolt.org -- http://www.evolt.org/help_support_evolt/ > -- Tim Dawson Maolbhuidhe Fionnphort Isle of Mull PA66 6BP 01681 700718 ______________________________________________________________________ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/ ______________________________________________________________________ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/