|
August 20, 2004
Geekery Unleashed
Posted by Dale Franks
Several people have inquired about the election futures markets. If you have an asp, aspx, php, or shtml site, you can grab the markets file as an include file, using the following URL:
http://www.qando.net/blog/markets.asp
This file contains only the HTML for the table containing the market prices. The table, however, references the table styles included in QandO's CSS stylesheet, so you'll need to implement those styles. To make it easier for you, the relevant styles you'll need are shown below. Obviously, you'll need to change the style definitions to ensure the table fits in with the design of your site.
Enjoy.
-----Styles-----
/*
Main Table Formatting
*/
.tmain {
border: thin;
border-color: Black;
border-style: solid;
}
/*
Table header
*/
td.theader {
background: #334C66;
font-weight: bold;
color: White;
border-bottom: 1px;
border-bottom-color: Black;
border-bottom-style: solid;
}
/*
Table Subheader for complex tables
*/
td.tsubhead {
background: #cccccc;
font-weight: bold;
color: black;
}
/*
Table Subheader with a top border
*/
td.tsubheadtop {
background: #cccccc;
font-weight: bold;
color: black;
border-top: 1px;
border-top-color: Black;
border-top-style: solid;
}
/*
Table Subheader with a bottom border
*/
td.tsubheadbot {
background: #cccccc;
font-weight: bold;
color: black;
border-bottom: 1px;
border-bottom-color: Black;
border-bottom-style: solid;
}
/*
Regular Table cell
*/
td.treg {
background: #D6E5F3;
}
/*
Table cells for alternating row
*/
td.talt {
background: #F8F8FF;
}
/*
Table footer cells
*/
td.tfoot {
background: #4682B4;
color: White;
font-weight: bold;
border-top: 1px;
border-top-color: Black;
border-top-style: solid;
}
/*
Table footer cells with no top border
*/
td.tfootnotop {
background: #4682B4;
color: White;
font-weight: bold;
}
TrackBack
|