๐ก CSS Tip 1๏ธโฃ
The CSSย ๐ณ๐ผ๐ป๐-๐ธ๐ฒ๐ฟ๐ป๐ถ๐ป๐ดย property defines the way specific pairs of letters are spaced.
๐ก CSS Tip 2๏ธโฃ
Theย ๐ฐ๐๐ฟ๐ฟ๐ฒ๐ป๐๐๐ผ๐น๐ผ๐ฟย keywordย represents the calculated value of the elements color property.
๐ก CSS Tip 3๏ธโฃ
๐ฅ๐๐๐ฎ is used to define the color of an object. The advantage of using RGBa method is the ability to take advantage of the last element of the equation, which isย a (๐ฎ๐น๐ฝ๐ต๐ฎ ๐๐ฟ๐ฎ๐ป๐๐ฝ๐ฎ๐ฟ๐ฒ๐ป๐ฐ๐)
๐ก CSS Tip 4๏ธโฃ
Css comes with some filter effects. Similar to image editing the filter ๐ด๐ฟ๐ฎ๐๐๐ฐ๐ฎ๐น๐ฒ helps converting image to grayscale. The value 1 denotes 100%
๐ก CSS Tip 5๏ธโฃ
The ๐ฏ๐ฎ๐ฐ๐ธ๐ด๐ฟ๐ผ๐๐ป๐ฑ shorthand property has the following longhand values
โก๏ธbackground-color
โก๏ธbackground-image
โก๏ธbackground-repeat
โก๏ธbackground-attachment
โก๏ธbackground-position
โก๏ธbackground-size
โก๏ธbackground-origin
โก๏ธbackground-clip
๐ก CSS Tip 6๏ธโฃ
The ๐ฐ๐น๐ถ๐ฝ property works only on absolutely positioned elements
๐ก CSS Tip 7๏ธโฃ
The ๐๐ผ๐ฟ๐ฑ-๐๐ฟ๐ฎ๐ฝ property is similar to ๐ผ๐๐ฒ๐ฟ๐ณ๐น๐ผ๐-๐๐ฟ๐ฎ๐ฝ.
The only difference is only few new browsers support overflow-wrap
๐กCSS Tips 8๏ธโฃ
Enableย ๐๐๐ถ๐ฝ ๐ฐ๐ผ๐บ๐ฝ๐ฟ๐ฒ๐๐๐ถ๐ผ๐ปย server-side whenever possible, it shrinks the size of files such as CSS without removing any of the content.
๐กCSS Tips 9๏ธโฃ
To vertically center contents of div
If one line of text set ๐น๐ถ๐ป๐ฒ-๐ต๐ฒ๐ถ๐ด๐ต๐ to height of container. If non-text contents wrap the DIV in a ๐ฑ๐ถ๐๐ฝ๐น๐ฎ๐: ๐๐ฎ๐ฏ๐น๐ฒ DIV & set inner DIV to ๐ฑ๐ถ๐๐ฝ๐น๐ฎ๐: ๐๐ฎ๐ฏ๐น๐ฒ-๐ฐ๐ฒ๐น๐น
๐กCSS Tips 1๏ธโฃ0๏ธโฃ
๐๐ผ๐ฏ๐ผ๐๐ผ๐บ๐ถ๐๐ฒ๐ฑ ๐ผ๐๐น ๐๐ฒ๐น๐ฒ๐ฐ๐๐ผ๐ฟ
- * + *
Useful for situations when you have multiple elements of the same kind that need some spacing.
๐กCSS Tips 1๏ธโฃ1๏ธโฃ
๐๐ต๐ฎ๐ฝ๐ฒ-๐ผ๐๐๐๐ถ๐ฑ๐ฒ property
To get to know more technical stuff, connect with me via Twitter
Top comments (8)
This is outdated. Just use flexbox or CSS grid. Don't use table formatting.
I always use
place-items: center
Voila!
Yes you are right. This can be useful to beginners who are in the process of learning the css properties before they get into flex box or css grid
This tip took me HOURS to find i share it so you dont have to.
Old IE absolute positioning table cels does not behave how you expect it includes padding!!!!! or something like that have to double check but keep padding inmind even though its absolute positioned yes weird.
So thatโs what rgba is! Thank you! Thatโs one of those things that I see frequently and keep forgetting to lookup. Great article!
currentColor is one I forget about all the time! Iโm going to look into font-kerning tomorrow though, pretty sure I can fix some very annoying spacing issues Iโve noticed recently with it.
{
display : grid ;
place-items : center ;
}