Re: [css-d] Vertically centering text in a paragraph

2009-04-14 Thread Tim Dawson
Jonny Stephens wrote: > On Apr 13, 2009, at 9:45 AM, Tim Dawson wrote: > >> 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

Re: [css-d] Vertically centering text in a paragraph

2009-04-13 Thread Tim Dawson
Venditelli, Daniel - Web Development Administrator wrote: > > Just keep in mind that if you do use then your layout won't hold up > as soon as someone uses their browser settings to increase the font-size Yes, the is only a stop-gap to show the client. It doesn't appear that there's any simple

Re: [css-d] Vertically centering text in a paragraph

2009-04-13 Thread Gunlaug Sørtun
>> does IE support display:table or display:table cell though? I could >> have sworn it didn't. - IE7 and older does not support CSS table. - IE8 does support CSS table as well as any other browser - when in full "standards mode". Georg -- http://www.gunlaug.no __

Re: [css-d] Vertically centering text in a paragraph

2009-04-13 Thread Brian Hazelton
does IE support display:table or display:table cell though? I could have sworn it didn't. __ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.

Re: [css-d] Vertically centering text in a paragraph

2009-04-13 Thread Tim Dawson
Brian Hazelton wrote: > does IE support display:table or display:table cell though? I could have > sworn it didn't. Georg has a long article on this, on his web site, and he says it doesn't. Tim -- Tim Dawson Maolbhuidhe Fionnphort Isle of Mull PA66 6BP 01681 700718 __

Re: [css-d] Vertically centering text in a paragraph

2009-04-13 Thread Ian Young
> -Original Message- > From: css-d-boun...@lists.css-discuss.org [mailto:css-d- > boun...@lists.css-discuss.org] On Behalf Of Tim Dawson > Sent: 13 April 2009 09:46 > To: css-d@lists.css-discuss.org > Subject: [css-d] Vertically centering text in a paragraph > > I'm working on a site which

Re: [css-d] Vertically centering text in a paragraph

2009-04-13 Thread Venditelli, Daniel - Web Development Administrator
nday, 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. Mean

Re: [css-d] Vertically centering text in a paragraph

2009-04-13 Thread Tim Dawson
Brian Hazelton wrote: > sorry, that was bad information. > Thanks for trying, anyway (I got both your e-mails). It seems it's one of those apparently small problems that require sledge-hammer treatment to achieve in CSS. Regards, Tim -- Tim Dawson Maolbhuidhe Fionnphort Isle of Mull PA66 6B

Re: [css-d] Vertically centering text in a paragraph

2009-04-13 Thread Brian Hazelton
sorry, that was bad information. I just tried it and while it does make it vertically centered, it adds huge space because of the line height. __ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listin

Re: [css-d] Vertically centering text in a paragraph

2009-04-13 Thread Brian Hazelton
You can apply a class to the paragraphs that are together and make the line height the same as the height of the image and then st vertical-align to middle. __ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/

Re: [css-d] Vertically centering text in a paragraph

2009-04-13 Thread Tim Dawson
andree hollander wrote: > > On 2009-04-13, at 13:03, Tim Dawson wrote: > >> I'll explore putting the text into a span. Meanwhile the >> solution >> (forcing the text down the para), while not good semantically, is >> quick and >> flexible, particularly if the clients change their mind when t

Re: [css-d] Vertically centering text in a paragraph

2009-04-13 Thread Tim Dawson
> On Mon, Apr 13, 2009 at 3:45 AM, Tim Dawson > wrote: > > 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 l

Re: [css-d] Vertically centering text in a paragraph

2009-04-13 Thread Jack Timmons
On Mon, Apr 13, 2009 at 3:45 AM, Tim Dawson wrote: > 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. > > ht

Re: [css-d] Vertically centering text in a paragraph

2009-04-13 Thread Tim Dawson
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 which has the merit of being very simple to insert. Provided the content is fairly static, it's no

Re: [css-d] Vertically centering text in a paragraph

2009-04-13 Thread designer
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 --