Here’s what I need to do:
I need to be able to allow for some list items (they’ll be available tags for an article) to display inline-block within a fixed area. There will be many of these list items and I need them to wrap up to 3 lines tall, but that’s it. After that, I need some way of limiting these so they do not knock down to a fourth line, and instead have some sort of jQuery slider so I can scroll to the right and find more tags.
These tags will be pulled from the server, and will not be hardcoded, so I don’t think I can create separate lists. Furthermore, each tag will be a variable width.
I’m a bit stuck and not sure if this is even a possible execution. Any pointers in the right direction are appreciated.
Thank you!
Hmm, ok now that I have a general idea of what you wanted, I put together this demo, but the major difference is that it scrolls up and down instead of right to left.
I think a vertical slider works best because the width of the tags is so variable. That and it made coding a lot easier 😉
CSS
HTML
jQuery