I'm trying to align my images and anchor text in a horizontal row that is centered with the form. The images and anchor text should also be aligned with each other and with the surrounding text.
Take a look at the complete page: https://i.sstatic.net/5sUBO.png
Here's an image illustrating the issue: https://i.sstatic.net/liHV0.png
I need the "Facebook, Google, and Apple ID" text to be centered between the images and I require both the images and anchor text to align properly with the text that says "or sign up using...". I initially used "display: flex" for the anchor text and images but they ended up stacking vertically. Due to this, I had to resort to using "display: inline-flex" to achieve the desired horizontal alignment.
/* styles for the main page */
.main {
display: table-cell;
width: 89.3%;
vertical-align: top;
background-color: rgba(17, 13, 13, 0.904);
}
form {
border: 3px solid rgb(26, 25, 25);
background-color: rgb(26, 25, 25);
border-radius: 5px;
height: 85%;
width: 60%;
margin-top: 15px;
margin-left: 70px;
}
h1 {
text-align: center;
color: white;
font-size: 28pt;
font-family: 'Montserrat', sans-serif;
}
#user {
margin-left: 40px;
margin-right: 7.4em;
font-family: 'Inter', sans-serif;
color: rgb(172, 164, 164);
font-size: 10pt;
}
/* more CSS rules here... */
<!DOCTYPE html>
<html lang="en">
<head>
<title>Chess Facts</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="../styles/signin.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@700&display=swap" rel="stylesheet">
/* additional styling links */
</head>
<body>
/* structure of the webpage with relevant content goes here */
</body>