Shouldn't have to set a height, the line will wrap automatically
(unless you specify not to).

> Thanks, but as I said, that doesn't work in this case because the li is
> floating.

Do the li's have to float?

On Sun, May 18, 2008 at 8:49 PM, Darren Lovelock <[EMAIL PROTECTED]> wrote:
> Thanks, but as I said, that doesn't work in this case because the li is
> floating.
>
> Also I think it is dependant on the the li having a set height value which I
> cant do either.
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> Behalf Of Stuart Foulstone
> Sent: 18 May 2008 10:01
> To: wsg@webstandardsgroup.org
> Subject: Re: [WSG] Centering all items in a li
>
>
> I seem to remember someone in a previous thread, about similar problem,
> suggested using,
>
> display: table-cell;
> vertical-align: middle;
>
>
> On Sat, May 17, 2008 3:39 pm, Darren Lovelock wrote:
>> Hi list,
>>
>> I've been trying to find a solution that will allow me to vertically
>> center all the items in a li.
>>
>> The big problems i've got are that the li's are a non-fixed height and
>> are floating to the left.
>>
>> So that kills the negative
>> <http://www.jakpsatweb.cz/css/css-vertical-center-solution.html>
>> positioning
>> method and the table-cell
>> <http://www.w3.org/Style/Examples/007/center#vertical>  methods that
>> I've found whilst scouring the web.
>>
>> Does anyone know a method that I can use that doesn't involve using
>> tables?
>>
>> Any help will be greatly appreciated!
>>
>> Regards,
>>
>> Darren Lovelock
>> Munky Online Web Design
>> http://www.munkyonline.co.uk <http://www.munkyonline.co.uk/>
>> T: +44 (0)20-8816-8893
>>
>>
>>
>> *******************************************************************
>> List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
>> Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
>> Help: [EMAIL PROTECTED]
>> *******************************************************************
>
>
>
>
> *******************************************************************
> List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
> Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
> Help: [EMAIL PROTECTED]
> *******************************************************************
>
>
>
> *******************************************************************
> List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
> Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
> Help: [EMAIL PROTECTED]
> *******************************************************************
>
>



-- 
Matt Fellows
http://www.onegeek.com.au/


*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************

Reply via email to