html - Percentage padding difference only in Firefox -
i developed different responsive boxes news in website i'm working in. , seems working fine except news inside slider on top of main content. displays in chrome, opera , in internet explorer, not in firefox. problem seems in article elements, in following lines of css code:
.home .first-level-post { margin: 0px; width: 100%; padding-top: 45.1613%; } it's supposed have height of 280px, that's why chose 45.1613% value. container's width of 620px, , it's 45.1613% 280px.
when switch padding-top property off, takes 93.3333% value belongs article elements present outside slider (which 300px wide), displaying should, value not work in other browsers.
i've been dealing while can't seem find solution. can check issue right here.
thanks in advance, guys :)
firefox interpreting padding based on height of 0 due inheriting .home article class.
changing css seemed fix issue me in firefox , not have adverse effect in chrome:
.home .first-level-post { height: 100%; margin: 0; padding-top: 45.1613%; width: 100%; }
Comments
Post a Comment