Jump to content

Recommended Posts

I have committed a crime, I need to float tables near each other to setup a dynamic grid that shows a summary of different database records. One table for each database record. The problem is that the tables will not nest into a nice grid pattern but rather create large gaps in the layout. The tables are all different lengths, and all have the float:left property. Now I know it isn't desired to use tables for layout, but I can't figure out a better way to do this.

 

Any suggestions on how I can get the tables to layout properly and create no empty gaps?

 

Thanks.

 

example.png

Link to comment
https://forums.phpfreaks.com/topic/270289-table-help-and-layout-question/
Share on other sites

In case you didn't know what to Google for before you ask this question.. it is known as a tiled layout or grid layout like you already mentioed as grid pattern.  I simply googled CSS tile layout and this was the first result

 

http://stackoverflow.com/questions/8470070/how-to-create-grid-tile-view-with-css

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.