Width and Height or Percent and Pixel -( background-image dilemma ) Help T-T
I am a newbie guys. I hope someone might help me and tell what is wrong with the code down below... I'm so really confuse here why when I'm doing the tag for background-(image/color) in actual browser using text editor the content does not appear , what I mean is the color or image when I'm using "%" for width and height but "px" is working . while here at sololearn "%" and "px" works together. How does it happen? Is it my browser fault? - (Chrome) ............................................................................................................................................................ <!DOCTYPE html> <html> <head> <link rel="stylesheet" type="text/css" href="--"> </head> <body> <div class="lol"> </div> </body> </html> ....................................................................................................................................... CSS: .lol { background-image:url(" https://i.pinimg.com/736x/c3/d6/fe/c3d6fe2b30a24777218c071a523bf474--el-grande-super-anime.jpg"); /*background-color:red*/ width:100%; height:100%; }