I'm trying to build a page where users browse certain flash games, and I create thumbnail <div>
s for them. They work nicely at first, but when I click one game, and return to the browse page,
the text coincides with the image, when I refresh, it becomes ok.
Wrong version: (after returning back)
Right version: (at start and after refresh)
There is no JavaScript running, so I do not change the styles of elements. The <div>
's with the problem has .css codes like:
div.game_side_texts
{
clear:right;
float:top;
max-height:80%;
}
img.gamethumb
{
height:80%;
}
div.game_img_div
{
float:left;
margin-right:2%;
min-width:30%;
}
.game_thumbnail_div /* the div that contains everything */
{
float:left;
width:40%;
height:20%;
margin-top:6%;
margin-right:1%;
padding-bottom:3%;
}
So what could be the problem? Thanks in advance !