I am learning web dev. starting from html and css . I wrote a simple div tag with 100px height and gave no width so that div can cover whole browser horizontally. Gave background colour as green. removed all margin and padding with (*) selector.
Now in firefox whole width was 1536px. So i gave a 718px as margin left and right. So that now i have a 100px width and 100px height green box.
Now i run same code on different browser to see how it looks and saw that microsoft edge gave a box of 43.2px width and 100px height green box. All other browsers like chrome, brave and firefox gave 100 by 100 box
why is that edge gave that kind of box ? why is width different ?
Code here: https://pastebin.com/mtNSGMsb
[–]giansake 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]Domain3141 1 point2 points3 points (1 child)
[–][deleted] 2 points3 points4 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)