View Full Version : Float Right, but stop at 300px

Oct 21st, 2008, 01:59 AM
Hi, I am having trouble figuring out how to do this.
I have a container that floats right, but I need to to stop at a certain point (300px).
When the the user resizes his window it should keep to the right unless it's position is greater than 300px, then it should stay at 300px.
here is my website that needs the fix:

Am I being clear, or do I need to restate this? Let me know please.

Oct 21st, 2008, 04:40 AM
You talking about .right-aligned #container ?

Give it:


Then it will sit 300pixels from the right of the body. You should probably remove the 22px margin as well. Let me know if that's what you were after.