I have a board game with some image and table.
The display is fine when I work with Chrome, but in other browsers, such as IE, or on another computer with a smaller screen, then my display is broken.
When I tried to resize my browser, I also found this problem.
Before resizing the browser to the left:

After resizing the browser to the left:

I found posts on this issue and they suggested using:
margin-left: 10%; margin-right: 10%;
but it did not help.
CSS
td { width: 105px; height: 90px; text-align: left; vertical-align: top; border: 1px solid black; position: relative; margin-left: 10%; margin-right: 10%; } table { position: fixed; left:9px; top:8px; } #dice { right: 230px; position:fixed; margin-left: 10%; margin-right: 10%; }
HTML:
<img id="dice" src="Resources/images/dice_5.png" number="5"> <table oncontextmenu="return false"> <tbody> <tr> <td class="" cellnumber="1" row="0" col="0"><span>1</span></td> <td class="" cellnumber="2" row="0" col="1"><span>2</span></td> <td class="" cellnumber="3" row="0" col="2"><span>3</span></td> <td class="" cellnumber="4" row="0" col="3"><span>4</span></td> <td class="" cellnumber="5" row="0" col="4"><span>5</span></td> </tr> </tbody> </table>
source share