Skip to content

Instantly share code, notes, and snippets.

@gopal1996
Last active September 28, 2020 18:28
Show Gist options
  • Save gopal1996/6d0c2eaf596996b977adb93558e84a42 to your computer and use it in GitHub Desktop.
Save gopal1996/6d0c2eaf596996b977adb93558e84a42 to your computer and use it in GitHub Desktop.

Devkode CSS Session

Challenge 1

Create a below design without modifing HTML elements

<div class="wrapper">
  <div class="box a">A</div>
  <div class="box b">B</div>
  <div class="box c">C</div>
  <div class="box d">D</div>
</div>

Expected Output

Challenge 1

Challenge 2

Create a skeleton loading screen

Expected Output

Challenge 2

Challenge 3

Create a gallery as below using CSS Grid

Optional

  • Add skeleton loading screen in the CSS grid before Images load
  • Native image lazy loading

Expected Output

Challenge 3

Challenge 4

Create a custom progress bar and Add a Two button which should Start and Stop the progress bar

Expected Output

Challenge 4

Challenge 5

Create a custom progress bar which should indicate the completion progress of a task when user clicking on the button

Expected Output

Challenge 5

Challenge 6

Make an equal spacing between child elements without modifing the html code and without using flex and grid challenge_6 problem

<div class="wrapper">
  <div class="box">A</div>
  <div class="box">B</div>
  <div class="box">C</div>
  <div class="box">D</div>
</div>
.wrapper {
  width: 300px;
  border: 1px solid #000;
}

.box {
  display: inline-block;
}

Expected Output

challenge_6_solution

Important Questions

  • Debounce and Throttling
  • What is Reflow and Repaint
  • What is RenderTree
  • How do you Resetting and Normalization in CSS
  • box model
  • box sizing
  • Shadow DOM
  • How to view html Native element code in Developer tool?
  • Specificity in css
  • Pseudo-classes/ pseudo elements
  • Nth child
  • Clearfix css
  • Transform and Transition
  • Animation
  • Minified CSS
  • Flex, Grid, Inline block, Positions
  • Native image lazy loading attribute
  • CSS Coverage and Lighthouse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment