This is my first post here and also i'm bad with math so don't be mad at me :)
Here is my issue, i have a box and i have another box inside, now i want that box inside to be at exactly same distance from each side, no matter what size it parent is.
Now i know how to calculate the distance from the sides, but i can't figure how to get right box dimensions. To make thing more clear i draw this example:
http://www.part.lt/img/f2204b0558a21a3695c6698de6e0f7f4835.png
I hope i make some sense here :)