I have two columns side by side. As i try to decrease the size of the screen, i want the left column to keep its width where as the right column should adhere to the size of the screen. At 600px wide, i want to display the right column on top of left column. Right now, my right column is getting pushed into left column.
This is what i have so far
<section id="content">
<div class="pageWrapper">
<div class="contentColumn fontRoboto">
<!-- right column -->
<section id="rightColumn">
<div class="pageTitle drkBlueFont fontRobotoLight">Match Report</div>
<asp:ContentPlaceHolder ID="ContentRightColumn" runat="server"></asp:ContentPlaceHolder>
</section>
<!-- left column -->
<section id="leftColumn">
<asp:ContentPlaceHolder ID="ContentLeftColumn" runat="server"></asp:ContentPlaceHolder>
</section>
<div class="clearboth"></div>
</div>
</div>
</section>
and css
.pageWrapper { max-width: 980px; margin: 0 auto; }
#content {background-color: #FFF; }
.contentColumn { width: auto;position: relative; padding: 10px;} /*container width 960px*/
#rightColumn {
float: right;
padding-left: 20px;
padding-right: 20px;
max-width: 620px;
width: 620px;
border-bottom: 1px solid red;
}
#leftColumn {
padding-left: 20px;
padding-right: 20px;
width: 260px;
/*min-width: 260px;*/
border-bottom: 1px solid green;
}
@media (max-width: 780px) {
.contentColumn { padding-top: 0;}
}
@media (max-width: 600px) {
#rightColumn {
position: relative;
float: none;
display: block;
}
#leftColumn {
width: auto;
}
}
But here is what i have. How can i make the left column to retain its width till 600 px? At 600px, i want it to take the width of the container.