html - External CSS not being applied, but same code works when pasted as Internal -


i'm newbie learning ways of html/css via online tutorials. i've run little problem can't quite figure out, , i've tried suggestions similar issues site , more.

as title says, external css file not seem work @ all, though said code works fine if apply internally. keep rereading code trying spot mistakes, css lint , codepen seem have overqualified elements, , not else. i've tried using class names e.g. .attack instead of td.attack, didn't help.

the html table images, , trying apply single stylesheet. here tcgdatabase.css

body {     background-color:transparent;     }  p {     color:#2e2435;     text-align:justify;     }  td {     text-align:left;     } td.name {     text-align:left;     width:250px;     font-size:30px;     font-weight:bold;     } td.type {     width:50px;     } td.stage {     text-align:left;     width:120px;     font-size:15px;     font-weight:bold;     } td.hp,td.ap {     width:50px;     font-style:italic;     font-size:30px;     } span.points {     font-size:15px;     } td.attack,td.basedamage {     height:30px;     font-weight:bold;     font-size:20px;     } td.effect,td.flavour {     text-align:justify;     } td.wrr,td.wrrtype {     height:20px;     font-weight:bold;     } th {     text-align:center;     } 

here html page, left css in there enclosed show how added internally:

<!doctype html>     <html lang="en-gb">         <head>             <title>oddities</title>             <meta charset="utf-8">             <link ref="stylesheet" type="text/css" href="file:///c:/users/admin/documents/tcg/jbset1/tcgdatabase.css">             <!--<style> body {     background-color:transparent;     }  p {     color:#2e2435;     text-align:justify;     }  td {     text-align:left;     } td.name {     text-align:left;     width:250px;     font-size:30px;     font-weight:bold;     } td.type {     width:50px;     } td.stage {     text-align:left;     width:120px;     font-size:15px;     font-weight:bold;     } td.hp,td.ap {     width:50px;     font-style:italic;     font-size:30px;     } span.points {     font-size:15px;     } td.attack,td.base damage {     height:30px;     font-weight:bold;     font-size:20px;     } td.effect,td.flavour {     text-align:justify;     } td.wrr,td.wrrtype {     height:20px;     font-weight:bold;     } th {     text-align:center;     }             </style>-->         </head>         <body>             <table style="width:100%">                 <tr>                     <td rowspan="9" style="width:420px"><img src="cacturner.png" style="width:350px"></td>                     <td class="type"><img src="energy types/dark.png" style="width:40px"></td>                     <td class="stage">legendary</td>                     <td class="name">yveltal</td>                     <td class="hp">110<span class="points">hp</span></td>                     <td class="ap">0<span class="points">ap</span></td>                 </tr>                 <tr>                     <td class"attackcost" colspan="2">                         <img src="energy types/dark.png" style="width:30px">                         <img src="energy types/colourless.png" style="width:30px">                     </td>                     <td class="attack" colspan="2">take in</td>                     <td class="basedamage"><td>                 </tr>                 <tr>                     <td class="effect" colspan="5">                         attach 3 pokémon hand pokémon , heal 10 damage                          pokémon times number of pokémon cards attached in way. each pokémon attached                          in way provides 1 energy of type @ time (if have more 1 type,                          provide energy of each of types, 1 @ time).                     </td>                 </tr>                 <tr>                     <td class"attackcost" colspan="2">                         <img src="energy types/dark.png" style="width:30px">                         <img src="energy types/dark.png" style="width:30px">                         <img src="energy types/colourless.png" style="width:30px">                         <img src="energy types/colourless.png" style="width:30px">                     </td>                     <td class="attack" colspan="2">riot ballista</td>                     <td class="basedamage"><td>                 </tr>                 <tr>                     <td class="effect" colspan="5">                         discard 1 card attached pokémon. if card pokémon,                          attack damage equal discarded pokémon's hp. if not                          pokémon, attack 50 damage , pokémon 50 damage                          itself.                     </td>                 </tr>                 <tr>                      <td class="wrrtype"><img src="energy types/fairy.png" style="width:25px"></td>                     <td class="wrr">weakness: x2</td>                        <td class="flavour" colspan="3" rowspan="3">                         "this terrible beast has long since turned blind eye havoc                          wreaks in wake" - anon.                     </td>                 <tr>                     <td class="wrrtype"><img src="energy types/fighting.png" style="width:25px"></td>                                        <td class="wrr">resistance: -20</td>                 </tr>                 <tr>                                         <td class="wrrtype"><img src="energy types/colourless.png" style="width:25px"></td>                                      <td class="wrr">retreat cost: x2</td>                    </tr>                 <tr>                     <td class="illus" colspan="3">illus. navaskaiii</td>                     <td class="setnumber">??/??</td>                     <td class="rarity">ur</td>                 </tr>             </table>         </body>     </html> 

i feel missing obvious, appreciate help!

in link element change ref="stylesheet" rel="stylesheet"

notice 'f' should 'l'


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -