Cannot align social media icons with Nav Bar

Hello! I’vebeen getting the hang of wordpress, simply by googling my problems and reading one of the many resources, but I’m a bit stumped by a problem I’m currently having.

I’ve added social media icons to my nav bar, and I would like them to align right, with my navigation links aligning left. I managed to align the icons to the left, but they push the navigation bar down. You can see what I’m talking abouthere

I can’t seem to get it to align beside the nav links, it just appears one line below.

This is the code I’m using:

<div align="right"><a href=""><img title="Twitter" 
Rimmed-Social-Media-Icons-1.png" alt="Twitter" width="35" height="35" /></a><a 
href=""><img title="Pinterest" src="
alt="Pinterest" width="35" height="35" /></a><a href="><div><a 
href=""><img title="Instagram" src="
alt="Instagram" width="35" height="35" /></a><a href=""><img 
title="Facebook" src="" alt="Facebook" width="35" height="35"
 /></a><a href=""><img title="Email" 
Social-Media-Icons-1.png" alt="Email" width="35" height="35" /></a></div>

I’ve put it in the header.php file in my child theme, next to <!-- #main-navigation -->

I’ve already tried <div align=“top”>, which doesn’t do anything. If anyone could offer a suggestion i’d be super thankful!


You can try to add css rule tho those <div align=“right”… like this:
<div align=“right” style=“position: relative;top: -40px;”>


Hello! That worked, however, Now I have this problem:
screenshot of problem

There’s a large gap underneath the lettering, and it seems that the hyperlink is below the actual lettering (does that make sense?). So to go to the blog page, have to hover my mouse right underneath the word “blog”, as opposed to on top of it.

Please let me know how to fix the problem! Thank you :slight_smile:

I see,

Please try this instead:
<div align="right" style="position: relative;top: -40px;float:right;">

and to reduce the gap, use this css code:

nav#main-navigation {
    height: 50px;

Yes! That worked :slight_smile: Thank you so much for all your help!

Glad to know if its worked :slight_smile: