Re: vertical alignment on ul/li bullet image
- From: Andrew <sorry.no.email@xxxxxxxxxxx>
- Date: Thu, 03 Aug 2006 06:27:55 +1000
On 2 Aug 2006 00:40:47 -0700, "Gabriella" <frohlinger@xxxxxxxxx>
wrote:
hi,
I am writing a simple bulleted list with ul/li, with my image as the
list-style-image, and for some reason the image bullet on IE only (FF
is fine) is vertically aligned to the top.
Meaning, the bullet image is aligned to the TOP of the text following
it.
In FF the image is aligned to the center of the text following it, as
it should.
What am I doing wrong?
ul {
list-style-image: url(/Images/arrow.gif);
list-style-position: inside;
margin: 0px;
padding: 0px;
}
li {
margin: 0;
margin-top: 0.3em;
padding: 0px;
}
I tried to add vertical-align: bottom, but nothing helped.
Any ideas?
Thanks, Gabi.
Hi Gabi,
I wrestled with the same problem and my solution (modified for your
example) was:
ul {
list-style-type: none;
padding: 0em;
margin: 0em;
}
ul li {
background-image: url(Images/arrow.gif);
background-repeat: no-repeat;
background-position: 0em .4em;
padding-left: 1em;
}
Note that the image is set to the li not the ul.
Hope this is a guide for you!!
Andrew.
--
Andrew
http://www.andrews-corner.org/
.
- Follow-Ups:
- Re: vertical alignment on ul/li bullet image
- From: Gabriella
- Re: vertical alignment on ul/li bullet image
- References:
- vertical alignment on ul/li bullet image
- From: Gabriella
- vertical alignment on ul/li bullet image
- Prev by Date: Re: Why eliminate <br>?
- Next by Date: Re: Why eliminate <br>?
- Previous by thread: Re: vertical alignment on ul/li bullet image
- Next by thread: Re: vertical alignment on ul/li bullet image
- Index(es):
Relevant Pages
|
Loading