dreamwest Posted June 25, 2009 Share Posted June 25, 2009 Im trying to float this form to the right but it becomes inactive somethings stopping you from entering anything into the form. <style> .search{ color:#777; display:block; font:bold 12px Arial; height:20px; margin-bottom:3px; padding:0 0 0 18px; float:right; margin-top: 20px; }</style> <div class="search"> <form name="searchForm" action="/search.php" method="GET"> <INPUT class=search_box tabIndex=1 maxLength=128 name="search_id" value="" size="31"> <input style="background-color:#c0c0c0; margin-right: 15px;" type="submit" value="Search"> </form> </div> Quote Link to comment https://forums.phpfreaks.com/topic/163621-float-form-in-div/ Share on other sites More sharing options...
dzelenika Posted June 25, 2009 Share Posted June 25, 2009 you missed type="text" for your input textbox Quote Link to comment https://forums.phpfreaks.com/topic/163621-float-form-in-div/#findComment-863325 Share on other sites More sharing options...
gevans Posted June 25, 2009 Share Posted June 25, 2009 Instead of floating everything, why don't you just the form display as a block and text-align: right. Your form will fill the width of your div, and its content align to the right Quote Link to comment https://forums.phpfreaks.com/topic/163621-float-form-in-div/#findComment-863328 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.