How can these two work together % & px.. just trying to make sure I'm understanding it. Thanks | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How can these two work together % & px.. just trying to make sure I'm understanding it. Thanks

<div>The total width of this element is <strong>100%</strong> and the total height is <strong>100px</strong> .</div>

24th Jun 2018, 8:19 PM
QBulla
QBulla - avatar
6 Answers
+ 1
yes if an elem has height 250 px width 250 px 2nd elem height 100% means take all available space meaning all the 250px
24th Jun 2018, 8:57 PM
Abdur-Rahmaan Janhangeer
Abdur-Rahmaan Janhangeer - avatar
+ 1
100% means take all available space just like saying in 10 cakes, how can 50% of it and 5 cakes work together
24th Jun 2018, 8:49 PM
Abdur-Rahmaan Janhangeer
Abdur-Rahmaan Janhangeer - avatar
+ 1
so its saying take 100% of the 100px...??
24th Jun 2018, 8:52 PM
QBulla
QBulla - avatar
+ 1
appreciate the advice and feedback... just trying to get into this world of code
24th Jun 2018, 8:53 PM
QBulla
QBulla - avatar
+ 1
what's your advice on coding languages to learn starting out... I am also apart of W3Schools.com
24th Jun 2018, 8:59 PM
QBulla
QBulla - avatar
0
ok great thanks
24th Jun 2018, 8:58 PM
QBulla
QBulla - avatar