Hey there,
i make table with some results and want to make the first row (titles) absoluted, but all the table have horizontal-scrollbar when i move the scroll the absoluted row dont move.
how to fix that with CSS :/
Code:
<style type="text/css" media="all">
.slim #blueBar{height:37px;}
#blueBar{background-color:#3b5998;width:895px;z-index:300}
.fixed_elem{position:absolute;clip : auto;white-space:normal;}
#boxtable {
/*the chat div container*/
text-align:left;
margin:0 auto;
margin-bottom:10px;
padding:1px;
background-color: #f0f0f0;
border-radius:5px;
-moz-border-radius:5px;
-webkit-border-radius:5px;
border-right: 1px solid rgba(9, 9, 9, 0.125);
height:400px;
width:910px;
overflow:auto;
}
</style>
<div id="boxtable" >
<div id="blueBarHolder" class="slim">
<div class=" fixed_elem" id="blueBar">
<table><thead >
<tr >
<th style="text-align:center;"> <input type="checkbox" name="chkDel[]" value=""></th>
<th style="text-align:center;"></th>
<th style="text-align:center;">UID</th>
<th style="text-align:center;">PID</th>
<th style="text-align:center;">Admin</th>
<th>Name</th>
<th style="text-align:center;">Class</th>
<th style="text-align:center;">Specialty</th>
<th style="text-align:center;">Level</th>
<th style="text-align:center;">Contribute</th>
<th style="text-align:center;" >Exp</th>
<th style="text-align:center;">GID</th>
<th style="text-align:center;">GRole</th>
<th style="text-align:center;" >Strength</th>
<th style="text-align:center;">Health</th>
<th style="text-align:center;">Intelligence</th>
<th style="text-align:center;">Wisdom</th>
<th style="text-align:center;">Dexterity</th>
<th style="text-align:center;">CurHP</th>
<th style="text-align:center;">CurMP</th>
<th style="text-align:center;">PUPoint</th>
<th style="text-align:center;">SUPoint</th>
<th style="text-align:center;">Killed</th>
<th style="text-align:center;">Map</th>
<th style="text-align:center;">X</th>
<th style="text-align:center;">Y</th>
<th style="text-align:center;">Z</th>
<th style="text-align:center;">Face</th>
<th style="text-align:center;">Hair</th>
<th style="text-align:center;">RevivalId</th>
<th style="text-align:center;">Rage</th>
<th style="text-align:center;">Reborn</th>
<th style="text-align:center;">TradeCharacter</th>
<th style="text-align:center;">Price</th>
<th style="text-align:center;">AccountUID</th>
</tr>
</thead> </table>
</div></div>
<br><br>
<table >
<thead >
<tr >
<th style="text-align:center;"> <input type="checkbox" name="chkDel[]" value=""></th>
<th style="text-align:center;"></th>
<th style="text-align:center;">UID</th>
<th style="text-align:center;">PID</th>
<th style="text-align:center;">Admin</th>
<th>Name</th>
<th style="text-align:center;">Class</th>
<th style="text-align:center;">Specialty</th>
<th style="text-align:center;">Level</th>
<th style="text-align:center;">Contribute</th>
<th style="text-align:center;" >Exp</th>
<th style="text-align:center;">GID</th>
<th style="text-align:center;">GRole</th>
<th style="text-align:center;" >Strength</th>
<th style="text-align:center;">Health</th>
<th style="text-align:center;">Intelligence</th>
<th style="text-align:center;">Wisdom</th>
<th style="text-align:center;">Dexterity</th>
<th style="text-align:center;">CurHP</th>
<th style="text-align:center;">CurMP</th>
<th style="text-align:center;">PUPoint</th>
<th style="text-align:center;">SUPoint</th>
<th style="text-align:center;">Killed</th>
<th style="text-align:center;">Map</th>
<th style="text-align:center;">X</th>
<th style="text-align:center;">Y</th>
<th style="text-align:center;">Z</th>
<th style="text-align:center;">Face</th>
<th style="text-align:center;">Hair</th>
<th style="text-align:center;">RevivalId</th>
<th style="text-align:center;">Rage</th>
<th style="text-align:center;">Reborn</th>
<th style="text-align:center;">TradeCharacter</th>
<th style="text-align:center;">Price</th>
<th style="text-align:center;">AccountUID</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:center;"> <input type="checkbox" name="chkDel[]" value=""></th>
<td style="text-align:center;"></th>
<td style="text-align:center;">UID</th>
<td style="text-align:center;">PID</th>
<td style="text-align:center;">Admin</th>
<td>Name</th>
<td style="text-align:center;">Class</th>
<td style="text-align:center;">Specialty</th>
<td style="text-align:center;">Level</th>
<td style="text-align:center;">Contribute</th>
<td style="text-align:center;" >Exp</th>
<td style="text-align:center;">GID</th>
<td style="text-align:center;">GRole</th>
<td style="text-align:center;" >Strength</th>
<td style="text-align:center;">Health</th>
<td style="text-align:center;">Intelligence</th>
<td style="text-align:center;">Wisdom</th>
<td style="text-align:center;">Dexterity</th>
<td style="text-align:center;">CurHP</th>
<td style="text-align:center;">CurMP</th>
<td style="text-align:center;">PUPoint</th>
<td style="text-align:center;">SUPoint</th>
<td style="text-align:center;">Killed</th>
<td style="text-align:center;">Map</th>
<td style="text-align:center;">X</th>
<td style="text-align:center;">Y</th>
<td style="text-align:center;">Z</th>
<td style="text-align:center;">Face</th>
<td style="text-align:center;">Hair</th>
<td style="text-align:center;">RevivalId</th>
<td style="text-align:center;">Rage</th>
<td style="text-align:center;">Reborn</th>
<td style="text-align:center;">TradeCharacter</th>
<td style="text-align:center;">Price</th>
<td style="text-align:center;">AccountUID</th>
</tr>
<tr>
<td style="text-align:center;"> <input type="checkbox" name="chkDel[]" value=""></th>
<td style="text-align:center;"></th>
<td style="text-align:center;">UID</th>
<td style="text-align:center;">PID</th>
<td style="text-align:center;">Admin</th>
<td>Name</th>
<td style="text-align:center;">Class</th>
<td style="text-align:center;">Specialty</th>
<td style="text-align:center;">Level</th>
<td style="text-align:center;">Contribute</th>
<td style="text-align:center;" >Exp</th>
<td style="text-align:center;">GID</th>
<td style="text-align:center;">GRole</th>
<td style="text-align:center;" >Strength</th>
<td style="text-align:center;">Health</th>
<td style="text-align:center;">Intelligence</th>
<td style="text-align:center;">Wisdom</th>
<td style="text-align:center;">Dexterity</th>
<td style="text-align:center;">CurHP</th>
<td style="text-align:center;">CurMP</th>
<td style="text-align:center;">PUPoint</th>
<td style="text-align:center;">SUPoint</th>
<td style="text-align:center;">Killed</th>
<td style="text-align:center;">Map</th>
<td style="text-align:center;">X</th>
<td style="text-align:center;">Y</th>
<td style="text-align:center;">Z</th>
<td style="text-align:center;">Face</th>
<td style="text-align:center;">Hair</th>
<td style="text-align:center;">RevivalId</th>
<td style="text-align:center;">Rage</th>
<td style="text-align:center;">Reborn</th>
<td style="text-align:center;">TradeCharacter</th>
<td style="text-align:center;">Price</th>
<td style="text-align:center;">AccountUID</th>
</tr>
</tbody>
</table>