Using CSS with PHP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mjseaden
Forum Contributor
Posts: 458
Joined: Wed Mar 17, 2004 5:49 am

Using CSS with PHP

Post 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
User avatar
vigge89
Forum Regular
Posts: 875
Joined: Wed Jul 30, 2003 3:29 am
Location: Sweden

Post by vigge89 »

for the links:

Code: Select all

a { color: white; decoration: none; }
a:hover { color: red; }
mjseaden
Forum Contributor
Posts: 458
Joined: Wed Mar 17, 2004 5:49 am

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Code: Select all

a.class_name
a.class_name:hover
etc...
Post Reply