Wrox Home  
Search P2P Archive for: Go

  Return to Index  

html_code_clinic thread: Form tag inside div causes misalignment


Message #1 by speedguru@m... on Fri, 14 Dec 2001 09:53:07
Your text is outside the Form.  It needs to be included in the form in 
order to show up within the form.

       <DIV id='e10' class='item2'>
       <form>
       <input type="checkbox"> &nbsp; <A href='#' target='_top' 
class='nav'>Latest News</A>
       </form>
 
       </DIV>
===================================
guess this is a typical problem... 

when i enclose the checkbox within form tags ,the checkbox and the 
corresponding text that follows it appear on 2 different lines . how do i 
make both of them appear on the same line ? 

i don't know if it matters but i'm using a stylesheet...


<DIV id='s9' class='canvas'>
       <DIV id='e10' class='item2'>
       <form>
       <input type="checkbox">
       </form>
       <A href='#' target='_top' class='nav'>Latest News</A>
       </DIV>
                  <DIV id='e10' class='item2'>
       <form>
       <input type="checkbox">
       </form>
       <A href='#' target='_top' class='nav'>Latest News</A>
       </DIV>
              <DIV id='e10' class='item2'>
       <form>
       <input type="checkbox">
       </form>
       <A href='#' target='_top' class='nav'>Newspaper</A>
       </DIV>
                  <DIV id='e10' class='item2'>
       <form>
       <input type="checkbox">
       </form>
       <A href='#' target='_top' class='nav'>TV</A>
       </DIV>
 
</DIV>

thanks for your time
:-)rk

  Return to Index