0

I am working on my wife's business site at invisionbilling.com and I am having difficulties vertically aligning the email address and the social icons in the header. I would like to align the email address vertically in the center of the header bar. This would also make it align with the social icons. I have been inspecting the elements and looking at the CSS but can't seem to make the right adjustment. Below is the CSS I believe that is affecting it. Can anyone help me fix this? Thanks!

div#header-widget-area {
    float: right;
    padding-left: 25px;
}

header .header_top .header_link {
    list-style: none;
    text-align: right;
    margin: 0;
}

header .header_top .header_link li {
    display: inline-block;
    margin-left: 10px;
    position: relative;
}

1 Answers1

0

Looks like you've got a case of the clearfix.

Just add the "clearfix" class to your "header_link" element, then your CSS for the email li tag:

header .header_top .header_link li {
    display: inline-block;
    margin: 9px 5px;
    position: relative;
}

That should fix it up! Read more about clearfix here: What is a clearfix?

Breezy
  • 74
  • 2
  • 14
  • I couldn't get that to work. How do I add a "clearfix" class to my "header_link" element? I'm looking through my header.php file and it is showing – Two Guys Playing Zelda Jul 19 '18 at 20:33
  • Ah, my mistake for not being more clear! Just like this: – Breezy Jul 19 '18 at 21:09
  • @TwoGuysPlayingZelda Don't forget to accept the answer if it's correct :) – Breezy Jul 25 '18 at 13:19
  • I could not get that one to work but that doesn't mean it doesn't work. I might have not gone about it correctly. What I ended up doing was adding 2 header widget areas and I floated one left and one right. Thanks everyone for your help! – Two Guys Playing Zelda Jul 26 '18 at 14:05
  • 1
    Breezy, I just saw your comment that said to use – Two Guys Playing Zelda Jul 26 '18 at 14:07
  • @TwoGuysPlayingZelda No problem at all! Just happy to hear you got it working! – Breezy Jul 26 '18 at 15:33