jscheuer1 i have one concern,
In the example that u provided CSS will be applied to all the tables inside my HTML document. I want to apply it only to one specific table
What changes I have to do then ?
PHP Code:
<style type="text/css">
.tableContainer {
position: relative; /* to capture the absolutely positioned table header */
padding-top: 19px; /* space for the column heads */
margin: 0 auto;
width: 80%;
border-bottom: 1px solid #708090
}
table {
width: 100%;
}
thead td, thead th {
font-size: 14px;
font-weight: bold;
text-align: left;
background-color: #ffefd5;
color: #4682b4;
border: solid 1pt #708090;
width: 116px
}
td {
color: #000;
padding-right: 2px;
font-size: 12px;
text-align: left;
font-family: Arial,sans-serif;
border-bottom: solid 1px #708090;
border-left: solid 1px #708090;
border-right: solid 1px #708090;
width: 125px
}
</style>
<!--[if IE]>
<![if !IE]>
<![endif]-->
<style type="text/css">
tbody {
height: 100px;
overflow: auto;
border-right:1px solid #708090;
}
tbody tr {
width:98%;
overflow:hidden;
}
</style>
<!--[if IE]>
<![endif]>
<![endif]-->
<!--[if IE]>
<style type="text/css">
/* this enables the table to scroll without scrolling the page */
.innerframe {
overflow-y: scroll;
overflow-x:hidden;
width: auto;
height: 100px; /* height is required */
border-right:1px solid #708090;
}
/* position the row of column heads above the table */
.tableContainer thead tr {
position: absolute; /* throws the header out of the table */
top: 0px;
left: 0px;
}
</style>
<![endif]-->
Bookmarks