I am currently in the process of learning how to create websites.
Below is the body tag of my website:
<body>
<h1 id="title">Title</h1>
<div id="loginContainer">
<img id="usernameIcon" src="assets/images/usernameIcon.png" alt="">
<input id="usernameInput" type="text">
<img id="passwordIcon" src="assets/images/passwordIcon.png" alt="">
<input id="passwordInput" type="password">
<button id="loginButton">Sign in</button>
</div>
</body>
Here is a snippet from my CSS file:
#title {
color: black;
text-align: center;
letter-spacing: 1px;
font-weight: bold;
}
#loginContainer{
width: 60%;
height: 400px;
margin-left: auto;
margin-right: auto;
margin-top: 80px;
background-color: white;
border-radius: 20px;
box-shadow: 10px 10px 72px -26px rgba(0,0,0,0.75);
}
...
... (remaining CSS code)
In an attempt to adjust the layout, I added margin-top: 150px;
to the #passwordInput element in the CSS file. This resulted in a change of position for all UI elements on the site.
I am seeking assistance and would appreciate any guidance you can offer as I continue to learn about website development and design.