Page 1 of 1

Inline display with forms

Posted: Tue Jul 11, 2006 4:09 am
by shiznatix
ok I am trying to end a form then start a new one with just a submit button but keep it on the same line. here is the code snip:

Code: Select all

...
<div style="display:inline">
        <input type="submit" value="Edit" name="View[Edit]" />
    </form>
	            
    <form action="AccountProfile.php" method="post">
        <input type="submit" value="Cancel" name="View[List]" />
    </form>
</div>
...
but this has to be 100% valid XHTML and that simply is not cutting it. i am quite bad with client side stuff so any help would be appreciated.

Posted: Tue Jul 11, 2006 4:20 am
by shiznatix
never mind, if i set both forums to style="display:inline" then it works.

Posted: Tue Jul 11, 2006 4:54 am
by Oren
Don't mix markup with styles like what you did:

Code: Select all

<div style="display:inline">