dreamwest Posted November 2, 2008 Share Posted November 2, 2008 Can i style a form into a div? Currently i have lots of these in my page <div id="web" class="web" align="center"> <form name="form1" method="get" action="search.php"> <input name="search" type="text" id="search" value="" size="60"> <input name="type" type="hidden" id="type" value="web"> <input class=search type="submit" name="Submit" value="Web Search"> </form></div> I want to just add the following to the page and have the rest in a .css file <div id="web" class="web" align="center"> </div> Im not sure how to go about it... Quote Link to comment Share on other sites More sharing options...
dreamwest Posted November 2, 2008 Author Share Posted November 2, 2008 Found a way! .cssform textarea{ width: 250px; height: 150px; } ...Simple Quote Link to comment Share on other sites More sharing options...
BoltZ Posted November 2, 2008 Share Posted November 2, 2008 Also check out this. You have class=search, it should be class="search" Quote Link to comment Share on other sites More sharing options...
dropfaith Posted November 2, 2008 Share Posted November 2, 2008 if all the forms are the same i would save the headache of updates with a server side include as well Quote Link to comment Share on other sites More sharing options...
BoltZ Posted November 2, 2008 Share Posted November 2, 2008 Yea. In case you are wondering how to do that dreamwest you put that form in a file on your server then in the place in the code you want to insert it you do <?php include('addedform.php'); ?> assuming you added your form into a file named addedform.php Quote Link to comment 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.