0

I have the following code (there is other stuff in the form but not relevant):

<fieldset>
<form> 
<div><input type="submit" value="Sign Register"></input></div> 
</form>
<FORM METHOD="LINK" ACTION="viewcurrent.php">
<INPUT TYPE="submit" VALUE="View Register"></INPUT></br>
</fieldset>
</div>

Both buttons work fine. But on the web page they appear underneath each other. What is the correct way to have these buttons next to each other instead of underneath eachother?

2 Answers 2

2

This would do it:

form, form div {
    display:inline;
}

jsFiddle example

You need to change the form and div from block elements to either inline, or inline-block elements.

Sign up to request clarification or add additional context in comments.

Comments

1

The proper way would be to use display: inline-block.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.