Why doesn’t css 100% - 100% work without absolute?
question 2) why do I get no result if I change width from % to px and height px to % ?
0 is also
Define the parent elements, in this case
The reason it works with absolute positioning is because absolutely positioned elements are taken out of the flow of the document, thus their parent’s dimensions don’t need to be defined.