HTML Challenge | Difference between width=ā€œ100ā€ and width=ā€œ100%ā€ | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

HTML Challenge | Difference between width=ā€œ100ā€ and width=ā€œ100%ā€

I get that ā€œ100ā€ and ā€œ100%ā€ are not the same. But can you help me understand WHAT I SHOULD LOOK OUT FOR WHEN DISTINGUISHING THE TWO? Does width=ā€œ100ā€ and width=ā€œ100%ā€ mean the SAME when itā€™s in the <img> tag? OR...?

18th Apr 2020, 11:35 AM
MiracleOny
MiracleOny - avatar
1 Resposta
+ 3
No, that 100 by default means 100 pixel and the 100% means full width without leaving any space
18th Apr 2020, 11:37 AM
Raj Kalash Tiwari
Raj Kalash Tiwari - avatar