HTML CSS Table Cell Width -
i'm trying understand if possible set width of table cell or column either:
a fixed% width a fixed px width and, regardless of content - remain width.
however, scenario first column needs longer rest. if have 10 columns, first larger , other 9 as spaced.
i have tried next not work:
table{display:block;overflow:hidden;} th td {max-width:2%;overflow:hidden;white-space:nowrap;} th.question {width:60%;overflow:hidden;white-space:nowrap;} td.question {width:60%;overflow:hidden;white-space:nowrap;} is possible accomplish fixed width
is possible accomplish fixed width
yes , if set propertie fixed table-layout rule on <table> or on displayed table element.
see w3c : http://www.w3.org/wiki/css/properties/table-layout
html css html-table
No comments:
Post a Comment