Eureka Moment Wiki

One eureka moment at the time

User Tools

Site Tools


development:css:resize_cell

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

development:css:resize_cell [2017/12/12 10:13] (current)
tplecko created
Line 1: Line 1:
 +====== Resize table cell to content using CSS ====== 
 +If you wish to resize a table cell to fit its content, use the following CSS code: 
 +<code css> 
 +td {width:1%; white-space:​nowrap;​ padding:0px 5px 0px 5px;} 
 +</​code>​ 
 +Be sure to have at least one free size cell if the table has defined width
development/css/resize_cell.txt · Last modified: 2017/12/12 10:13 by tplecko