Results 1 to 14 of 14
Dec 10, 2011, 17:16 #1
- Join Date
- Feb 2009
- 0 Post(s)
- 0 Thread(s)
How can we center an image horizontaly inside an LI ?
It's amazing how can't I just pull out such a simple task.
We wish to have a menu (ul list) displayed inline, where, on top we have an image and, at the bottom, we have an anchor.
Something like the above:
<iimg> <iimg> <iimg> <anchor> <anchor> <anchor>
I've tried text-align centered the image. No luck;
I've tried display:block; on the li, on -img on both...
I've also defined widths here and there (but the images could have variable widths (not sure));
I've tried margin: 0 auto; but it centers on the page, but not on the LI. :///
Can I have a help here plz ?