Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Align Text and form text box

Status
Not open for further replies.

LKB6

MIS
Mar 20, 2009
23
US
I try without success to align txt and text box in the following form.
Anything I tried doesn't seems to work.

So the question is: how can I do this??
Thanks

this this the code
Code:
<table width="800" height="43"  border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="22%" align="right" class="RegText"><a href="">test I want to align </a> </td>
        <td width="29%"  align="center" >
          <form name="form1" method="get" action="/process.asp" >
            <table width="87%"  border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td width="84%" ><input name="Search" type="text" size="25"></td>
                <td width="16%" ><INPUT name="image222" TYPE="image" class="gobutton" id="image22" src="/images/Go.gif" alt="submit button" width="18" height="18" >
                </td>
              </tr>
            </table>
        </form>
		</td>
      </tr>
 </table>
 
I would for starters not use all that mess of tables.
Really using tables for layout is a bad practice. Tables are for tabular data.

For layour try simpler things, like divs, and CSS.

Some like:

Code:
<div><a href="">test I want to align </a><input name="Search" type="text" size="25"></div>




----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
LKB6, you describe how you want to do "it" -but explain, in words/pictures/links, what "it" is you want to do for layout - Please elaborate, then we can point you in the right direction...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top