In your first example, you're applying the style to the <li> tags. In your second example, you're applying it to the <ul> tag. Try this:
<ul class="smalltext"> <li class="leftindentlist">•The first line.</li> <li class="leftindentlist">•The second line.</li> <li class="leftindentlist">•The third line.</li> <li class="leftindentlist">•The fourth line.</li> </ul> HTH, Justin Myers [EMAIL PROTECTED] On 7/31/06, xhu1 <[EMAIL PROTECTED]> wrote: > Hi, I tried to make a list that indented on left and > have a small dot. When I directly put style in li tag > it works fine. but when i move the style to the css > class. there is no effect at all. > > this works: > <ul class="smalltext"> > <li style="list-style-type: none; margin:-3px 0 0 > 35px;">•The first line.</li> > <li style="list-style-type: none; margin:-3px 0 0 > 35px;">•The second line.</li> > <li style="list-style-type: none; margin:-3px 0 0 > 35px;">•The third line.</li> > <li style="list-style-type: none; margin:-3px 0 0 > 35px;">•The fourth line.</li> > </ul> > > this failed: > <ul class="leftindentlist smalltext"> > <li>•The first line.</li> > <li>•The second line.</li> > <li>•The third line.</li> > <li>•The fourth line.</li> > </ul> > > defined in css file: > .leftindentlist {list-style-type: none; margin:-3px 0 > 0 35px;} > > what's wrong? Thanks > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > ______________________________________________________________________ > css-discuss [EMAIL PROTECTED] > http://www.css-discuss.org/mailman/listinfo/css-d > IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7 > List wiki/FAQ -- http://css-discuss.incutio.com/ > Supported by evolt.org -- http://www.evolt.org/help_support_evolt/ > ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/