Is this information being fed from a database? If not, then you’ll have an idea of how wide you need the div to be. So, start by wrapping your inline content in a div. Set a height to the parent div to prevent your content from exceeding one line, if that is what you are trying to prevent. Then, set a width, most likley exceeding the width of the body, or the parent div, to the div you’ve just created. Adjust your div’s width according to it’s content to see your content stretch horizontally, rather than vertically.
I see but the only thing with that is that if I have 12 split between 3 collumns it will put 4 but I want it to contantly have 4 rows no matter if there are 9 and it is better to have 3 rows and I want to have unlimited collumns as the content will be coming from a database.
Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘CSS’ is closed to new topics and replies.