I want to fill a textbox in the middle portion of the navbar as shown in the attached figure.

Can anybody tell me how to do that?

I looked at Bootstrap 3 - How to maximize input width inside navbar but that input field is not automatically resizing when the window is resized.

Actually that was not his requirement, I just posted to show that I tried that method. I need the auto resizing also.

Untitled.jpg