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 on the

[css-d] Vertically centering text in a paragraph

2009-04-13 Thread Tim Dawson
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.

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

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

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

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

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 t...@ramasaig.com mailto:t...@ramasaig.com 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

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 t...@ramasaig.com 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

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 br / solution (forcing the text down the para), while not good semantically, is quick and flexible, particularly if the clients change their mind when they see

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]

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]

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 6BP

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 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 --

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 has

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