You should use a media query in your CSS to change the percentage-
I have edited your code to show you a demo http://jsfiddle.net/kevinPHPkevin/7SAHm/5/
@media screen and (max-width: 400px) {
#sidebar {
width: 50%;
}
#content {
width:50%;
}
}