width: calc(100% - 100px); Using viewport height and viewport width in calculations top:calc(100vh - 16px); left:calc(100vw - 28px);