I have a list of categories on the page, each of which has a nested list of subcategories. The style of the category list item organizes the items in a grid (through display:inline; float:left), and the subcategories appear below in the normal list layout. Categories and subcategories are user-configured, although I do not expect there will be hundreds (probably no more than 10 or 20 subcategories for each of 3 or 4 categories).
I would prefer not to set a fixed size for each list item. I would like to draw a border around each item, but I don’t like how it looks when each size of the list item is based on its content. Is there any way around this without setting a fixed size in the list items?
source
share