Does CSS have a way to automatically set the column amount in a table?

philipkeller

New Member
Does CSS have a way to automatically set the amount of (fixed-width) columns in a table so that they fill the width of the div element they're in?Like, if you have a narrow screen, the table layout may be like so:. . .. . .. . .. . .But if you make it slightly wider, the table layout becomes this:. . . .. . . .. . . .The usage case for this is for an image gallery, though if there's a simpler and easier way to do it than by using tables, I'm all ears.PS: I am trying to keep the amount of javascript/jquery stuff to a minimum, so I would prefer solutions that don't use it.
 
Back
Top