S
S
SeiLove2015-09-04 11:59:27
safari
SeiLove, 2015-09-04 11:59:27

Why is layout falling in Safari?

Good afternoon! I've been scratching my head all morning. For some reason, in the Safari browser from my phone, the layout of some elements falls (the shadow does not appear in the form and the font of the phone number falls), but in chrome it is beautiful! What could be wrong? I tried to set the style priority with an identifier, nothing changed ..

<p class="phone" id="phoneID">+7(499) 674-08-88</p>

.phone
  {
    position: absolute;
    margin-top: 10px;
    display: block;
    padding-left: 10px;
    background: url(img/tel.jpg) no-repeat;
    width: 183px;
    right: 17px;
    height: 29px;
    padding-top: 4px;
    line-height: 30px;
    font: 100 19px NSCReg;
    color: #ffffff !important;
  }
 #phoneID
 {
    color: #ffffff; /*была попытка задать приоритет стиля через ID*/
 }

and a piece of shadow-highlight style
.veryBad 		{		
  -webkit-box-shadow: 0px 0px 8px 0px rgba(255, 117, 117, 1);
  -moz-box-shadow:    0px 0px 8px 0px rgba(255, 117, 117, 1);
  box-shadow:0px 0px 8px 0px rgba(255, 117, 117, 1);		}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Goncharov, 2015-09-04
@SeiLove

in head:

<meta name="format-detection" content="telephone=no">

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question