Useful CSS units You should know
A thread π§΅π
π px :
The px unit is the magic unit of CSS
The px is thus not defined as a constant length, but as something that depends on the type of device and its typical use.
π Viewport Height (vh). This unit is based on the height of the viewport. A value of 1vh is equal to 1% of the viewport height.
Viewport Width (vw). This unit is based on the width of the viewport. A value of 1vw is equal to 1% of the viewport width.
π Percentage % :
It is often used to define a size as relative to an element's parent object
π em : em units for the font-size property will be relative to the font-size of the parent element.
em units on other properties than font-size will be relative to the font-size of the current element.
π rem : The rem unit, short for root em is a relative unit thatβll always be based upon the font-size value of the root element, which is the <html> element.
So that means that, by using the rem unit, the values of parent elements are ignored, and only the value of the root is taken into consideration.
π ch :
Relative to the width of the "0" (zero)
β’ β’ β’
Missing some Tweet in this thread? You can try to
force a refresh
π<!DOCTYPE> : Defines the document type
π<html> : Defines an HTML document
π<head> : Contains metadata/information for the document
π<title> : Defines a title for the document
π<body> : Defines the document's body
π<h1> to <h6> : Defines HTML headings
π<p>: Defines a paragraph
π<br> : Inserts a single line break
π<hr>: Defines a thematic change in the content
π<!--...--> Defines a comment
β‘οΈ List
π<ul>: Defines an unordered list
π<ol>: Defines an ordered list
π<li>: Defines a list item
π<dl>: Defines a description list
π<dt>: Defines a term/name in a description list
π<dd>: Defines a description of a term/name in a description list
Here are some insights which I got from yesterday's spaceπ
β‘οΈThere are two kinds of people we get to see after rejection 1. One who take it in a positive way , pen down things that lead to rejection , Work hard try to overcome those and prepare themself for the next interview
2. The other one after rejection takes the step back thinking that's it's very difficult for them to clear those interviews and they develop a fear of rejection inside them which doesn't let them prepare for the next one
β‘οΈ Never give any labels to yourself Like -
π You're an introvert π You're not good at Coding .. You can't do this or that ...etc
Because at the time you start giving these labels ....then it's becomes very difficult for you to overcome these and move ahead in life.