I have put the row containing the headers of a table at a fixed position, and that made it skrink, and I can not adjust it to the width of the table, I have tried many things like width, resize, margin, etc...
Here I put images to explain it:
Here I add the css I'm using:
table {
border-collapse:collapse;
table-layout: fixed;
border: 2px solid #EA5D00;
}
tr {
vertical-align: top;
}
tr:hover {
background-color: #FFEDCC;
}
td {
border: 1px solid #EA5D00;
word-wrap: break-word;
padding: 4px;
}
th {
border-top: 1px solid #EA5D00;
border-bottom: 2px solid #EA5D00;
border-left: 1px solid #EA5D00;
border-right: 1px solid #EA5D00;
padding: 4px;
color: #EA5D00;
text-align: center;
background-color: #FFEDCC;
}
tr.fixed {
position: fixed;
}
And here the html:
<table><tr class='fixed'><th>Línia</th><th>Registre</th><th>Context esquerra</th><th>Mot</th><th>Context dreta</th></tr><tr><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
<tr><td align="right">1</td><TD ALIGN=RIGHT >233396:</TD><TD ALIGN=RIGHT> A Barcelona hi ha una cultura.....