View Full Version : Beginner Mistake by CSS styling

11-26-2012, 05:47 PM
Hi guys,

I am about to learn CSS. Today I made a web page which you can find here: http://acecars24.com/test

The code might includes many mistakes, however what makes me crazy is the fact, that if I make the Browser window smaller, the sidebar (in pink) jumpt underneath the main content.

What is my mistake?


11-26-2012, 06:19 PM
Hello kayut,
When #wrapper narrows up to where your #main and aside do not fit beside each other, the elements start re-arranging themselves so they do fit. That's what they're supposed to do.

To stop that, set either a width or a min-width on #wrapper.

11-26-2012, 07:22 PM
Thanks for your reply.
I know. Meanwhile I changed the code and it works now the way I wanted.

The next problem is:

What should I add to my CSS code, so that the sidebar is always as heigh as the main content??