Top 10 css interview questions and answers ( Part -2 )

Поделиться
HTML-код
  • Опубликовано: 1 окт 2024
  • Top 10 commonly asked CSS interview questions and possible answers for front-end programmers.
    #css #interview #questions
    *My Udemy Courses
    www.udemy.com/...
    www.udemy.com/...
    Follow me for technology updates
    * / techsith
    * / techsith
    * / techsith1
    * / 13677140
    * / patelhemil
    Help me translate this video.
    * www.youtube.co...
    Note: use translate.goog... to translate this video to your language. Let me know once you do that so i can give you credit. Thank you in advance.

Комментарии • 138

  • @lewisbarron7837
    @lewisbarron7837 6 лет назад +33

    Been working on CSS for years now, but it is often easy to forget certain tricks. Thanks for the video!

  • @sanjay31482
    @sanjay31482 5 лет назад +15

    It was my interview today and the guy asked me about specificity... 😅😅 and I knew the answer and now I am watching this vid😄

  • @yanivsalman9685
    @yanivsalman9685 7 лет назад +100

    some questions: Lol
    What is the difference between classes and IDs in CSS?
    What's the difference between "resetting" and "normalizing" CSS? Which would you choose, and why?
    Describe Floats and how they work.
    Describe z-index and how stacking context is formed.
    Describe BFC(Block Formatting Context) and how it works.
    What are the various clearing techniques and which is appropriate for what context?
    Explain CSS sprites, and how you would implement them on a page or site.
    What are your favourite image replacement techniques and which do you use when?
    How would you approach fixing browser-specific styling issues?
    How do you serve your pages for feature-constrained browsers?
    What techniques/processes do you use?
    What are the different ways to visually hide content (and make it available only for screen readers)?
    Have you ever used a grid system, and if so, what do you prefer?
    Have you used or implemented media queries or mobile specific layouts/CSS?
    Are you familiar with styling SVG?
    How do you optimize your webpages for print?
    What are some of the "gotchas" for writing efficient CSS?
    What are the advantages/disadvantages of using CSS preprocessors?
    Describe what you like and dislike about the CSS preprocessors you have used.
    How would you implement a web design comp that uses non-standard fonts?
    Explain how a browser determines what elements match a CSS selector.
    Describe pseudo-elements and discuss what they are used for.
    Explain your understanding of the box model and how you would tell the browser in CSS to render your layout in different box models.
    What does * { box-sizing: border-box; } do? What are its advantages?
    List as many values for the display property that you can remember.
    What's the difference between inline and inline-block?
    What's the difference between a relative, fixed, absolute and statically positioned element?
    The 'C' in CSS stands for Cascading. How is priority determined in assigning styles (a few examples)? How can you use this system to your advantage?
    What existing CSS frameworks have you used locally, or in production? How would you change/improve them?
    Have you played around with the new CSS Flexbox or Grid specs?
    How is responsive design different from adaptive design?
    Have you ever worked with retina graphics? If so, when and what techniques did you use?
    Is there any reason you'd want to use translate() instead of absolute positioning, or vice-versa? And why?

    • @Techsithtube
      @Techsithtube  7 лет назад +16

      That is a nice list. Will try to cover this in next tutorial. Thanks for watching! :)

    • @yanivsalman9685
      @yanivsalman9685 7 лет назад +2

      thank you! its from html5 boilerplate interview Q im trying to answer them alone.. but if you could pick some of them it whold be nice.. but thanks for this 2 awesome videos

    • @Techsithtube
      @Techsithtube  7 лет назад +9

      Sure, I will make it.. this is a nice list of questions.

    • @jtong4277
      @jtong4277 6 лет назад

      .

    • @jtong4277
      @jtong4277 6 лет назад

      Yaniv
      .
      .

  • @PlayBetterJazz
    @PlayBetterJazz 6 лет назад +8

    Best teacher on youtube hands down!! Loved the JS interview questions as well, was not familiar with a few of these CSS questions. Please keep making videos. I was a teacher in my former career and I have to give credit where credit is due, you are an EXCELLENT teacher.

  • @naumanbashir366
    @naumanbashir366 5 лет назад +11

    Hands down one of the best front end channel on RUclips!

  • @ralexand56
    @ralexand56 5 лет назад +6

    Mind blown!!! Never knew you could do tool tips that way. Thanks!

  • @DipanshuKocher
    @DipanshuKocher 7 лет назад +24

    i am a css developer but i didn't about that content picker through data attribute...thank u for enhancing my knowledge

    • @Techsithtube
      @Techsithtube  7 лет назад +4

      I am glad it helped. Thanks for watching! :)

    • @veryniceandhelpfullvideoth9211
      @veryniceandhelpfullvideoth9211 6 лет назад

      Lol...css is not for developing it is just for designing ....u r not a developer ur designer

    • @ralexand56
      @ralexand56 5 лет назад +6

      @@veryniceandhelpfullvideoth9211 Wow, chill out.

  • @sherinkonline
    @sherinkonline 5 лет назад +5

    difference beteen top and margin-top, i think its a bit tricky

  • @toddbillings3726
    @toddbillings3726 6 лет назад +8

    Thank you for these videos. I'm preparing for a front-end interview and your channel has been an invaluable resource.

    • @Techsithtube
      @Techsithtube  6 лет назад

      I am glad it helped! Good luck with your interviews!

    • @Misstucci
      @Misstucci 5 лет назад

      Todd Billings same

  • @jayantudaipurbangalore
    @jayantudaipurbangalore 7 лет назад +5

    Question asked to me is how you will make element printable : example for a page when use press ctrl + p it shouldn't show menu and other elements. It should print only content we want ..
    Answer is: by using @media print " make all block display:none that we dont want to show .

    • @Techsithtube
      @Techsithtube  7 лет назад +1

      Wow. that is a tough one . May I know what company?

    • @dipeshranavlogs
      @dipeshranavlogs 6 лет назад +3

      right answer is @media print { /* css here */} , not the one u mentioned ;)

    • @jayantudaipurbangalore
      @jayantudaipurbangalore 6 лет назад

      Geeky Dipesh :GD yes correct

  • @WandererWritam
    @WandererWritam 5 лет назад +2

    Sir,I want to know about semantic html markups and web crawlers🙂

  • @VishnuPrasadmsvp
    @VishnuPrasadmsvp 7 лет назад +6

    I think we are missing questions related to media query, viewport, em vs rem differences

    • @Techsithtube
      @Techsithtube  7 лет назад +2

      all three good questions. I will try to cover them in the next video.

    • @AmedeeBoulette
      @AmedeeBoulette 7 лет назад

      How about you read a book?

    • @Techsithtube
      @Techsithtube  7 лет назад +4

      Reading a book doesn't really work with css. You have to to practice a lot.

  • @chineseguy1000
    @chineseguy1000 4 года назад +2

    hey man just wanted to tell you that you're doing really great work! you definitely should have 10x more subscribers :)

  • @manjaykumar-jb7yp
    @manjaykumar-jb7yp 6 лет назад +4

    Tutorial was really interesting and the explanation was awesome which help to understand the tricky things easily.Please share the interview question related to AngularJS.

    • @Techsithtube
      @Techsithtube  6 лет назад

      sure . I am going to expand interview questions as I am planning to make some more related to frameworks.

  • @guptaramdulare
    @guptaramdulare 5 лет назад +1

    Some other questions like 12 grid bootstrap how to convert 16 grid and other if a psd layout is 1920 px then how to make it in 920px device
    One thing a good explanation of attrbute is that if u want to add a dynamic content not with Dom but using CSS method is best way to do that

  • @TheEricapiano
    @TheEricapiano 5 лет назад +3

    that triangle trick... wowowow

  • @tarcus6074
    @tarcus6074 6 лет назад +1

    That shadow crap isn't supporting by most browsers, and it's about js mostly than css.

  • @nanasarathi
    @nanasarathi 6 лет назад +2

    Brother... You are too good... Thanks for sharing this video

  • @deejaydev
    @deejaydev 5 лет назад +2

    Can't believe i' just hearing about shadow dom

    • @Techsithtube
      @Techsithtube  5 лет назад

      It is a pretty cool feature. Currently used mostly for the web components

  • @rashmikumari5708
    @rashmikumari5708 4 года назад +1

    Great explanation!!Thanks.This tutorial was really helpful.i was asked this question in my one of my interview. How we can display a smiley before and after a paragraph all inline using css? something like this "😊 paragraph 😊". please explain

    • @Techsithtube
      @Techsithtube  4 года назад +5

      Good Question! Here is the solution
      Some paragraph
      .paragraph::before {
      content: "smily ";
      }
      .paragraph::after {
      content: " smily";
      }

  • @ankitsharan15
    @ankitsharan15 4 года назад +2

    that triangle trick is insane .. great video!

  • @arpee1337
    @arpee1337 5 лет назад +1

    Just to remember, ::after is actually a pseudo-element, not a pseudo-class, though :after (with only one ":") is also supported by most browsers.

    • @GauravGoyal1911
      @GauravGoyal1911 5 лет назад

      yes easiest way to understand is pseudo element basically adds new element which pseudo classes are used to give effect on some state or element based on position like state(hover,visited, active, link) and position like(first-child,last-child). Hope it helps.

  • @22pradeeppathak
    @22pradeeppathak 6 лет назад +2

    Your tutorials are great without any doubt. Would appreciate if you can provide some tutorial on less/saas css preprocessor. Thanks in advance 👍

    • @Techsithtube
      @Techsithtube  6 лет назад +1

      Sure I will make them . Thanks for watching !: )

  • @RoshanKrSoni
    @RoshanKrSoni 6 лет назад +4

    You are amazing

  • @ganeshshetty8441
    @ganeshshetty8441 2 года назад

    have you all heard of styled component?It follows this Shadow css

  • @maniachyuta7203
    @maniachyuta7203 2 года назад

    hello sir can you make a videos on algorithms.so that it is help ful for us for cracking the interviews.

  • @MrDrak3f
    @MrDrak3f 6 лет назад +1

    nice mustache

  • @sobeidalagrange7129
    @sobeidalagrange7129 5 лет назад +1

    Very helpful review!!! Loved the music at the end too- :)
    At the very beginning, I once failed a z-index question at an interview. :(

    • @Techsithtube
      @Techsithtube  5 лет назад

      I had also failed z-index question in an interview :) Thanks for watching Sobeida.

  • @joyandlove7710
    @joyandlove7710 6 лет назад +2

    Great, I learned something new here.

  • @arunbalaji6139
    @arunbalaji6139 7 лет назад +2

    Bro make series of bootstrap

  • @prasenpatil4201
    @prasenpatil4201 3 года назад

    You are the REAL SITH.... behind all the code ---> TECHSITH

  • @IreneSmith
    @IreneSmith 6 лет назад +3

    Typo alert! That should be "pseudo elements" not "psudo elements" at around 5:40 in the video.

  • @soumyaranjanpanda7532
    @soumyaranjanpanda7532 2 года назад

    I loved that triangle trick :-)

  • @leafdragon94
    @leafdragon94 6 лет назад +1

    Another great video. These videos help me really focus on what I need to prioritize.

    • @Techsithtube
      @Techsithtube  6 лет назад

      I am glad it helped. Also Try learning either CSS grid or Flex Box .

  • @முதல்விதை
    @முதல்விதை 2 года назад

    thanks, sir. very useful

  • @sanazseifi5105
    @sanazseifi5105 2 года назад

    Great Points! Thanks alot!

  • @mdshoaibAlamgcetts
    @mdshoaibAlamgcetts 7 лет назад +1

    I had been asked about difference between inline-block and float property .
    Usage of z-index

    • @Techsithtube
      @Techsithtube  7 лет назад +1

      difference between inline-block and float property is an important one to know . Thanks for watching!

  • @thilagamahalingam1855
    @thilagamahalingam1855 4 года назад

    It s just really useful. And expecting video about responsive design questions

  • @subhrajitmandal2305
    @subhrajitmandal2305 5 лет назад +1

    Awesome video

  • @hariharan3066
    @hariharan3066 4 года назад

    Can you share me the link for display block and inline CSS of yours

  • @sahilkatia3096
    @sahilkatia3096 6 лет назад

    How would you handle css if website have so many pages may be 100 of pages. Which approach will you follow to design your page.
    I told them I will use POST CSS

    • @Techsithtube
      @Techsithtube  6 лет назад

      I am assuming that most of the pages would have the similar styles. create a common css for all the pages. and then have an additional separate css for pages that require customization.

  • @ruchirai5775
    @ruchirai5775 6 лет назад +1

    Very helpful...

  • @taospencer1403
    @taospencer1403 5 лет назад

    Could you use Css content: attr(data-something) & then > add A Javascript or Php function inside the Html Data Attribute. Just made me think of this and would be pretty interesting if it worked.

    • @Techsithtube
      @Techsithtube  5 лет назад

      It should work . data attributes can be used as selectors

  • @cobalius
    @cobalius 6 лет назад

    Almost a week of learning stuff and i know further question to ask, others than the tldr below!
    Do you ever heard of Lorem ipsum? (Just for open up)
    What are Cookies and how can you use them?
    What are Favicons? Harder one's:
    Explain the transition propertys.
    How would you accomplish color gradients with css?
    How can you avoid XSS (Cross site scripting) and other Injections (e.g. within a given chatsystem)?
    What are the key-functionalities of the common parallax-scrolling effect?
    How would you do a loading- or progress-cycle with css only?

    • @Techsithtube
      @Techsithtube  6 лет назад

      Yes they are all good questions. Thanks for sharing .

  • @kapilbhagwat1540
    @kapilbhagwat1540 6 лет назад

    Question:
    Are pseudo-element and pseudo-class same thing? Or is there a difference?

  • @krishnabala7359
    @krishnabala7359 5 лет назад

    Really blown away .... The best VIRTUAL teaching I have ever seen. Above you're teaching, you're so cool boss. You're attitude and style, simply gains our attention

    • @Techsithtube
      @Techsithtube  5 лет назад

      Thank you for the awesome comment. Keep learning Krishna.

  • @brandonkerr160
    @brandonkerr160 6 лет назад

    Man where are you interviewing where you're only getting asked CSS questions? That's like web design, not development.

    • @Techsithtube
      @Techsithtube  6 лет назад +2

      these are some of the interview questions that can be asked on the topic of CSS. That doesn't mean Interviewer only ask CSS questions.

  • @Waffulz805
    @Waffulz805 6 лет назад +2

    What Text Editor is this?

  • @PYwedsTN
    @PYwedsTN 6 лет назад

    I had a question about what is css methodology ?? 😢😢😢

  • @VK-xw9mm
    @VK-xw9mm 5 лет назад

    naaaa 10 question kafi hai interview ke liye
    mai ja ra kal Google interview dene

  • @parthkumarchaudhary
    @parthkumarchaudhary 4 года назад

    Awesome Awesome information. Thanks man.

  • @hetasitapara2452
    @hetasitapara2452 5 лет назад

    I recently gave an interview and asked this question
    what is difference between display:inline and display:inline-block

    • @Techsithtube
      @Techsithtube  5 лет назад +2

      THe diffrence is use inline for texts. and inline-block for blocks. also inline doesn't take height or width if you apply,

  • @cekroz
    @cekroz 3 года назад

    5:36 it's spelled pseudo.

  • @riaganesha
    @riaganesha 5 лет назад +1

    Awesome sir !! Thank you

  • @jayantudaipurbangalore
    @jayantudaipurbangalore 7 лет назад

    How you can able to make many div inline .. it should take full width .. where no of column(div) are unknown may be ther are 3 3 4 5 6 any number of divs in one line. It always take 100% of view prot?

    • @Techsithtube
      @Techsithtube  7 лет назад

      You have to use Flex box. Were you able to do it?

    • @jayantudaipurbangalore
      @jayantudaipurbangalore 7 лет назад

      techsith sure if you won't to share your email.

    • @Techsithtube
      @Techsithtube  7 лет назад

      You can look at my email on my channel page. Or techlover2000@gmail.com

  • @sabareeshk976
    @sabareeshk976 7 лет назад

    Can you suggest any reference for making CSS concepts clear.any hands on coding section will be great.

  • @karthikeyan-hz8sw
    @karthikeyan-hz8sw 3 года назад

    Great Content .. Thank you!

  • @imsheldlocked3386
    @imsheldlocked3386 7 лет назад

    Please create video on Box Model and Box Sizing

  • @pankajpathak135
    @pankajpathak135 5 лет назад

    What is the editor you are using in this Tutorial ?

  • @tigran12
    @tigran12 5 лет назад

    Thank!! This is one of most useful tutorial for me!

  • @space_monkey125
    @space_monkey125 4 года назад

    Thank you Techsith

  • @hardikchavada8974
    @hardikchavada8974 4 года назад

    You're awesome 👍

  • @GauravGoyal1911
    @GauravGoyal1911 5 лет назад

    I was asked : how to distribute two div in ratio of 80% & 20% using flex?

  • @nikhilpadmawar3911
    @nikhilpadmawar3911 6 лет назад

    your videos are awesome

  • @soultouchingsongs
    @soultouchingsongs 6 лет назад

    Very nice.. 👍

  • @tentx652
    @tentx652 3 года назад

    kiraak sirr..

  • @CulbuleBoys
    @CulbuleBoys 7 лет назад

    Can u make a video on how to solve cross browser css issues and make a video on CORS

    • @Techsithtube
      @Techsithtube  7 лет назад

      Sure , I can make it. It will be about weeks or so. Thanks for watching! :)

  • @vinitagaikwad3683
    @vinitagaikwad3683 6 лет назад

    hello techsith. I love your tutorials, they are very helpful. I have few more questions where can i post them? where can i find your email id?

  • @yaolegoleynik
    @yaolegoleynik 5 лет назад

    Thank you!

  • @rehanhaider9172
    @rehanhaider9172 6 лет назад

    Thanks a lot :)

  • @yogeshj3975
    @yogeshj3975 6 лет назад

    sir app konsa editor use karate ho

  • @imsheldlocked3386
    @imsheldlocked3386 7 лет назад

    How to create tooltip which is having a border?

    • @Techsithtube
      @Techsithtube  7 лет назад +1

      You can use psudo elements to do it.
      .tooltip::before,
      .tooltip::after {
      content: "";
      position: absolute;
      border-left: 10px solid transparent;
      border-right: 10px solid transparent;
      top: 100%;
      left: 50%;
      margin-left: -10px;
      }

    • @imsheldlocked3386
      @imsheldlocked3386 7 лет назад

      Thanks..its working now

  • @SK-ur3hw
    @SK-ur3hw 7 лет назад

    What if we remove all the border css except the one which we want to show? U used transparent property but can we remove 3 borders to show one triangle?

    • @Techsithtube
      @Techsithtube  7 лет назад

      That would not work. because height and width are 0;

    • @SK-ur3hw
      @SK-ur3hw 7 лет назад

      techsith so only one border can be removed?

    • @Techsithtube
      @Techsithtube  7 лет назад

      you can remove two actually.
      div{
      width:0;
      height:0;
      border-left:100px solid red;
      border-top:100px solid transparent;
      }

    • @SK-ur3hw
      @SK-ur3hw 7 лет назад

      techsith that’s what I thought. Two borders are required to hold on to each other (basically exist) as there is no height and width. Thanks a lot 😊

    • @Techsithtube
      @Techsithtube  7 лет назад

      That is a good analogy :)

  • @siddhesh9901
    @siddhesh9901 6 лет назад

    what is attr? is it function of css or css?

    • @Techsithtube
      @Techsithtube  6 лет назад +1

      attr is not function of css. its an name of the attribute.

    • @siddhesh9901
      @siddhesh9901 5 лет назад

      techsith If attr is attribute name in css, how come it takes arguments?
      like
      content: attr(data-name)

  • @sandeep-l1c1e
    @sandeep-l1c1e 6 лет назад +1

    Your video is really helpful to me. Please make more new videos.

  • @ManOnHorizon
    @ManOnHorizon 4 года назад

    Is it just me or does this video contain only 4 questions?)

  • @revanthkumar1183
    @revanthkumar1183 5 лет назад

    Good tutorial but please dont try to fake the accent.

  • @MylesGmail
    @MylesGmail 5 лет назад +1

    Thx I tweeted this!