I want a basic full width layout with a 250px sidebar on the right. Here’s roughly what I want:
<-------Content-------><--250px sidebar-->
<---------------100% width--------------->
Is this possible without Javascript or tables?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, of course:
see http://jsfiddle.net/whTwg/4/
HTML:
CSS:
Note: instead of
#wrapper{overflow:hidden}(or something different than visible), you could add<div style="clear:both"></div>aftermain-wrapper.Edit:
You are right, I forgot to add
#main-wrapper{overflow:hidden;}. I have fixed the link and the code.