I am trying to align 3 buttons in a row but so far nothing has worked. I have emptied my CSS. What is the best way to achieve a line row with the buttons?
Maybe there is a way to do this code with only 1 form.
HTML
<form action="link1" method="post"><button type="submit">Button 1</button></form>
<form action="link2" method="post"><button type="submit">Button 2</button></form>
<form action="link3" method="post"> <button type="submit">Button 3</button></form>
Thank you very much!
UPDATE:
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="/static/style.css">
</head>
<body>
<div class='container'>
<form action="#" method="post"><button type="submit">Button 1</button></form>
<form action="#" method="post"><button type="submit">Button 2</button></form>
<form action="#" method="post"> <button type="submit">Button 3</button></form>
</div>
</body>
</html>
CSS:
.container {
display:flex
}
UPDATE 2: Error was fixed, it was in the path because I am using Flask I need to put the CSS inside a CSS folder. Now it is working. Thank you very much!