PDA

View Full Version : css and php



cellophanecore
October 20th, 2003, 09:37 AM
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?

Drunken
October 21st, 2003, 05:20 AM
try by this way:


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

[[[]]]

cellophanecore
October 21st, 2003, 08:44 AM
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

Drunken
October 21st, 2003, 09:26 AM
yes you can. See the following example:


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