Nans' random thoughts

CSS Interview questions

August 15, 2020

  • What will these lines do ?

    .header {
    color: 'red';
    }
    
    #header {
    color: 'yellow';
    }
    
    .header > h1 {
    color: 'blue';
    }
    
    input.header {
    color: 'brick';
    }
    
    div.header {
    color: 'brown';
    }
  • <div class="header"> Hello, world! </div>
  • Name 2 CSS styling frameworks

⭐⭐

  • How would you build a responsive interface ?
  • What is the difference margin vs padding ?
  • What are CSS preprocessors ?

Written by Nans Dumortier who is a French Software Developer.
Find me on :