I'm looking to revamp my menu layout by aligning the links with the social media icons and home button on the same line.
The links are nested inside a div within the main navbar class (streetworn-demos), while the social media icons and homepage button have their own floated divs. I attempted adjusting the width of the navbar class, expecting the links to fall into place, but it only altered their positioning.
How can I achieve having the links and social media icons inline and centered?
@import url(http://fonts.googleapis.com/css?family=Raleway:300,400,700);
*,
*:after,
*:before {
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.clearfix:before,
.clearfix:after {
content: '';
display: table;
}
.clearfix:after {
clear: both;
}
body {
background: #333;
color: #fff;
font-size: 16px;
font-family: 'Raleway', Arial, sans-serif;
}
a {
color: #fff;
text-decoration: none;
font-weight: 700;
outline: none;
}
/* Link Colours */
.fade {
background: #333;
}
.fade a {
color: #fff;
}
a:hover,
a:focus {
color: #333;
}
.social {
float: left;
GET request from https://api.openai.com/v1/api/inputs:
Access-Control-Allow-Origin: *
Access-Control-Request-Headers: authorization,content-type
Connection: close
Content-Length: 119
Content-Type: application/json
Date: Fri, 19 Nov 2021 15:33:47 GMT
Server: CloudFront
Vary: Origin
X-Amz-Apigw-Id: D4GO7ELLIAMFS0A=
X-Amzn-Trace-Id: Root=1-619c6b28-3d95dbac11e68cafe81b5108;Sampled=0
X-Cache: Miss from cloudfront
#social {
padding: 5px;
}
/* Rest of the CSS code */
<div class="login">
<a class="loginlink" href="#">Login / Signup</a>
</div>
<nav class="Streetworn-demos">
<div class="navbar">
<a class="brands" href="#">PALACE</a>
<a class="brands" href="#">GOLFWANG</a>
<a class="brands" href="#">SUPREME</a>
<a class="brands" href="#">BILLIONAIRE'S BOYS CLUB</a>
<a class="brands" href="#">STUSSY</a>
<a class="brands" href="#">ANTISOCIAL SOCIAL CLUB</a>
</div>
<div class="homepage">
<a class="home" href="index.html"><img id="home" alt="Return to the landing page" src="https://image.ibb.co/fnApE7/home2.png" style="height: 36px; width: 36px" onmouseover="this.src='https://image.ibb.co/bwSEgn/homeicon.png'" onmouseout="this.src='https://image.ibb.co/fnApE7/home2.png'"></a>
</div>
<div class="social">
<a href="http://www.facebook.com/"><img id="social" alt="Follow Streetworn on Facebook!" src="https://image.ibb.co/ftLBSS/fb2.png" style="height: 36px; width: 36px" onmouseover="this.src='https://image.ibb.co/ktUS1n/fbicon.png'" onmouseout="this.src='https://image.ibb.co/ftLBSS/fb2.png'"></a>
<a href="http://www.instagram.com/"><img id="social" alt="Follow Streetworn on Instagram!" src="https://image.ibb.co/fDPugn/ig2.png" style="height: 36px; width: 36px" onmouseover="this.src='https://image.ibb.co/e5o9E7/igicon.png'" onmouseout="this.src='https://image.ibb.co/fDPugn/ig2.png'"></a>
<a href="http://www.twitter.com/"><img id="social" alt="Follow Streetworn on Twitter!" src="https://image.ibb.co/cK5Zgn/twitter2.png" style="height: 36px; width: 36px" onmouseover="this.src='https://image.ibb.co/eGbJ7S/twi...
</div>
</nav>
I would greatly appreciate any assistance!