Ok, I have a very basic page that I am trying to set up. I have a div called wrapper to contain the entire page content. Then I have two divs inside of the wrapper, the main content (on the left) and a sidebar (on the right).
I am floating the sidebar to the right of the main content section. That is working fine. What I want to do is to have the sidebar a fixed width of 200px and the main section automatically resize based on the users browser size. I want this main section to stretch up to the sidebar then stop. I tried setting it to 100% width hoping that it would just stretch to the sidebar. This didn't work and the two divs overlapped. I tried the "auto" setting for the width but that didn't work either. Again, it ran over.
I am missing something easy I think. Can you help?
I am floating the sidebar to the right of the main content section. That is working fine. What I want to do is to have the sidebar a fixed width of 200px and the main section automatically resize based on the users browser size. I want this main section to stretch up to the sidebar then stop. I tried setting it to 100% width hoping that it would just stretch to the sidebar. This didn't work and the two divs overlapped. I tried the "auto" setting for the width but that didn't work either. Again, it ran over.
I am missing something easy I think. Can you help?
Comment