I am currently working on aligning 2 divs in a specific way that is responsive. I would like the right div to stack on top of the left div when the screen width reaches a certain point, as opposed to them both taking up 50% of the container's width.
The form is located on the left side while the content is on the right. My goal is to have the content display on top of the form to better fit a mobile screen width. The current setup works well for desktop and laptop screens, but not for smaller devices.
Can this be achieved with CSS alone or will I need JQuery to accomplish this? Please inform me if you need further clarification.
Here is the CSS code:
#left {
float:left;
width:65%;
border-radius: 25px;
background-color: #F8F8F8 !important;
}
#right {
float:right;
width:35%;
background-color: white !important;
padding-left: 40px;
}