html - Large images with overflow: hidden; don't get centered in Firefox -
i'm trying rid of horizontal scroll bar (a) when changed footer images got messed (b) , i'm not sure happening or do.
a: unwanted horizontal scroll: https://mabonzo.github.io/prj-rev-bwfs-tea-cozy/teacozy/
b: commented out footer , images go wonky: https://mabonzo.github.io/prj-rev-bwfs-tea-cozy-test/teacozy/
initially trying change footer rule-set having left: 20px;
margin-left: 20px;
or padding-left: 20px;
when ran problem! speculate related actual resolutions of images, i'm not sure.
resizing browser fixes centers images.
i asked on slack group no avail, tested on different browsers , seems issue on firefox. on chrome , edge load no problem... guess updated question how fix firefox users.
edit: going update website, problem won't in (a) link. test site (b) still , broken. thanks!
your footer
element has auto
width (which full width of screen, because it's block level element) left: 20px
(combined position:relative
) it's full width of screen starts 20px left, meaning 20px off right side of screen.
padding-left:20px
on footer
accomplish same goal , not cause horizontal scrollbar.
Comments
Post a Comment