How can I be good at css measurement. How will I know what 200px or 2cm is. Is there a ruler I can download to measure a webpage | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can I be good at css measurement. How will I know what 200px or 2cm is. Is there a ruler I can download to measure a webpage

Css measurement

12th Nov 2021, 10:34 PM
The Joker
The Joker - avatar
27 Answers
+ 6
Thanks
13th Nov 2021, 12:34 AM
The Joker
The Joker - avatar
+ 6
You may be interested in this ☺️: https://code.sololearn.com/Wu7D6rBUIqmy/?ref=app
13th Nov 2021, 10:21 AM
Solo
Solo - avatar
+ 3
It's not a stupid question at all. Just one that could easily be resolved with a web search.
12th Nov 2021, 11:33 PM
Simon Sauter
Simon Sauter - avatar
+ 3
I wrote alot of CSS and HTML to the point that i could always almost precisely predict the right measurement for any of my elements. If u keep at it, u will get used to it. PLUS to make to things easier for me, i always set my font-size to 62.5% so that i could precisely know my measurements when i use rem units. 5rem will equal 50px oh, i will also advice you to use DevTools in your browser to check your measurements.
14th Nov 2021, 7:15 PM
Govan Dibotelo
Govan Dibotelo - avatar
+ 2
For that you should try to make more code projects. As it will give you the knowledge of specific px or cm value.
13th Nov 2021, 12:08 AM
𝓐𝓷𝓼𝓱𝓲𝓴𝓪 (Anshika)
𝓐𝓷𝓼𝓱𝓲𝓴𝓪 (Anshika) - avatar
+ 2
The Joker, uncomment them and you will see ☺️
13th Nov 2021, 12:02 PM
Solo
Solo - avatar
+ 2
If you use chrome, try using Firefox box models. It'll help you trying various measurements and that can be of help
14th Nov 2021, 10:24 AM
Success
Success - avatar
+ 1
I'm sorry for asking a stupid question
12th Nov 2021, 11:31 PM
The Joker
The Joker - avatar
+ 1
The Joker, and what will it give me?
13th Nov 2021, 10:52 AM
Solo
Solo - avatar
+ 1
The Joker I tried it but nothing changed.
13th Nov 2021, 11:00 AM
Solo
Solo - avatar
+ 1
The Joker, that's another matter 😉
13th Nov 2021, 11:31 AM
Solo
Solo - avatar
+ 1
The Joker, ok, but I'll leave it as it is for now, I just started writing it specifically for your question, so that you can navigate in size when creating a web page.
13th Nov 2021, 11:46 AM
Solo
Solo - avatar
+ 1
Maybe you're in the point where you tried to make a box, such as div with width of 500px, resizing the browser, like making it smaller or expanding will cause the elements to be deformed or having the results that you don't want and feel that you don't have the power over them. If you want more control over your project, you should learn the responsive web course here in html, and it will give you more control over your project. You will learn more about measurements if you learn that course.
14th Nov 2021, 6:27 AM
Jonathan P. Jundarino
Jonathan P. Jundarino - avatar
+ 1
You can use min-width to specify the minimum width of the box when you shrink the browser to lowest. max-width does the opposite
14th Nov 2021, 9:30 AM
The Joker
The Joker - avatar
+ 1
Your ultimate goal is not knowing how many cm your elements will be. You want your webpage to look good when users browse it. To achieve this, you need viewport units and media query https://code.sololearn.com/WrgbrFC038ma/?ref=app
14th Nov 2021, 9:55 AM
Gordon
Gordon - avatar
+ 1
The Joker yeah, what I mean is, you can have many blocks or box(elements) in one line, but with the help of responsive web, you can make them go down like this: Think of this as a blocks in one line [] [] [] [] [] [](PC browser) [] [] (Phone view) [] [] [] [] Knowing responsive web is what you need, every device have different screen size, what is the point of making a block of element in to 600px, if other device have different screen size. For example, you make a website using pc, and it looks beautiful, but if you view it, using tablet or phone, that would look ugly.
14th Nov 2021, 10:08 AM
Jonathan P. Jundarino
Jonathan P. Jundarino - avatar
+ 1
Just try the measurements out and see how they look on screen the best one is 'em' and 'rem' for fonts and small elements and Vh and VW for containers you can also use percentages.
14th Nov 2021, 6:18 PM
moses
moses - avatar
0
How could you possibly figure this out? If only there were special websites using machine learning where you can go to look for information. You could call them "looking for things machines".
12th Nov 2021, 11:29 PM
Simon Sauter
Simon Sauter - avatar
0
Which means it's stupid
12th Nov 2021, 11:34 PM
The Joker
The Joker - avatar
0
Check out my project on my profile. Tell me if it's nice. If you have any corrections tell me
12th Nov 2021, 11:35 PM
The Joker
The Joker - avatar