Log In · Register

 
 
Closed TopicStart new topic
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.
 
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
 
freeflow
post Feb 18 2006, 10:56 PM
Post #3


t-t-t-toyaaa
********

Group: Official Member
Posts: 19,821
Joined: Apr 2004
Member No: 11,270



In that code you need to change hte first style tag to
<style type="text/css">
then code here.

That should be the right code.
 
coldtrance
post Feb 18 2006, 11:35 PM
Post #4


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
 

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