W3C home > Mailing lists > Public > www-talk@w3.org > May to June 2003

CSS to remove break before start of a list

From: Joe Gallagher <jgallagher@outsidesource.com>
Date: Wed, 25 Jun 2003 16:22:23 -0500
To: <www-talk@w3.org>
Message-ID: <005401c33b5f$de975f20$1e00a8c0@jgallagher>
Greetings,
 
Has anyone used.
 
style='margin-top:0in'
 
.within the list tags (<ul>,<ol>) to eliminate the line break added
between a paragraph/headline and the start of a list?
 
I have two examples shown below.  They both work on Win XP running IE 6,
but they do not work on IE for the Mac, or Safari.  All that happens is
that it just ignores the code.  Is there a better way to eliminate that
extra line (without faking it using tables and images)
 
If you would like to see a sample page:
http://www.outsidesource.com/list.html 


Headline Text To Go Here
<ul  type=disc>
            <li>fred</li>
            <li>barney</li>
            <li>wilma</li>
            <li>dino</li>
</ul>
 
 
Headline Text To Go Here
<ul style='margin-top:0in' type=disc> <!--this line seems to remove the
break-->
            <li>fred</li>
            <li>barney</li>
            <li>wilma</li>
            <li>dino</li>
</ul>
 
 
Thanks!
 
Joe
--------------------------------------------
Joe Gallagher
Web Developer
Outside Source Design Studio
7202 East 71st Street
Indianapolis, IN 46256
P: 317.842.4853
F: 317.813.0951
 
e-mail: jgallagher@outsidesource.com
web: http://www.outsidesource.com
 
Received on Wednesday, 25 June 2003 17:27:52 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 October 2010 18:14:27 GMT