hello,
when i zoom in or out the div's location changes insted of getting bigger or smaller and staying in relatively in the same location.
how can i change that?
thanks for helping.
Hello matanl1234,
It sounds like you are using absolute positioning to place your div element. Do you have some code for us to see the problem in action?
I created this example: http://jsfiddle.net/shLjX/ .
Its simillar to to the problem i'm having, the div's width changes too instead of only getting smaller or bigger.
In that example, you don't give div.a a size so it takes what's available to it minus the left and right 50px margin. I did not try it out... not sure that's really how it works.
Maybe you're looking for a percentage based layoutlike this?
I tried percentage based layout before and didn't like it so much.
Can you give me a simple example of a div that stays in the same location when zooming?