HTML — Two Tables Horizontally Side by Side

后端 未结 9 546
野趣味
野趣味 2020-11-30 09:49

I\'m trying to display tables next to each other horizontally, but this is what I\'m getting.
\"enter

9条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-30 10:44

    You have to apply a CSS rule to your tables in order to follow the normal document float which is:

    table{ float:left; }

    or

    .........

    PS: Just make sure that this tag selector block won't affect any other tables that you don't them to be so, otherwise you are recommended to use ID or class selectors.

提交回复
热议问题