whiteboikyle Posted December 15, 2012 Share Posted December 15, 2012 Is this possible? Pretty much can you do [search here (q)] the q is the search button. IE Quote Link to comment https://forums.phpfreaks.com/topic/272022-search-button-inside-the-text-field/ Share on other sites More sharing options...
kicken Posted December 15, 2012 Share Posted December 15, 2012 If you just want the image there for visual effect and not have it clickable, then you can just apply a background-image to the input element that is positioned on the right hand side. If you want it clickable then you'd use two input's side-by-side in a div element. Apply a background to the div that looks like a form field, then style the inputs to not have any borders on them. Quote Link to comment https://forums.phpfreaks.com/topic/272022-search-button-inside-the-text-field/#findComment-1399517 Share on other sites More sharing options...
whiteboikyle Posted December 16, 2012 Author Share Posted December 16, 2012 If you just want the image there for visual effect and not have it clickable, then you can just apply a background-image to the input element that is positioned on the right hand side. If you want it clickable then you'd use two input's side-by-side in a div element. Apply a background to the div that looks like a form field, then style the inputs to not have any borders on them. Thanks for trying to help but im trying to make the search bar INSIDE the input field. Quote Link to comment https://forums.phpfreaks.com/topic/272022-search-button-inside-the-text-field/#findComment-1399609 Share on other sites More sharing options...
Jessica Posted December 16, 2012 Share Posted December 16, 2012 Well, what I think you're asking for - that's not possible, so kicken gave you ways to accomplish the concept of what you showed us. The phrase "search bar inside the input field" doesn't even make any sense. What are you trying to do? Quote Link to comment https://forums.phpfreaks.com/topic/272022-search-button-inside-the-text-field/#findComment-1399610 Share on other sites More sharing options...
requinix Posted December 16, 2012 Share Posted December 16, 2012 It's also quite possible you're thinking of the HTML 5 type=search INPUT. <input type="search" ... /> Recent browsers typically show a little search icon inside the text field. Quote Link to comment https://forums.phpfreaks.com/topic/272022-search-button-inside-the-text-field/#findComment-1399615 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.