I have a sidebar that is fixed at 200px on the left side of the page, and a responsive content container on the right side.
To center the content in the right container, I used the following CSS:
.sidebar {
width: 10%;
position: fixed;
height: 100%;
background-color: red;
}
.parent {
position: relative;
width: 90%;
height:auto;
margin-left: 10%;
border: 2px solid #000;
}
#kid {
width: 75%;
margin: 0 auto;
border:2px solid #f00;
}
Now, I want to achieve the same layout with a fixed width sidebar of 200px. How can I do this? JSFiddle: http://jsfiddle.net/Dnjwa/1/
Any assistance would be greatly appreciated. Thank you!