Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Jul 2010
    Posts
    44
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Making two forms in same td stay on same line?

    I have two forms that I need the submit button to be right beside each other, therefore I have it in the same td in a table. However, for some reason the submit buttons go under each other, is there someway to avoid this?
    Last edited by fenhopi; 11-15-2010 at 02:21 AM.

  • #2
    Regular Coder
    Join Date
    Oct 2010
    Location
    Florence, MS
    Posts
    486
    Thanks
    10
    Thanked 33 Times in 32 Posts
    Have you tried putting them in their own div with a specific id then inside the css putting display: inline;
    Notice: If you post a problem and it gets fixed, please remember to go back and place it as solved. ;)
    I always recommend the HEAD First series of books for learning a new coding language. ^_^

  • #3
    New Coder
    Join Date
    Jul 2010
    Posts
    44
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Tried it, didn't work though.. Thank you for the suggestion though.

  • #4
    Regular Coder
    Join Date
    May 2009
    Posts
    813
    Thanks
    123
    Thanked 24 Times in 24 Posts

    Re

    Try 2 td's, in one, give them an id and then size them with CSS.

    table.td#maintd
    {
    width: 70px;
    height: 20px;
    padding: 0;
    margin: 0;

    table.td#id1 {
    width: 35px;
    height: 20px;
    }
    table.td#id2 {
    width: 35px;
    height: 20px;
    }

    should work
    Last edited by quartzy; 11-14-2010 at 11:53 PM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •