My URL: love splash panic
I added a “Free Shipping on orders over $50” to my header. How can I get this element to not slide left and right when zooming?
The CSS I’m using: .shipping {position:relative; top:100px; right:-1000px;}
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Move your
<a>element inside of the following divs (immediate childs of thebody):body > #header-wrapper > #header.container > .margin.clearfix > a.shippingAfter doing this, change the styles as follows:
The reason the anchor was moving was because it was relative to its position to the left edge of the screen, causing it to stay towards the left side when zooming out. After doing this, it will instead be relative to the
#headerdiv, which is centered, and stays that way when zooming out.