Randomblue
Randomblue

Reputation: 116273

Table cells exactly 50% of the height and 50% of the width

Please see this fiddle. The cells have different height/width depending on the content. I would like to constrain them to exactly 50% of the width and height.

Upvotes: 0

Views: 3666

Answers (1)

Lapple
Lapple

Reputation: 3373

Add

tr { height: 50% }
td { width: 50% }

to your CSS, updated fiddle.

Upvotes: 6

Related Questions