# Css and php

**URL:** <https://forum.kirupa.com/t/css-and-php/33502>\
**Category:** Uncategorized\
**Created:** [October 20, 2003, 1:37pm UTC](https://forum.kirupa.com/t/css-and-php/33502 "2003-10-20T13:37:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cellophanecore](https://avatars.discourse-cdn.com/v4/letter/c/e19b73/32.png) [@cellophanecore](https://forum.kirupa.com/u/cellophanecore)\
**Post date:** [October 20, 2003, 1:37pm UTC](https://forum.kirupa.com/t/css-and-php/33502/1 "2003-10-20T13:37:33Z")

</div>

I have a ahover mouse over effect in my css. Through out the side this mouse over effect works. However, in this php script I am using it doesnt even notice where the links are and doesnt even assign them a color or effect. Is it because all the links in this php script are varabiles such as \<a href="{$recent\_row[‘band\_mp3’]}"\>

If so how do I get around this?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 21, 2003, 9:20am UTC](https://forum.kirupa.com/t/css-and-php/33502/2 "2003-10-21T09:20:31Z")

</div>

try by this way:

```php
<a href="{$recent_row['band_mp3']}" class="HereYourClassName">

```

[[[]]]

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 21, 2003, 12:44pm UTC](https://forum.kirupa.com/t/css-and-php/33502/3 "2003-10-21T12:44:10Z")

</div>

Thank you, ideally, I want to use this effect for all my links:

A { border-bottom:dotted 1px #05336F;}

and not to declare classes inside of the script. Is this possible? this line of code seems to be very sensitive

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 21, 2003, 1:26pm UTC](https://forum.kirupa.com/t/css-and-php/33502/4 "2003-10-21T13:26:52Z")

</div>

yes you can. See the following example:

```php
   body, td { font-family: arial; font-size: x-small; }
  a { color: #0000BB; text-decoration: none; }
  a:hover { color: #FF0000; text-decoration: underline; }

```
