I have a dynamically created menu that resides in a resizable container. There are 4 requirements that I must fulfill:
- Elements should be formed in the horizontal center.
- They should insert the number of rows in n and remain aligned.
- This should be a
<ul></ul> list. - It should work with IE7 +
Example:
> Item 1 | Item 2 | Item 3 | Item 4 | Item 5 | Item 6 | Item 7 <
Now that the container is compressed, itmes should form the following:
> Item 1 | Item 2 | Item 3 | Item 4 < > | Item 5 | Item 6 | Item 7 <
The signs < and > represent the boundaries of the container.
How do I do this in HTML / CSS? Thanks in advance.
EDIT
I forgot to mention that I need to use <ul> and make it work under IE7 +.
source share