This is a discussion on "Add a form field" within the Web Page Design section. This forum, and the thread "Add a form field are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Add a form field
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Add a form field
I would like to add a keysearch field form into the top blue section of my site. (see attached) The problem is when I add the form tag it pushing the div height throwing the layout.
Is there a neat way of adding form content to an area such as this and still have control over how it looks? Thanks |
|
|
|
|||
|
Re: Add a form field
Quote:
|
|
|||
|
Re: Add a form field
Not sure how to include this? I've done the following but is doens't work, so I'm not sure what goes where
<div id="keysearch"> <form name="form1" method="post" action=""> <input type="text" name="textfield"> </form></div> CSS #keysearch{ margin:0; } Last edited by csa; Nov 20th, 2005 at 14:03. |
|
|||
|
Re: Add a form field
|
|
|||
|
Re: Add a form field
Right this is where I've got too
http://www.media-drive.co.uk/nti/store/index20.htm I quite like where the keyword search currently is, however I was trying to get this onto the grey bar above but I can't seem to get this to work. By applying the margin: 0px is this suppost to make the field height slimmer? as it still looks quite big. The code I've used is below. Thanks css form#login { background-color: #CCCCCC; color: #000000; border: 1px solid #999999; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; text-align: right; margin: 0px; } #login .buttons { font-family:Arial, Helvetica, sans-serif; font-size: 10px; background-color: #163A78; color: #ffffff; margin-right: 6px; margin:0px; } .buttons{ font-family:Arial, Helvetica, sans-serif; font-size: 10px; background-color: #163A78; color: #ffffff; margin-right: 6px; } .fieldcell { background-color: #F2F7FB; color: #000000; text-align: left; margin-right: 0px; padding-right: 0px; margin: 0px; } html <div id="contentheader"> <h1> 0121 <span class="class1"><a href="home.asp"> &nbs p; enquiries@e.co.uk</a></span></h1> <form name="login" id="login" method="post" action="#"> <label> <input name="textfield" type="text" class="fieldcell" value="Keyword Search" size="16"> <input name="Submit" type="submit" tabindex="3" value="Submit" class="buttons" /> </label> </form> </div> |
|
|||
|
Re: Add a form field
Something happened!
It's still not pushing it onto the line above. See attached, I was aiming for it to be placed top right. At the moment it's under the phone number. (benbacardi added brownie points!) form#login { background-color: #CCCCCC; color: #000000; border: 1px solid #ffffff; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; text-align: right; margin: 0px; background-image:url(images/searchback.gif); display:inline; |
|
|||
|
Re: Add a form field
Arrrh!!!! Just moved my form html code and this has worked. A bit of tidying up and this should do what I want, just need to find a keyword script now!
Thanks for all your help. It is very much appreciated, makes working on a Sunday worth the effort! |
![]() |
| Tags |
| add, form, field |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| multiple form field calculation | thenamenoonehastaken | JavaScript Forum | 2 | Feb 21st, 2008 22:32 |
| Form with confirm password field | dhossai | JavaScript Forum | 28 | Dec 16th, 2007 05:12 |
| Number validation in form field | Matc | JavaScript Forum | 2 | May 26th, 2006 15:05 |
| adding a field input to the subject in a form | goatsalad | PHP Forum | 1 | Feb 3rd, 2006 14:49 |
| Newbie: changing the value of a field on form | d9085 | Databases | 1 | Dec 12th, 2005 18:08 |