Professional Documents
Culture Documents
HTML and SCSS PDF
HTML and SCSS PDF
CSS/SCSS:
• CSS
1) Position:
a. Static (Default): Does not affect with top, bottom, right, left values.
b. Relative: Will take changes from its static position.
c. Fixed: We set this with help of top, bottom, right, left properties and scroll will
not affect its position.
d. Absolute: This will get adjust with reference to its parent position, except static
in this case its get adjusted with reference to body
e. Sticky: It will get adjust with reference to its parent and does not get affected by
scroll.
2) Media Query:
a. @media not screen (media type) and (max-width).
b. @media only screen (media type) and (max-width).
5) Combinator:
a. Descendant Selector (space): div p{} selects all <p> inside <div>
b. Child Selector (>): div > p {} selects all <p> which are directly inside <div>.
c. Adjacent Sibling Selector (+): div + p {} selects first <p> inside <div>
d. General Sibling Selector (~): div ~ p {} selects all <p> inside <div>
12) Grid vs Flex: Gird is 2 dimensional (row and column) and Flex is one dimensional
(row/column).
• SCSS
1) Variables: $color: #fff
2) Partials: _file-name, partials do not get converted in CSS file.
3) Mixin: @mixin methodName () {}
4) Function: @function funcName () { return }
5) Import: @import ‘path of the file’.
6) If Else
7) Error
8) Warn
9) Debug
10) Extend
11) Interpolation: #{$variableName}
12) Loops
a. For: @for $i from 1 through 3
b. Each: @each $size in $sizes
c. While: @while $value > $base
13) Values
a. Number
b. String
c. Map
d. List
e. Boolean