Re: List

Giganews Newsgroups
Subject: Re: List
Posted by:  Ben C (spamspam@spam.eggs)
Date: Sun, 01 Feb 2009

On 2009-02-01, shapper <mdmou…@gmail.com> wrote:
> Hello,
>
> I am styling a list:
>
><ul>
>  <li><span>Error 1</span></li>
>  <li><span>Error 2</span></li>
></ul>
>
> As follows:
>
>      ul.Validation {overflow: hidden;}
>
>        ul.Validation li { float: left; margin: 5px 3px; }
>
>          ul.Validation li span {
                            ^^^^
>            background-color: red;
>            color: white;
>            font: normal 0.9em Verdana, Geneva, sans-
> serif;
>            padding: 0.2em 0.4em;
>          }
>
> Basically I need to make the list items to be side by side with margin
> and padding and red background color.
>
> Can I do this but without using the span tags?

Yes just delete the word "span" above (underlined with ^^^^), and get
rid of the span tags.

Replies

None

In response to

List posted by shapper on Sun, 1 Feb 2009