+ 1
When i use percentage to set the width and the height of a div, is the div going to be dinamic?
I mean by dinamic div,that the div will adapt to the screen resizing.
2 Antworten
+ 1
Yes, but his width and height depend on the size of his parent (you have to set it). For example if I want a div just inside html tag of width 50% of the screen i have first to declare the width of html (setting 100 % in html or body tag means that body and html cover all the page)
https://code.sololearn.com/WMl4bqR9V8mm/?ref=app
+ 2
yes