Why don't the elements below show up side-by-side? I can change the left to width: 29%
and it works but then there is a tiny gap. Why can't they add up to 100%? Is there a fix for this?
@media all {
body,html {
margin:0; padding:0;
}
#content {
position: absolute;
width: 8.5in;
left: 50%;
margin: 0 0 0 -4.25in;
padding: 0;
}
#left {
width: 30%;
display: inline-block;
background-color: lightgray;
}
#right {
width: 70%;
display: inline-block;
background-color: cornflowerblue;
}
}
<body>
<div id="content">
<span id="left">
left
</span>
<span id="right">
right
</span>
</div>
</body>