I have the following HTML structure:
<span id="span_pagination_text_input">
<input type="text" class="form-control" id="pagination_text_input" name="pagination_text_input"/>
...
</span>
And Following CSS:
span#span_pagination_text_input{
position:relative;
}
span#span_pagination_text_input > input#pagination_text_input{
left: -11px;
position: absolute;
top: -35px;
width: 57px;
z-index: 10;
display:none;
text-align:center
}
span#span_pagination_text_input:hover > input#pagination_text_input{
display:block;
}
At this time when visitors hover on my span, I will show the input field which is hidden by default.
How I can focus on input children of span when I show that with CSS?
I know about jQuery but at this time I am looking for a CSS solution.