Thread: Table styling
View Single Post
  #3  
Old 03-09-2016, 07:37 PM
Abronsyth's Avatar
Abronsyth Abronsyth is offline
A Headache Embodied
 
Join Date: Aug 2011
Location: NY
Posts: 1,011
Gender: Male
Credits: 154,143
Abronsyth is on a distinguished road
Default

Each table can be individually styled using the table's ID in the CSS file. Say you want to style the adopts table (as displayed on adopts.php) individually from any other table. In adoptview.php find this line (around 37 in my file):
PHP Code:
$adoptTable = new Table("table"""FALSE); 
Change "table" to a unique id, such as; "freebietable". Once that is done, go to your css file and you can do something like this;
Code:
#freebietable {
css stuff here
}

#freebietable, tr {
css stuff here
}

#freebietable, td {
css stuff here
}
That way you can individually style that particular table. If you have questions about things to do with CSS, or specific tables you want to edit, just ask :)
__________________
My Mods Site (1.3.4, 2020 Mods)
Reply With Quote