A piece of code:

<form action="/exeuser.php" method="post"> <input type="image" src="stopfr.gif" alt="stopfr"> <input type="hidden" name="exe" value="stopfr"> <input type="hidden" name="uid" value=" <?php echo $uid; ?> "> </form> <form action="/exeuser.php" method="post"> <input type="image" src="sendmes.png" alt="sendpm"> <input type="hidden" name="exe" value="sendpm"> <input type="hidden" name="uid" value=" <?php echo $uid; ?> " /> </form> 

Displays form-drawings from top to bottom. screenshot http://itmages.ru/image/view/4359322/ee1e7de1

If each figure-form is placed in a table cell, then everything is well displayed http://itmages.ru/image/view/4359325/94bf9648

If the picture-forms are placed in one cell, then they are shown vertically (not as needed). How to make so that the pictures were in "one line" (that is, they were displayed as in the example in the second link)? It is necessary (desirable) to do this without a table.


I do not know how to insert an image into the question, so I indicated the links.

    2 answers 2

    Record in pictures display:inline-block; in styles

    UPD:

     <form action="/exeuser.php" method="post" style="display:inline-block;"> <input type="image" src="https://yastatic.net/web4/_/JsViUZKr8YfX2xwqJy4tLvde-tE.svg" alt="stopfr"> <input type="hidden" name="exe" value="stopfr"> <input type="hidden" name="uid" value=" <?php echo $uid; ?> "> </form> <form action="/exeuser.php" method="post" style="display:inline-block;"> <input type="image" src="https://yastatic.net/web4/_/JsViUZKr8YfX2xwqJy4tLvde-tE.svg" alt="sendpm"> <input type="hidden" name="exe" value="sendpm"> <input type="hidden" name="uid" value=" <?php echo $uid; ?> " /> </form> 

    • and without a style to which tag to sculpt display: inline-block? - root_x Povierennyy
    • write in more detail, based on the example of the above code, exactly where you need to write it. - root_x Povierennyy
    • I added in inline styles, but it’s more correct to put everything into a css file. - EatMyDust
    • Well, that's another matter. + - root_x Povierennyy
    • aaaaaaaa, and you are sure that it is for pictures, and not for forms you need to register .... well, I understood the concept. you meant by the word "picture" FORM. Then I understood why nothing worked out yesterday. I could not understand where and how to enter display: inline-block ;. But I already understood everything - I wrote it in css. With other forms I will be more attentive. Or I will write down in sss #onerow - well, I'll think of something. - root_x Povierennyy
     form input:first-child { display: inline-block; } 

    or

     input { display: inline-block; } 
    • : ((I don’t know. I’m not working. I’ll probably have to work with the tables. - root_x Povierennyy