My goal is to position the navigation bar next to the logo in my Wordpress theme using Underscores. I have successfully aligned the primary navigation and the logo as desired with the following CSS:
.main-navigation {
position: relative;
float: right;
top: -4em;
width: 55%;
display: block;
clear: both;
font-family: 'Lato', sans-serif;
text-transform: uppercase;
}
.main-navigation ul {
list-style: none;
margin: 0;
padding-left: 0;
float: right;
}
Here is an image demonstrating how I want it to appear:
I am aware that utilizing negative margins, such as top: -4em;
, may not be the most elegant solution and could lead to issues down the road.
I am new to using JSFiddle, so I hope I have set everything up correctly! Here is my condensed code snippet for reference: http://jsfiddle.net/DMDesigns/d39ej96r/11/
What would be the ideal approach to achieve this layout? While I have come across various similar inquiries online, most of the solutions provided are too specific to other websites to be helpful in my case.