use my width in calc code example Example: calc css float to procent padding-bottom: calc(100% * 9/21);