Page 1 of 1

Using CSS with PHP

Posted: Thu Sep 09, 2004 12:30 pm
by mjseaden
Dear All,

Can anyone tell me whether PHP conflicts with CSS?

Also, can anyone tell me how I change my links style so that when the mouse is over a link, it is red (without any underline), and when no mouse is over it, it is white (without any underline).

Many thanks

Mark

Posted: Thu Sep 09, 2004 12:36 pm
by vigge89
for the links:

Code: Select all

a { color: white; decoration: none; }
a:hover { color: red; }

Posted: Thu Sep 09, 2004 12:48 pm
by mjseaden
Thanks - can anyone tell me how I encapsulate it within a class and then only use it for certain links on a page?

Many thanks

Mark

Posted: Thu Sep 09, 2004 12:57 pm
by feyd

Code: Select all

a.class_name
a.class_name:hover
etc...