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
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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.