rather <a id="place_coins"> for when I enter css

 a #place_coins { color: red; } 

Nothing happens, but how it should be:

enter a description of the image here

  • Not color, but background-color. And the selector is wrong. - Qwertiy

2 answers 2

Now you indicate that the color element is #place_coins , which is in the link a . To change the color of the link itself, you need to select the selector together:

 a#place_coins { color: red; } 
 <a id="place_coins">Текст</a> 

  • He doesn’t change his color anyway - Andrei
  • @Andrey, changes. Look, I changed the answer, now you can see. Maybe you in a have other elements that have their color set? - Yuri
  • Yes, that's why I want to change - Andrew
  • I have a { color:#333333; cursor:pointer; text-decoration:none; } a { color:#333333; cursor:pointer; text-decoration:none; } a { color:#333333; cursor:pointer; text-decoration:none; } - Andrei
  • a#place_coins { color: red !important; } , if you want to change all the internal elements, then add this: a#place_coins { color: red !important; } a#place_coins { color: red !important; } or so a#place_coins * { color: red !important; } a#place_coins * { color: red !important; } - Yuri

 #place_coins { color: red; } 
 <a href="#" id="place_coins">anchor</a> 

  • I need without a hryuf, this is a type of button - Andrey
  • without href is not valid =), but you can - Roman M
  • I updated how it should look, it will be easy to switch to a link with a hryf, and I need to select a command and send an offer when clicked - Andrey
  • <a href = "#" onclick = "func_name (); return false;" > anchor </a> - Roman M
  • Yes, no, I ripped off a guy, he has: <a id="place-coins" class="waves-effect btn deep-orange darken-1">Сделать ставку</a> here’s a link to a button: csgolounge.com/ match? m = 12945 there only for authorized she appears - Andrei