I'm trying to achieve the same as a table cell set with valign="middle" but
with an li.

This would be the list elements in a table:
<table>
        <tr>
                <td valign="middle"><label for="dname">Display Name:</label>
<input type="text" id="dname" 
> class="tinput" /></td>
                <td valign="middle"><p>Information about preview 
> box etc. If it is more than two lines or ## characters link to.</p> 
> <span><a href="">learn more</a></span></td>
        </tr>
</table>

The labels etc would be vertically aligned in the center of the td's.

Darren 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of David Hucklesby
Sent: 17 May 2008 22:31
To: wsg@webstandardsgroup.org
Subject: RE: [WSG] Centering all items in a li

On Sat, 17 May 2008 16:45:05 +0100, Darren Lovelock wrote:
> Hi Matt,
>
> I'm trying to vertically align all the items inside an li.
>
> This could be achieved with the valign of a table cell, but tables are not
an option!
>
> The li's are floating left. I want the labels, inputs, p's etc to be 
> vertically aligned in their containing li.
>
> This is one of the lists I'm using:
>
> <ol>
> <li class="elem">
> <label for="dname">Display Name:</label> <input type="text" id="dname" 
> class="tinput" /> </li> <li class="desc"> <p>Information about preview 
> box etc. If it is more than two lines or ## characters link to.</p> 
> <span><a href="">learn more</a></span> </li> </ol>
>
> Hope it makes more sense now!
>

Nope.

Can't see why you'd put form elements in a list anyway. Perhaps you could
post an example, with tables if necessary, to show us what you intend?

Cordially,
David
--




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

Reply via email to