Making two HTML buttons go side by side

后端 未结 3 1580
情书的邮戳
情书的邮戳 2021-01-12 04:24

Okay, I\'m not very familiar with HTML, or how it comes together with CSS. I have been looking all over on how to make two HTML buttons go side by side. Here is the code I\'

相关标签:
3条回答
  • 2021-01-12 04:47

    You could also try wrapping them in a table tag. That's how I fixed my similar issue. The table automatically set them side by side.

    0 讨论(0)
  • 2021-01-12 04:56

    Demo http://jsfiddle.net/satinder_singh1/wr4Xv/1/

    <div id="main">
    <div class="floatdiv"><FORM METHOD="LINK" ACTION="LINK TO WEBSITE" target="_blank">
      <input type="submit" value="Forum Home Page">
    </FORM></div>
    <div class="floatdiv">
    <FORM METHOD="LINK" ACTION="LINK TO A DIFFERENT WEBSITE" target="_blank">
      <input type="submit" value="Skill Guides">
        </FORM></div></div>​
    
    <style type="text/css">
        #main
        {
        position:relative;
            width:200px;
        }
    
        .floatdiv
        {
        float:left;
            width=80px
        }
    </style>
    

    0 讨论(0)
  • 2021-01-12 05:04

    If I understand you correctly, you can just attach the following CSS:

    form {
        display: inline;
    }
    

    As shown here: http://jsfiddle.net/zcz3j/

    0 讨论(0)
提交回复
热议问题