Pointed element width - 65%. I look at the screen - it is clearly more than 65%. I measure with a ruler - the assumption was justified, namely, 72.463 ...% it occupied on the screen. WTF ?, so how to fix it?

UPDATE1 If you take 125% of the screen for 100%, then that element will be just 65%. Those. if the screen would be 1.25 times larger, then the element would be just right

UPDATE2 Everything is fine on the computer, the problem is only on smart

UPDATE3 For the sake of the test set 100%. Element clearly does not fit into the frame of the screen

  • more can you? which element, where it lies, what lies in it. > I measure with a ruler - the assumption was justified, namely, 72.463 ...% presented a designer who measures the width of the monitor with a ruler, and then calculates the percentages))) - IVsevolod
  • Normal div, position: absolute. Nothing special. Is that the body I have under the position: fixed - kandi
  • > Measuring with a ruler finally agon))) Still programming is necessary - you need at least some high technology ... at least a caliper - DreamChild

2 answers 2

In general, I acted according to the popular wisdom - if it increases by 1.25, then it should be reduced by 1.25. Total: width: 52%

    Padding , border is? The indicated percentages are only the content-box element. If yes, then you can specify box-sizing: border-box and it should all fall into place (in IE7 does not work ..

    • There are no boarders, no padings, nothing. And where does ie? I put the tags - mobile-web and phonegap. Phonegap is generally a webkit - kandi