CSS problem on mobile phones

Hello, in this site goo.gl/p16ngm I don't know why on mobile phones are glyphicon overlapping with the text. Glyphicon is inside a span which is inside an h3.

I tried this quick fix bellow[only on star to see the result], but it works only when I resize windows manually to a mobile size, but when I try it on actual phone [galaxy s4] or thought GdevTools device mode, it doesn't work and glyphicons are still overlapping the text.
@media (max-width: 800px) {
  .reference span.glyphicon.glyphicon-star {
    margin-right: 25px;
  }
}

Open in new window


Here is the screenshot http://awesomescreenshot.com/0514pj3iaa
LVL 1
Fajer39Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Tom BeckCommented:
That margin-right:25px is not being applied except on desktop browsers less than 800px wide. And on those it's pushing the text too far to the right.

What seems to fix the problem is removing display:inline-block from this definition.

.glyphicon {
  position: relative;
  top: 1px;
  /* display: inline-block; */
  font-family: 'Glyphicons Halflings';
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
SSupremeCommented:
I think you might need display: inline; instead of display: inline-block;.
Also it is recommended to use <meta name=viewport content="width=device-width, initial-scale=1">.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
skijCommented:
Try this:

  .glyphicon.glyphicon-star{
    min-width: 22px;
    display: inline-block;
    float: left;
  }

Open in new window

Fajer39Author Commented:
Thank you very much guys. Ok I will add that.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
CSS

From novice to tech pro — start learning today.