html - How to vertically and horizontally centre this input field in its container -


i trying horizontally , vertically centre input field inside container ( green box )

is there way without css3 flexbox techniques ?

everything i've tried including normal centering techniques, margin , auto, , positioning doesn't work.

well, problem positioning work, there has better way moving down.

any ideas?

here page: https://dl.dropboxusercontent.com/u/270523/help/new.html

i trying centre input id #searchinput

add position: relative section container, use absolute positioning vertically centre align input field using negative margin of half input height:

#input {     position: relative; }  #searchinput {     position: absolute;     top: 50%;     margin-top: -0.809rem; } 

Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -