I have strange bug where while browsing through categories on the magento webshop header of the webshop changes height on different pages (http://shop.tvornica-snova.hr/index.php/)
Ie if you are on the homepage, and click on some of the categories the header extends for additinal 10px in height and kind of pushes the content down.
I seem to have same html structure and layout for the both homepage and categories so I cannot figure out where is the bug.
Can someone help?
Check out the
header-top
section of your markup for a normal page, and for the "jumping" page.Normal:
Jumping:
The first one contains two references to
class="logo"
, which has a defined rule ofmargin-top: -10px;
. This is the case for any of your pages where the header is the closest to the top of the page - it is being pulled up by20px
The second one is marked up slightly differently, and contains just one reference to the class - hence the 10px shift you see.