[bold]table { border: thin groove Red; border-color: Aqua Blue Fuchsia Red; background-color: Gray; }[/bold] Eli tuommonen tyyli on tallennettu hakemistoon css/testi.css En saa kuitenkaan näkymään tuota tyyliä sivuilla, tällainen on koodi: (testi.php) [bold] <html> <head> <title>testi</title> <link href="css/testi.css" rel="stylesheet" type"text/css"> </head> <body bgcolor="#FFFFFF"> </body> </html> [/bold]
eihän tuossa testi sivussa ole taulukkoa... http://www.somacon.com/color/html_css_table_border_styles.php
Ei ole taulukkoa. Vain tuo koodi... <html> <head> <title>testi</title> <link href="css/testi.css" rel="stylesheet" type"text/css"> </head> <body bgcolor="#FFFFFF"> </body> </html> EDIT: css tyyli tehty "topStyle Lite 3.10" softalla. _X_X_X_X_X_[small][/small]
Nyt se rupes näkyyn ku tein näin: <html> <head> <title>testi</title> </head> <body bgcolor="#FFFFFF"> <table width="100%" border="1" height="591"> <tr align="center"> <td> <table width="50%" border="1"> <tr> <td height="240"><link href="css/testi.css" rel="stylesheet" type"text/css"></td> </tr> </table> </td> </tr> </table> </body> </html> Eli nyt tuo "50%" leveä taulukko on tuon css tyylin mukainen. EDIT: Paitsi, että myös tuo toinen taulukko muuttuu css tyylin mukaisesti (siis "100%" leveä taulukko.) Tuo "50%" leveä taulukko on "100%" leveän taulukon sisällä. _X_X_X_X_X_[small][/small]
SIIS yksinkertaisuudessaan, miten saan tehtyä taulukoille omat css-tyylit? Jos minulla on vaikka kaksi taulukkoa: <html> <head> <title>taulukot</title> </head> <body bgcolor="#FFFFFF"> <table width="100%" border="1"> <tr> <td>[bold]tälle oma css-tyyli[/bold]</td> </tr> </table> <table width="100%" border="1"> <tr> <td>[bold]ja tälle oma[/bold]</td> </tr> </table> </body> </html> _X_X_X_X_X_[small][/small]
eli teet kaksi eri tyyliä ja pakotat sitten taulukon käyttämään kyseistä tyyliä class="" komennolla. http://www.pm-netti.com/index.php?sivu=12 ja sieltä kohta Taulukot: