My webpage features a form with a prompt for the input box, followed by the input box itself.
I want to implement two different layouts based on the device accessing the page. For cell phones, I want everything stacked vertically. However, for computers, I want each title and input box to be displayed on the same row.
Although I have looked into media queries, I am still struggling to fully grasp how to implement them effectively.
<html>
<head>
<style>
</style>
</head>
<body>
<form>
<center>
<div class="left">
First name:
</div>
<div class="right">
<input type="text" name="firstname"/>
</div>
<div class="left">
Last name:
</div>
...
<div class="right">
<input type="submit" name="submit" value="submit"/>
</div>
</center>
</form>
</body>
</html>