tags:

views:

29

answers:

2

I got headache how to make my fluid content will float to right.

  1. left sidebar is fixed size.
  2. right content is fluid size.

Here and example my html and css

How to make my id="content" will float on right?

+2  A: 

Set a margin and remove the float/width on #content, like so: http://jsfiddle.net/HWMJc/1/

meder
Awesome meder. So the width 100% is not important?
kampit
You don't need it in this case since you're setting a left margin.
meder
A: 

Don't use 100% width on #content.
70% works, but there is a small gap between the two elements. You can adjust it to make it fit better though.

Alexander
How about if we have different monitor sizes?
kampit
It should still adjust properly.
Alexander