ThuyKat / front-end-bootcamp

homework submission for FE bootcamp
https://thuykat.github.io/front-end-bootcamp/
0 stars 0 forks source link

front-end-bootcamp-practices

Some notes about CSS properties

  1. Box-sizing: content-box(default)

--> change to 'border-box' so that width and height of an element include border + padding+content

  1. ul : has padding left by default

--> inspect we gonna see ::market pseudo element

  1. hover effect: disappear -> appear option 1: set max-width/height:0; overflow:hidden -> max-width/height:100vh option 2: opacity:1 -> opacity:0 option 3: display:none -> other type of display option 4: transform:scale(0);visibility:hidden -> transform:scale(1);visibility:visible
  2. y-axis: top to bottom; x-axis: left to right
  3. banner text styling
  4. Measurements
    • px: used majorly for gap, spacing
  5. iframe + a tag+ text-container for hover effect
  6. position relative + position absolute -> need to give outer container width and height so that the absolute positioned element stays inside the container.
  7. top+left+transform:translate -> centralised an element inside a container

    Responsive CSS

  8. @ Media tag: similar to adding another internal CSS which is only in use in some specific conditions. Since Media tag is declared at the bottom of html file, it has higher priority
  9. Two type of responsive styling: mobile-first( use min-width as a condition) or desktop-first( use max-width as a condition)

Some notes on Flex box and Grid

  1. Flex box
  1. Grid