I am trying to construct a layout in my “app-view” div where the “leftPane” has a fixed with and the “rightPane’s” width extends with the browser width (percentage). Is this possible with CSS (no Javascript)? Below are my basic styles for the layout in the div.
#app-view
{
width: 100%;
height: 400px;
}
#leftPane
{
float: left;
width: 33.33%;
max-width: 250px;
height: 400px;
background: blue;
}
#rightPane
{
float: left;
width: 66.66%;
height: 400px;
background: green;
}
You can use
leftandrighton#rightPaneinstead of width. You also need to make#app-viewpositioned relatively and both panes absolute.JSFiddle