Please who can tell me the use of this code .container {width:100%;} | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Please who can tell me the use of this code .container {width:100%;}

.container {width:100%;}

12th Nov 2021, 10:05 PM
The Joker
The Joker - avatar
11 Answers
+ 3
It is a class called container that has the width of 100% of its parent element.
12th Nov 2021, 10:06 PM
Lisa
Lisa - avatar
+ 2
I told you what it does... Maybe you would like to do the sololearn CSS course to find out about styles and classes?
12th Nov 2021, 10:10 PM
Lisa
Lisa - avatar
0
I've seen people using it. Why do they use it. What's it's purpose
12th Nov 2021, 10:07 PM
The Joker
The Joker - avatar
0
I know about classes and some styles. I think I know stuff but not how to use it
12th Nov 2021, 10:14 PM
The Joker
The Joker - avatar
0
I think I understand. When you use set the container width to auto and the margin is 200px and you resize the window, there won't be a scroll bar at the bottom but when you set the container width to 100% and margin is 200px and you resize the window there will be a scroll bar at the bottom
12th Nov 2021, 10:32 PM
The Joker
The Joker - avatar
0
Please how can I add a link that will force the browser to download an image from a link. The images here are not showing https://code.sololearn.com/WBTsI1cqgruo/?ref=app
14th Nov 2021, 5:27 PM
The Joker
The Joker - avatar
0
The Google logo won't load because the link in img doesn't point to the image but only to the page where the image is. (It should end with .png or something like that) The other links seem to be local files. Sololearn doesn't have access to you local storage so it won't work here.
14th Nov 2021, 5:40 PM
Lisa
Lisa - avatar
0
It's not working. Can you help me download a Google logo and put it there so I'll see how the link is
14th Nov 2021, 5:48 PM
The Joker
The Joker - avatar
0
For example: <img class = "google" src ="https://upload.wikimedia.org/wikipedia/commons/2/2f/Google_2015_logo.svg" alt = "googlelogo">
14th Nov 2021, 5:51 PM
Lisa
Lisa - avatar
0
Thank you
14th Nov 2021, 5:53 PM
The Joker
The Joker - avatar
0
I made changes to the code. I did a lot of nonsense. If you have any opinion, tell me. https://code.sololearn.com/WOcshfDa6p8B/?ref=app
14th Nov 2021, 10:22 PM
The Joker
The Joker - avatar