I have a div that I want to be 99% of the page and have the text start 1em away from the edge of the box. Below is my coding. Once I add the 1em padding, it stretches the div to wider than the page. I don't want to use fixed widths because I'm trying to make this look good on phones and tablets of various resolutions.
How can I make all text in the box start away from the edge and the box size not change?
#contents {
float: left;
width: 99%;
border-radius: 1em;
margin: .5% .5% .25% .5%;
padding-left: 1em;
background-color: #B7ECFF;
}