ASP.Net image on hover via css -


i have css , asp.net when on mouse hover doesn't works want. css works on html. how can make onhover change using css.

this asp.net

<asp:image id="image1" runat="server" cssclass="body read-more image-frame,h2,p "/> 

and css

.body {   font-family:arial, helvetica, sans-serif;  -webkit-font-smoothing: antialiased;  background: #222; }  .image-frame {  position:relative; width:190px;  height:230px;  margin:10px; cursor:pointer; overflow:hidden;  text-align:center;  float:left; background:#fff; }  .image-frame .img {  margin-top:10px; height:125px;  background: #eee; position: relative; background-position: 100% 100%; background-repeat: no-repeat; background-size: cover; }  .image-frame h2 { font-size: 14px;               height:30px; }  .image-frame p {  font-size:22px; font-weight:700;  margin:0; }  .image-frame p.only {  position:absolute; left:40px;  font-size: 10px;  bottom:20px; }  .image-frame .image-hover {  width:190px; height:250px; background:rgba(255,255,255, 0.9);  position:absolute;   bottom:-250px; opacity:0; -ms-filter: "progid:dximagetransform.microsoft.alpha(opacity=0)";  filter: alpha(opacity=0);  -moz-opacity: 0;  -khtml-opacity: 0;  color:#ffffff; transition:bottom 0.4s , opacity 0.4s;  -webkit-transition:bottom 0.4s , opacity .2s;  }  .image-frame:hover .image-hover{ bottom:0px;  opacity:1;  opacity:1; -ms-filter: "progid:dximagetransform.microsoft.alpha(opacity=90)";  filter: alpha(opacity=90);  -moz-opacity: 1;  -khtml-opacity:1; transition:bottom 0.4s , opacity 0.4s; -webkit-transition:bottom 0.4s linear, opacity 0.4s; }  .read-more { color: #fff;  text-decoration: none; background:#8d171a; padding: 10px 20px; margin:100px auto 0px auto; transition: background 0.4s;  -webkit-transition: background 0.4s ;  text-transform: uppercase;  display:block;  width:100px; }  .read-more:hover {  background: #333;  transition: background 0.4s; -webkit-transition: background 0.4s;  } 

the output want this: http://i.imgur.com/jg9vmxz.jpg

my first guess there issue .net tag:

<asp:image id="image1" runat="server" cssclass="body read-more image-    frame,h2,p "/> 

there undesired(?) whitespace between image- , frame , commas invalid. try this:

<asp:image id="image1" runat="server" cssclass="body read-more image-frame "/> 

Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -