two panels, pic on the left

This commit is contained in:
Pablo Martin 2025-04-23 08:42:19 +02:00
parent 432d7357cb
commit 01ca8821d4
3 changed files with 47 additions and 6 deletions

View file

@ -7,6 +7,11 @@
<link rel="stylesheet" href="style.css" /> <link rel="stylesheet" href="style.css" />
</head> </head>
<body> <body>
<h1>Sign Up Form Project</h1> <div class="full-screen-container">
<div class="left-panel">
<img src="nice_pic.jpg" class="left-panel-pic" alt="">
</div>
<div class="right-panel">ola?</div>
</div>
</body> </body>
</html> </html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 912 KiB

View file

@ -1,8 +1,44 @@
:root{ :root {
--main-color: green; --main-color: green;
} }
body { body {
background-color: var(--main-color); background-color: var(--main-color);
} padding: 0;
margin: 0;
}
.full-screen-container {
width: 100vw;
height: 100vh;
}
.left-panel {
width: 33%;
height: 100vh;
background-color: var(--main-color);
margin: 0;
padding: 0;
overflow: hidden;
position: relative;
display: flex;
justify-content: center;
align-items: center;
position: absolute;
}
.left-panel-pic {
margin: 0;
object-fit: cover;
position: absolute;
}
.right-panel {
width: 67%;
background-color: antiquewhite;
margin: 0;
padding: 0;
position: relative;
left: 33%;
top: 0;
}