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> 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 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 Link to comment https://forums.phpfreaks.com/topic/163621-float-form-in-div/#findComment-863328 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.