Why is width property not working for .formline label and .formline input? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 1

Why is width property not working for .formline label and .formline input?

https://code.sololearn.com/Wc3187bKsYRc/?ref=app

21st Jun 2020, 10:10 AM
Sameer Crestha
Sameer Crestha - avatar
2 Respuestas
+ 1
Please use "display: inline-block;" in both objects, so that their widths are actually honored. I think they're treated as "inline" objects, so their width is automatically constrained by their natural values (no. of characters in the case of text).
21st Jun 2020, 10:13 AM
Felipe BF
+ 2
Thankyou
21st Jun 2020, 10:23 AM
Sameer Crestha
Sameer Crestha - avatar