For content for a web page I'm building, I am setting the width at 700px
. Strangely, on my Firefox browser (Ubuntu 16) it appears as 700px on my screen. On my Chrome browser (version 63), the content is expanded up to 1125 pixels. I really don't want my application giving such different results on different browsers.
Here is the code for a movie:
<video preload muted autoplay loop
style = "width:700px;">
<source src="http://www.w3schools.com/html/mov_bbb.mp4"
type="video/mp4">
</video>
Fiddle here in case anyone wishes to reproduce it: https://jsfiddle.net/kae4q601/232/
Similar code for an image:
<h1> Hi I'm text how are you </h1>
<img src="http://lifecdn.dailyburn.com/life/wp-content/uploads/2015/03/The-Nut-That-Could-Help-You-Live-Longer_2.jpg" style="width:700px; height:auto;">
Again, a fiddle that reproduces it on my end: https://jsfiddle.net/cortical_iv/kae4q601/233/
When I go into the developer tools and inspect the elements, it shows the image as being the correct (700px) width in each browser. So the browsers both clearly think they are showing the correct size.
Online people suggested going into Chrome settings and setting page zoom to 100%, but mine already has that setting. In both browswers, I hit ctrl-0
to ensure I hadn't accidentally magnified the viewport.
I have now realized even text is larger on Chrome, so it seems there is a general scaling issue in Chrome on my computer. My system is not set to scale at all.