Jump to content

The style wont apply!


Woxy

Recommended Posts

Hello all! I may be a noob when it comes to PHP but i still can't understand why this doesn't work:

 

echo "<li><a href=game.php?id=$row[1]><span class=linky>$row[1]</span></a><br></li>";

 

.linky {
a:link color: #FFA200;
a:visited color: #878787;
a:active letter-spacing: 5px;
a:hover text-decoration:none; color:#FFFFFF;
}

The links come out 100% standard however i do. :(

 

Link to comment
https://forums.phpfreaks.com/topic/164367-the-style-wont-apply/
Share on other sites

Found a guide and tried their technique;

a.column:link {color: #009900;}
a.column:visited {color: #999999;}
a.column:hover {color: #333333;}
a.column:focus {color: #333333;}
a.column:active {color: #009900;}

 

So here's my css file now:

a.linky:link {color: #009900;}
a.linky:visited {color: #999999;}
a.linky:hover {color: #333333;}

The links colors changed to white, but they're still in Times New Roman and nothing happens when i hover over them...

 

EDIT: For some reason, the links colored are back to standard again...

 

Link to comment
https://forums.phpfreaks.com/topic/164367-the-style-wont-apply/#findComment-867214
Share on other sites

Found a guide and tried their technique;

a.column:link {color: #009900;}
a.column:visited {color: #999999;}
a.column:hover {color: #333333;}
a.column:focus {color: #333333;}
a.column:active {color: #009900;}

 

So here's my css file now:

a.linky:link {color: #009900;}
a.linky:visited {color: #999999;}
a.linky:hover {color: #333333;}

The links colors changed to white, but they're still in Times New Roman and nothing happens when i hover over them...

 

EDIT: For some reason, the links colored are back to standard again...

 

That's because when you do the link code in the html you need to add the class there.  So it should be <a class="linky" href="link.com">Link</a>

Link to comment
https://forums.phpfreaks.com/topic/164367-the-style-wont-apply/#findComment-867240
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.