two panels, pic on the left
This commit is contained in:
parent
432d7357cb
commit
01ca8821d4
3 changed files with 47 additions and 6 deletions
|
|
@ -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>
|
||||||
|
|
|
||||||
BIN
projects/sign-up-form/nice_pic.jpg
Normal file
BIN
projects/sign-up-form/nice_pic.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 912 KiB |
|
|
@ -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;
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue