Hi i've been driving myself crazy editing my sites layout for a new look... OK Lets say i have this <wrap> <content> <content divs> <content divs etc> </content> <sidebar> </sidebar> </wrap> OK sidebar is floated right at 300px , wrap is set to 95% width. content is floated left. The question is how can i make the content width flexible so that it becomes smaller when resized. You see if i set it to 100% now it will just make it 100% of the wrap therefore pushing the sidebar below it? So how can i set it to 100% while allowing the 300px sidebar floated to the right of it?
You would have to set it to a smaller % of the wrap. If you target 1024 resolution, setting it 70% would be close to 100% of the viewport with the sidebar. Guess the answer would be: no you can't set it to 100% and have the sidebar.
No worries i got it to work somehow by opening the sidebar before the content glad it's finally working for now thanks for the help.
Just so you know for future reference, you should simply not set a width on content but merely give it a right margin to make room for the sidebar. content will rezise automagically. Keep the width on your container.