Divs offset after page load
Posted: Fri Sep 16, 2011 3:05 pm
I have some divs setup that hold my HP bar and psionics bar. If I follow a link on the page that leads back to the same page like backpack then runs the back pack code but everything else remains the same the divs get shoved down. If I hit refresh they go back. I can be on the same page and follow a link to the same page and they are offset. As soon as I hit refresh loading the same page they go back to normal. Weirdest thing ever.


css


css
Code: Select all
#hpfront{ position:absolute;
width: 100px;
height: 15px;
z-index:3;
}
#hpback{ position:relative;
width: 100px;
height: 15px;
z-index:2;
}
#psifront{ position:absolute;
width: 100px;
height: 15px;
z-index:3;
}
#psiback{ position:relative;
width: 100px;
height: 15px;
z-index:2;
}
#expfront{ position:absolute;
width: 100px;
height: 15px;
z-index:3;
}
#expback{ position:relative;
width: 100px;
height: 15px;
z-index:2;
}