Re: vertical alignment on ul/li bullet image
- From: "Rik" <luiheidsgoeroe@xxxxxxxxxxx>
- Date: Wed, 2 Aug 2006 16:07:31 +0200
Gabriella 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?
I'm not sure wether this it's possible to set the position in the different
browsers. I haven't found a method for this.
Possible workaround (untested):
ul {
margin: 0px;
padding: 0px;
}
li{
list-style-type: none;
margin: 0.3em 0 0 0;
padding-left: 10px; /* or whatever you need for you image */
background-image: url(/Images/arrow.gif);
background-position: left top; /* or replace 'top' with the appropriate
em value */
background-repeat: no-repeat;
}
Grtz,
--
Rik Wasmus
.
- References:
- vertical alignment on ul/li bullet image
- From: Gabriella
- vertical alignment on ul/li bullet image
- Prev by Date: Re: 205px image in a 200px div
- Next by Date: Re: 205px image in a 200px div
- Previous by thread: vertical alignment on ul/li bullet image
- Next by thread: Re: vertical alignment on ul/li bullet image
- Index(es):
Relevant Pages
|
Loading