I've been experimenting with various methods, but I'm still unable to achieve the desired outcome.
Currently, my setup looks like this:
https://i.sstatic.net/fUXKr.png
However, what I really want is something more like this:
https://i.sstatic.net/VYYgX.png
The layout consists of a #Container
div that contains two forms: #Form1
for profile picture customization and #Form2
for personal details such as name, email, and website.
My goal is to have the profile picture aligned on the left, followed by the text fields for first name, last name, and email. Once the bottom of Form1 is reached, Form2 should appear aligned to the left side as illustrated in the image.
For example, if I set #Form1
to 30% width and Form2
to 60%, it should look like this:
https://i.sstatic.net/jJZIF.png
I've attempted positioning #Form1
as relative and #Form2
as absolute, but so far, I haven't achieved the correct result.
This is the CSS I'm currently using:
#Form1 {
width: 30%;
float: left;
margin-top: 15px;
}
#Form2 {
width: 60%;
float: left;
margin-top: 15px;
}
Here's a sample snippet of the HTML code:
<div id="container">
<form id="form1">
<!-- Content of Form1 -->
</form>
<form id="form2">
<!-- Content of Form2 -->
</form>
</div>