Log In · Register

 
Black and White Pictures, Color on Hover
redciv2
post Feb 18 2006, 10:52 PM
Post #1


Senior Member
****

Group: Member
Posts: 120
Joined: Nov 2004
Member No: 61,408



I searched the forum, but I was unsure of exactly how to use the code.
I want all of my pictures to START black and white. I found:
img { filter: Gray; }

How would I put that in...
<style="text/css">
img { filter: Gray; }
</style>
Is that correct?

I'd try it, but I don't want to mess up the current layout yet. I'm putting my code together in word so that it looks complete when I put it on.

Secondly, how do I make it COLOR on hover? I found code to make it go from color to grayscale. Would it be the same except say color?

Thank you.
 
 
Start new topic
Replies
PrincessAda
post Feb 18 2006, 10:54 PM
Post #2


the name is ada.
*******

Group: Official Member
Posts: 4,688
Joined: Dec 2005
Member No: 334,608



<style="text/css">
img { filter: none; }
</style>

The codes correct
^^Thats to make it colored
 
coldtrance
post Feb 18 2006, 11:35 PM
Post #3


There Are Strange Things Afoot At The Cirlce K
******

Group: Member
Posts: 1,130
Joined: Oct 2005
Member No: 253,395



QUOTE(xbabyboo @ Feb 18 2006, 8:54 PM) *
<style="text/css">
img { filter: none; }
</style>

The codes correct
^^Thats to make it colored



^that would cancel out the black and white code.. you have to change that to a hover code

i think its:

hover img {filter:none;}

but i cant remember
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: