Commit e6be8861 authored by Kristian Tan's avatar Kristian Tan

Alligned form input boxes

parent 95fe12a8
...@@ -60,3 +60,15 @@ body { ...@@ -60,3 +60,15 @@ body {
text-decoration: underline; text-decoration: underline;
text-align: center; text-align: center;
} }
label{
display: inline-block;
float: left;
clear: left;
width: 250px;
text-align: right;
}
input {
display: inline-block;
float: left;
}
\ No newline at end of file
...@@ -40,8 +40,8 @@ ...@@ -40,8 +40,8 @@
{% if display_new_device_form == True %} {% if display_new_device_form == True %}
<div class=".add_new_device_form"> <div class=".add_new_device_form">
<form action="{{ url_for('handle_new_device') }}" method="post"> <form action="{{ url_for('handle_new_device') }}" method="post">
New device name: <input type="text" name="new_device_name" required> <br> <label>New device name:</label> <input type="text" name="new_device_name" required> <br>
New device wattage: <input type="number" name="new_device_wattage" required> <br> <label>New device wattage:</label> <input type="number" name="new_device_wattage" required> <br>
<input type="submit"> <input type="submit">
</form> </form>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment