html - css hover is not working in this code -


i using input text, input text fired datepicker() functionwhen clicks.

i want make message when user hover on input text.

i tried this

css

#cldrfrom:hover:after{     background: #333;     background: rgba(0,0,0,.8);     border-radius: 5px;     bottom: 26px;     color: #fff;     content: attr(messagehint);     left: 20%;     padding: 5px 15px;     position: absolute;     z-index: 98;     width: 220px; }  #cldrfrom:hover:before{     border: solid;     border-color: #333 transparent;     border-width: 6px 6px 0 6px;     bottom: 20px;     content: "";     left: 50%;     position: absolute;     z-index: 99; } 

html

<input type="text" id="cldrfrom" placeholder="from" style="width:15%" messagehint="from" /> 

when hover on input text. nothing happens

why please?

note

the input text hidden when page loads make appears using jquery in button. idon't think make problem.

input elements can't have pseudo elements. you'll need use dom element if need apply effect.


Comments

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -