# Extending anchor pseudo-class with a custom button class, but need help!

**URL:** <https://www.phphelp.com/t/extending-anchor-pseudo-class-with-a-custom-button-class-but-need-help/35460>\
**Category:** HTML & CSS\
**Created:** [May 21, 2023, 10:00am UTC](https://www.phphelp.com/t/extending-anchor-pseudo-class-with-a-custom-button-class-but-need-help/35460 "2023-05-21T10:00:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zoldos](https://www.phphelp.com/user_avatar/www.phphelp.com/zoldos/32/4221_2.png) [@zoldos](https://www.phphelp.com/u/zoldos)\
**Post date:** [May 21, 2023, 10:00am UTC](https://www.phphelp.com/t/extending-anchor-pseudo-class-with-a-custom-button-class-but-need-help/35460/1 "2023-05-21T10:00:26Z")

</div>

I have two anchors which I want to change the look of as shown below. But I don’t think my syntax is correct. Any pointers or suggestions would be greatly appreciated!

```
a:link button--scroll button, a:visited button--scroll button {
  background-color:black;
  color: blue;
}

a:hover button--scroll button, a:active button--scroll button {
  background-color: white;
}

```

The “button–scroll button” is their current class, which I’m attempting to override with the above values.
