Use %. % takes the x% space of the parent element. example: This div will have the same width as the body, which is usually the whole page.