Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Great <Form> Gap

  • 06-05-2002 9:56pm
    #1
    Registered Users, Registered Users 2 Posts: 14,761 ✭✭✭✭


    Does anyone konw how to get rid of that gap that happends when you put in form tags? Heres the code:

    <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td width="100" class="clock"> </td>
    <td class="clock">
    <form name="clockform"><input type="text" name="clockspot" class="clock"></form>
    </td>
    <td width="100" class="clock"> </td>
    </tr>
    </table>

    It makes the table twice as big as it is suppose to. Would i be better using layers for this?


Comments

  • Banned (with Prison Access) Posts: 16,659 ✭✭✭✭dahamsta


    The cheap and nasty way to do it is to "hide" the FORM tags between TABLE, TR and TD tags, comme ici:
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
     <form name="clockform">
      <tr> 
       <td width="100" class="clock"> </td> 
       <td class="clock"><input type="text" name="clockspot" class="clock"></td> 
       <td width="100" class="clock"> </td>
      </form>
     </tr> 
    </table>
    

    adam


  • Registered Users, Registered Users 2 Posts: 1,747 ✭✭✭Figment


    Or another way if you have one form on a page is to put it around all the elements on the page.


  • Registered Users, Registered Users 2 Posts: 14,761 ✭✭✭✭Winters


    I would put it as one giant from all around the page but im gonna be using more then one form on each page. I have all my sites TOTALLY database driven :D


  • Registered Users, Registered Users 2 Posts: 3,889 ✭✭✭cgarvey


    Using CSS you could use

    <form style="margin:0px">

    or whatever your preferred use of CSS is

    .cg


  • Registered Users, Registered Users 2 Posts: 14,761 ✭✭✭✭Winters


    Thanks. Ill try using CSS for it. I have one style sheet for the site so ill make all the forms have no border. :D


  • Advertisement
Advertisement