KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Say I have a table with only three small columns. It looks untidy and unbalanced to have a narrow, tall table hugging the left side of my screen ( example ), so I'd like the table to cover the width of the page. However, when I set the table width to 100%, all the columns are stretched out as well, so now my data is spread thinly across the screen, which also looks untidy ( example ). What I'm looking for is a solution where all the columns have the same size as they would have had if the table was width: auto , but the final column fills the remaining space on the screen. This is what Spotify does, for example: The "User" column will cover the remaining width, no matter what. Is there a relatively simple way of achieving this with HTML tables and CSS?
Tags (comma-separated)
Save Edits
Cancel