Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Post History
A simple way to deal with this is flex, wrap your 3 columns in a flex container: <div class="container"> <div class="formField"></div> <div class="formField"><...
Answer
#2: Post edited
- A simple way to deal with this is flex, wrap your 3 columns in a flex container:
- ```
- <div class="container">
- <div class="formField"></div>
- <div class="formField"></div>
- <div class="formField"></div>
- </div>
- ```
- Then set your CSS like so for your mobile:
- ```
- .container{
- display: flex;
- flex-direction: column;
- }
- .formField{
- width: 100%;
- }
- ```
- for your media query, you simply switch your CSS to something like this:
- ```
- .container{
- flex-direction: row;
- }
- .formField{
width: 32%%;- }
- ```
- A simple way to deal with this is flex, wrap your 3 columns in a flex container:
- ```
- <div class="container">
- <div class="formField"></div>
- <div class="formField"></div>
- <div class="formField"></div>
- </div>
- ```
- Then set your CSS like so for your mobile:
- ```
- .container{
- display: flex;
- flex-direction: column;
- }
- .formField{
- width: 100%;
- }
- ```
- for your media query, you simply switch your CSS to something like this:
- ```
- .container{
- flex-direction: row;
- }
- .formField{
- width: 32%;
- }
- ```
#1: Initial revision
A simple way to deal with this is flex, wrap your 3 columns in a flex container: ``` <div class="container"> <div class="formField"></div> <div class="formField"></div> <div class="formField"></div> </div> ``` Then set your CSS like so for your mobile: ``` .container{ display: flex; flex-direction: column; } .formField{ width: 100%; } ``` for your media query, you simply switch your CSS to something like this: ``` .container{ flex-direction: row; } .formField{ width: 32%%; } ```