move social icons and search bar to the right in nav menu
-
hey there,
so I’ve been messing with the CSS for a few days and can’t seem to get this quite right. I added a social media widget and search bar to my primary nav using PHP and CSS codes, but everytime I use this code:
.nav-primary li:last-of-type {
float: right;
height: 32px;
}it messes up how my sub-nav menu items look. it makes the one underneath ‘our mission’ under the about us tab go off the page to the left, and the one titled ‘register’ under the forums tab shift to the left of the sub-nav button above it, so they’re not in line with one another.
I thought the much easier fix would be making the social icons and search bar float to the right than trying to align the sub menu items so I just took out the code above. Does anyone have any ideas on how to make these items float to the right? I’ve tried everything I can think of but I’ll include my code in case anyone has any ideas. Thanks again! Really hope someone can help me here.
- The topic ‘move social icons and search bar to the right in nav menu’ is closed to new replies.