Hi all,I would like the crossbar image between the list items to be centered vertically i.e. to increase the leading of the text so the image sat in the middle of the words. I've tried a bazillion things only a couple of which you can see here: http://mmnkltd.com/trials/leading.htmlI read: http://meyerweb.com/eric/css/inline-format.html (hopefully my understanding not getting too far off base:confused:) and tried to apply those concepts to lists with no success.Ideas please, or can it not be done?thanksCheers

recce101
—
2010-03-02T19:32:44Z —
#2

Maybe I'm not understanding exactly what you want, but how about leaving the text items alone and moving the images down however much you need to produce the desired result? For example, you could style each image with "position:relative; top:20px;" or whatever value works.

Ned

Erik_J
—
2010-03-02T19:56:54Z —
#3

marioo said:

I would like the crossbar image between the list items to be centered vertically i.e. to increase the leading of the text so the image sat in the middle of the words. ...

Test using the vertical-align property with your code. E.g:

ul * {
vertical-align: middle;
}

marioo
—
2010-03-02T21:58:03Z —
#4

Thank you all for getting back to me. I've tried both ways.recce101's solution is here: http://mmnkltd.com/trials/leading.html To make it all balance out I put a border at the bottom of the ul;

that worked except for the large space above the list.and Erik J's here: http://mmnkltd.com/trials/leading02.htmlThis also worked, but unless I misunderstand the "*" the style will apply to all the unordered lists -- something I don't think I want.I tried some variations on the <ul>s but couldn't keep the style from applying to other ids of the uls. (Like I said, my understanding of the "*" may be wrong.)more ideas???thank you!

PaulOB
—
2010-03-02T22:11:18Z —
#5

HI,

I didn't understand what you meant exactly but if you want the alignment to apply to one list only then use the id.

ul#vertical * {
vertical-align: middle;
}

The universal selector (*) will apply rules to every element that is a child or grandchild of the ul element. As vertical-align only applies to inline elements it will only have effect if the elements are inline elements of course.

marioo
—
2010-03-04T14:16:33Z —
#6

Thanks all,Paul, I understand that issue better.I also changed the graphic a little so it sat better in the list, but what really made it work was the: vertical-align: middle;.the change is at: http://mmnkltd.com/trials/leading02.htmlthanks everyone for your help.