Solved

how to grey out the images using css

Posted on 2013-01-10
7
591 Views
Last Modified: 2013-01-11
on this webpage http://nkarch.lifeintheuktest.co/the-work.aspx how can we grey out the images using css and show  the actual images on hover?
0
Comment
Question by:mmalik15
  • 5
  • 2
7 Comments
 
LVL 53

Accepted Solution

by:
COBOLdinosaur earned 500 total points
ID: 38764813
Well you should probably start by fixing the 18 validation errors so the images will display correctly.  Then you can use opacity to dim them down.  However there will be cross browser issues.

Cd&
0
 

Author Comment

by:mmalik15
ID: 38764889
thanks for the comment. I will fix the validation error.

I have tried opacity but what if I want to make the image black and white?
0
 

Author Comment

by:mmalik15
ID: 38764908
i m trying this but its only working in IE


#ProjectsGrid img
{

filter: gray;
}

#ProjectsGrid img:hover
{

opacity:1.0;
filter:alpha(opacity=100);
}
0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 

Author Comment

by:mmalik15
ID: 38765166
i have fixed the black and white issue. Can I ask one last thing ( i know its not related to this question) as i m struggling with this one for last hour or so, on hover of li element, project  the image is changing fine but i want the h4 heading to turn red as well but its not. Any ideas
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 38767601
Probably:

li:hover div h4 {color:red;}

Cd&
0
 

Author Comment

by:mmalik15
ID: 38767622
sorry does not work
0
 

Author Comment

by:mmalik15
ID: 38767721
#ProjectsGrid ul li:hover h4
{
      cursor: pointer;
      opacity: 1; /* css standard */
      filter: alpha(opacity=100);
      background-color:#760602 !important;
      
}


the above css worked.
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to create an extensible mechanism for linked drop downs.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question