Link to home
Start Free TrialLog in
Avatar of Fajer39
Fajer39

asked on

anchor tag overflow

Hello experts,

I don't know why the anchor tag has the wrong width and height properties. The main element .notificationsBarNav is display flex, but on other similar "tabs" I use floating and the anchor tag is still wrong size when use with *google font icon* and some *span* text.

When I try to change the width and height  in the chromeDevTools, it doesn't react on it.

http://tinypic.com/r/15i6wwi/8

Here's the css:

.notificationsBarNav {
    height: 33px;
    padding: 0 5px;
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: flex;
    justify-content: space-between;
    align-items: center;

    > div, a {
      height: 33px;
    }

    a,i, span {
      color: #fff;
    }

    .material-icons {
      font-size: 28px;
      line-height: 33px;
    }
  }

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Tom Beck
Tom Beck
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Fajer39
Fajer39

ASKER

you are right Tom, it works, thank You.

But one last problem- the height of the the anchor tag is ok now but the span with *(0)* is still not vertical-align: middle as it should. How to fix that?
Avatar of Fajer39

ASKER

Solved- I have to remove height and line-height
Thanks for the points.