Search This Blog

Friday, February 11, 2011

Horizontal Centering of Multi-Line List Items in Unordered List

Programmer Question

I have an unordered list that wraps onto a second line, and needs to be centered horizontally within the containing UL. Each LI is a set width and height. I've seen many approaches that work for a single line, but nothing I've tried is working when the list wraps to a second line. Would be ideal if this worked in IE7+ -- Thanks for the help.



See here for an illustration: http://grab.by/8UIl



Find the answer here

No comments:

Post a Comment

Related Posts with Thumbnails