Inline display with forms

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Inline display with forms

Post 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.
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Post by shiznatix »

never mind, if i set both forums to style="display:inline" then it works.
User avatar
Oren
DevNet Resident
Posts: 1640
Joined: Fri Apr 07, 2006 5:13 am
Location: Israel

Post by Oren »

Don't mix markup with styles like what you did:

Code: Select all

<div style="display:inline"> 
Post Reply