On Tue, Sep 9, 2008 at 11:45 PM, Zach Shepherd <[EMAIL PROTECTED]> wrote:

> I'm not sure if it's quite what you want, but you could use something like:
>
> <ul>
> <li><span class="label">LABEL:</span>VALUE</li>
> ...
> </ul>
>
> with css specifying a width for label in ems (and other styling, of
> course).
>
> Zach
>
> On Wed, Sep 10, 2008 at 00:35, Gunlaug Sørtun <[EMAIL PROTECTED]> wrote:
>
> > Jim wrote:
> > > Is there any way to lay out list items as follows, without using tables
> > > (won't look right unless you view email as plain text):
> > >
> > >
> > >   * CPU:      2 x Xeon 5130
> > >   * RAM:      8 GB
> > >   * STORAGE:  330 GB
> > >
> > > The thing that drives me nuts with using tables in this example is that
> > it
> > > requires such a lot of markup for very little effect.  Each line above
> > > would need to be an individual table.  Not so bad with three lines, but
> > > for hundreds, it's tedious.
> >
> > Dunno. Hundreds of individual lists sounds tedious too...
> >
> > <http://www.gunlaug.no/tos/moa_35.html>
> >
> > regards
> >        Georg
> > --
> > http://www.gunlaug.no
>
>
 I use a format like that a lot when setting up forms.

<li><label>CPU: </label>2 x Xeon 5130</li>

label{clear:both;float:left;width:xem}

Using just display:block will force any following elements down. I don't
remember if I use clear:both or not, because I've been awake all of 15
minutes.

I hope that helps, and that I haven't replied to a fixed issue.

-- 
-Jack Timmons
http://www.trotlc.com
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to