HTML Table - Both fixed and multiple variable column widths

后端 未结 3 2097
我寻月下人不归
我寻月下人不归 2021-02-12 15:47

I have to build a table with 5 columns. The table width is variable (50% of content width). Some columns contain fixed-size buttons, so those columns should have a fixed with, s

3条回答
  •  面向向阳花
    2021-02-12 16:20

    I have applied the same solution: Used 'table-layout:fixed' and given the size to td in percentages. It worked for my static content but when my content increases it some how expands the td and all the td and tr are disturbed.

    Solution:

    After so much findings, i came up with the following solution, by this solution your single table will be able to display different column sizes with no expand on horizontal axis.

    Record Name
    FUNNY FUNNEL CAKES
    Event Name
    NATIONAL CAKE DAY CELEBRATION
    City
    SAN DIEGO
    Zip
    92117-4351
    Inspection Type
    Routine
    Owner
    PATTY CAKE
    Inspection Status
    Complete

提交回复
热议问题