About 539,000 results
Open links in new tab
  1. html - How to force table cell content to wrap? - Stack Overflow

    Jul 12, 2011 · Heres the entire page * wrappable is defined in a main.css file /* Wrappable cell * Add this class to make sure the text in a cell will wrap. * By default, data_table tds do not wrap. */ td.wrappa...

  2. html - Fit cell width to content - Stack Overflow

    .myclass table { table-layout: auto !important; } .myclass th, .myclass td, .myclass thead th, .myclass tbody td, .myclass tfoot td, .myclass tfoot th { width: auto !important; } Don't specify css width for table or for table columns. If table content is larger it will go over screen size to.

  3. html - How do I make a table scrollable - Stack Overflow

    Sep 26, 2012 · You can wrap the table with a parent div and make him scrollable: .div_before_table { overflow:hidden; overflow-y: scroll; height: 500px; } And to keep the table header sticky you can add a fixed class:

  4. How to make table cell shrink according to the content?

    This only works if table-layout is set to auto on the table. This is the default, but it's common to set table-layout to fixed, which will cause the 100% value to be taken literally (the cell will span the entire table, and all cells will overlap). –

  5. html - Make a table fill the entire window - Stack Overflow

    May 17, 2012 · How can I make a HTML table fill the entire browser window horizontally and vertically? The page is simply a title and a score which should fill the entire window. (I realise the fixed font sizes are a separate issue.)

  6. html - Table with 100% width with equal size columns - Stack …

    Jul 9, 2020 · If you don't know how many columns you are going to have, the declaration . table-layout: fixed. along with not setting any column widths, would imply that browsers divide the total width evenly - no matter what.

  7. html - Form inside a table - Stack Overflow

    May 11, 2011 · A form is not allowed to be a child element of a table, tbody or tr. Attempting to put one there will tend to cause the browser to move the form to it appears after the table (while leaving its contents — table rows, table cells, inputs, etc — behind). You can have an entire table inside a form. You can have a form inside a table cell.

  8. html - how to make a cell of table hyperlink - Stack Overflow

    Apr 9, 2012 · I ran into this issue and used the display block method to let the a element fill the whole cell. The only issue is that when the table cells have padding not the entire cell is clickable. I used css to remove the padding from table cells that contain anchors and added the same padding to the anchors. So I ended up with this:

  9. html - Setting table column width - Stack Overflow

    Mar 13, 2022 · The best practice is to keep your HTML and CSS separate for less code duplication, and for separation of concerns (HTML for structure and semantics, and CSS for presentation). Note that, for this to work in older versions of Internet Explorer, you may have to give your table a specific width (e.g., 900px).

  10. html - How to get table cells evenly spaced? - Stack Overflow

    One way is to set table-layout to fixed, which stops the table and its children from sizing according to their content. You can then set a fixed width on the relevant td elements. This should do the trick: table.PerformanceTable { table-layout: fixed; width: 500px; } table.PerformanceTable td.PerformanceCell { width: 75px; }

Refresh