Re: [css-d] Can i vertically centre a UL?

2010-09-16 Thread Chris Blake
, Climis, Tim wrote: -Original Message- From: Chris Blake [mailto:ch...@3pointdesign.com] Sent: Wednesday, September 15, 2010 3:41 PM To: Climis, Tim Subject: Re: [css-d] Can i vertically centre a UL? change the selector from .level3 to #menu ul.level3, and I think you'll be good

Re: [css-d] Can i vertically centre a UL?

2010-09-15 Thread David Hucklesby
On 9/14/10 5:09 PM, Thierry Koblentz wrote: whizz-bang-blammo align centered vertically. Brilliant!!! But sadly not. If there is no height set for your DIV, then line-height should be enough If there is a height then the line-height must match that value I'm a bit late and maybe wet

Re: [css-d] Can i vertically centre a UL?

2010-09-15 Thread Climis, Tim
I'm a bit late and maybe wet behind the ears, but would making the container display: table; and the UL display: table-cell; work? Perhaps with a spot of JavaScript to turn them into an HTML table for poor old IE 7 and older? I think there'd have to be a third element in there to set as

Re: [css-d] Can i vertically centre a UL?

2010-09-15 Thread Gaurav Saxena
CB, attaching a .html for ya; do tell if this is what was desired or not Regards, Gaurav On Tue, Sep 14, 2010 at 4:42 PM, Chris Blake ch...@3pointdesign.com wrote: Hi, I have a unordered list sitting in a div. I'd like it to sit right in the middle both vertically and horizontally without

Re: [css-d] Can i vertically centre a UL?

2010-09-15 Thread Alan Gresley
Climis, Tim wrote: I'm a bit late and maybe wet behind the ears, but would making the container display: table; and the UL display: table-cell; work? Perhaps with a spot of JavaScript to turn them into an HTML table for poor old IE 7 and older? I think there'd have to be a third element in

Re: [css-d] Can i vertically centre a UL?

2010-09-15 Thread Chris Blake
HI, I have got over my fear of sending a ink to the site so you can see that it's level 3, from the websites drop down that could be improved by centering vertically. http://blakeys.com/ Thanks, CB On 15/09/2010, at 10:58 PM, Gaurav Saxena wrote: CB, attaching a .html for ya; do tell

Re: [css-d] Can i vertically centre a UL?

2010-09-15 Thread Climis, Tim
I have got over my fear of sending a ink to the site so you can see that it's level 3, from the websites drop down that could be improved by centering vertically. http://blakeys.com/ /* this is the box that actually lays out the interior of level 2. It was hard to find through all the

Re: [css-d] Can i vertically centre a UL?

2010-09-15 Thread Chris Blake
On 16/09/2010, at 1:38 AM, Climis, Tim wrote: I have got over my fear of sending a ink to the site so you can see that it's level 3, from the websites drop down that could be improved by centering vertically. http://blakeys.com/ /* this is the box that actually lays out the interior of

Re: [css-d] Can i vertically centre a UL?

2010-09-15 Thread Thierry Koblentz
Hi Alan, poor old IE 7 and older? I think there'd have to be a third element in there to set as display: table-row. ---Tim Not quite true. If display: table-row is not given then, an anonymous table-row is generated [1]. | If the parent P of a 'table-cell' box T is not a

Re: [css-d] Can i vertically centre a UL?

2010-09-15 Thread Philippe Wittenbergh
On Sep 16, 2010, at 1:38 PM, Thierry Koblentz wrote: I think there'd have to be a third element in there to set as display: table-row. ---Tim Not quite true. If display: table-row is not given then, an anonymous table-row is generated [1]. | If the parent P of a 'table-cell'

[css-d] Can i vertically centre a UL?

2010-09-14 Thread Chris Blake
Hi, I have a unordered list sitting in a div. I'd like it to sit right in the middle both vertically and horizontally without using padding or anything like that because it's dynamically fed. is there such a way using CSS? Cheers, CB *the lists been kinda quiet recently

Re: [css-d] Can i vertically centre a UL?

2010-09-14 Thread Climis, Tim
I'd like it to sit right in the middle both vertically and horizontally without using padding or anything like that because it's dynamically fed. is there such a way using CSS? As far as I know, not with anything with a dynamic height. You can do it with javascript, but that's off-topic

Re: [css-d] Can i vertically centre a UL?

2010-09-14 Thread Claude Needham
On Tue, Sep 14, 2010 at 1:47 PM, Climis, Tim tcli...@indiana.edu wrote: I'd like it to sit right in the middle both vertically and horizontally without using padding or anything like that because it's dynamically fed. is there such a way using CSS? As far as I know, not with anything with a

Re: [css-d] Can i vertically centre a UL?

2010-09-14 Thread Thierry Koblentz
I have a unordered list sitting in a div. I'd like it to sit right in the middle both vertically and horizontally without using padding or anything like that because it's dynamically fed. is there such a way using CSS? If you can set height/line-height on the parent, then you can try this:

Re: [css-d] Can i vertically centre a UL?

2010-09-14 Thread John D
-- From: Climis, Tim tcli...@indiana.edu Sent: Tuesday, September 14, 2010 9 Maybe we've done our job and everyone knows everything about CSS... ;) Or the papa has driven out everybody from these NGs.

Re: [css-d] Can i vertically centre a UL?

2010-09-14 Thread Climis, Tim
-Original Message- From: Claude Needham [mailto:gxx...@gmail.com] Sent: Tuesday, September 14, 2010 5:04 PM To: Climis, Tim Cc: Chris Blake; css discuss discuss Subject: Re: [css-d] Can i vertically centre a UL? On Tue, Sep 14, 2010 at 1:47 PM, Climis, Tim tcli...@indiana.edu

Re: [css-d] Can i vertically centre a UL?

2010-09-14 Thread Chris Blake
Given: divul/ul/div I think div {position: relative}; ul { position: absolute; top: 50%; height: 5em; margin-top: -2.5em; } does it. Or does the div need a height too? Okay, in this case it would, since there's nothing *in* the div, but in a similar case, where the div has other

Re: [css-d] Can i vertically centre a UL?

2010-09-14 Thread Boray ERIS
Do you have the site live? On Tue, Sep 14, 2010 at 23:42, Chris Blake ch...@3pointdesign.com wrote: Hi, I have a unordered list sitting in a div. I'd like it to sit right in the middle both vertically and horizontally without using padding or anything like that because it's dynamically fed.

Re: [css-d] Can i vertically centre a UL?

2010-09-14 Thread Chris Blake
On 15/09/2010, at 6:30 AM, Boray ERIS wrote: Do you have the site live? Kind of, it's a CMS website that I am developing but I'm sort of hiding it from the world until the right time. Sorry, I know I should post a link.

Re: [css-d] Can i vertically centre a UL?

2010-09-14 Thread William Gaffga
This would be the best way to go. Presumably you can assign a height to the parent div, even if it is auto. By setting the height and line-height to a value your text will whizz-bang-blammo align centered vertically. On Tue, Sep 14, 2010 at 2:07 PM, Thierry Koblentz n...@tjkdesign.com wrote: If

Re: [css-d] Can i vertically centre a UL?

2010-09-14 Thread Chris Blake
whizz-bang-blammo align centered vertically. Brilliant!!! But sadly not. If you, or anyone is till interested in helping in the next 30-45 mins then reply to me (don't click 'reply all') and I will put the site live and send you the link. Be warned this CMS template creates a whole

Re: [css-d] Can i vertically centre a UL?

2010-09-14 Thread Thierry Koblentz
whizz-bang-blammo align centered vertically. Brilliant!!! But sadly not. If there is no height set for your DIV, then line-height should be enough If there is a height then the line-height must match that value -- Regards, Thierry www.tjkdesign.com | www.ez-css.org | @thierrykoblentz

Re: [css-d] Can i vertically centre a UL?

2010-09-14 Thread David Laakso
On 9/14/10 7:55 PM, Chris Blake wrote: Be warned this CMS template creates a whole load or wrappers so you'll have to expand about 100 divs before getting to the culprits. It is however one sexy menu that works even with javascript turned off. Drink a warm cup of milk, maybe with some