Here is my HTML:
<div style="height:50px">
<div tabindex="0" class="banner" onclick="location.href='Home.html'">
Page 1
</div>
<div tabindex="0" class="banner" onclick="location.href='Page 1.html'">
Page 2
</div>
<div tabindex="0" class="banner" onclick="location.href='Page 2.html'">
Page 3
</div>
<div tabindex="0" class="banner" onclick="location.href='Page 3.html'">
Page 4
</div>
</div>
And my CSS:
.banner {
background: orange;
color: aqua;
float: left;
width: 298px;
height: 50px;
vertical-align: top;
border: 1px solid #000000;
text-align: center;
font-family: Garamond;
font-size: x-large;
display: table-cell;
vertical-align: middle;
line-height:50px;
cursor:pointer;
font-weight:bold;
}
The body of my website is 1200px wide. The website structure appears to work fine on different sized screens (from the computers I have checked it on) and all major browsers. However, when zooming out, on all devices, the far right drops down and goes to the left (beneath the first ). Is there any way to do this without any major difficulties? (time is an issue here which is why I only want a simple solution if possible). If there isn't an easy and fast way to do this, then don't worry about it, I'll just leave it as it is.