Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-26-2012, 04:47 PM   PM User | #1
kayut
New to the CF scene

 
Join Date: Nov 2012
Posts: 5
Thanks: 2
Thanked 0 Times in 0 Posts
kayut is an unknown quantity at this point
Question 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
kayut is offline   Reply With Quote
Old 11-26-2012, 05:19 PM   PM User | #2
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
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.
__________________
Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad
Excavator is offline   Reply With Quote
Old 11-26-2012, 06:22 PM   PM User | #3
kayut
New to the CF scene

 
Join Date: Nov 2012
Posts: 5
Thanks: 2
Thanked 0 Times in 0 Posts
kayut is an unknown quantity at this point
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??

Last edited by kayut; 11-26-2012 at 06:27 PM..
kayut is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:32 PM.


Advertisement
Log in to turn off these ads.