i have a 100% width table with 3 columns. The center column must be 600px width. How can I have the other two equal width while using up the remaining space?
New answer to this old question.
th
a max-width
and min-width
instead of width
th
a width
of 50%
.table
a width
at all.I have fixed this examples middle column width
at 300px
.
jsBin Example!
CSS
table {
border-collapse: collapse;
}
th, td {
border: solid 1px #CCC;
padding: 10px;
}
.fixed {
max-width: 300px;
min-width: 300px;
}
.fluid {
width: 50%;
}
HTML
First Column
Fixed Column
Third Column