CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   HTML & CSS (http://www.codingforums.com/forumdisplay.php?f=13)
-   -   Beginner Mistake by CSS styling (http://www.codingforums.com/showthread.php?t=283014)

kayut 11-26-2012 04:47 PM

Beginner Mistake by CSS styling
 
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?

Thanks

Excavator 11-26-2012 05: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.

kayut 11-26-2012 06: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??


All times are GMT +1. The time now is 06:23 PM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.