CSS Useful(misc.)

Hover Button

my_button

button {
  background: none;
  border: 1px solid rgb(137, 139, 139);
  margin: 3px;
  margin-bottom: 10px;
  padding: 5px;
  cursor: pointer;
  transition: box-shadow 0.2s ease-in-out;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}
button:hover {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
}



box-sizing: border-box;

For the sake of predictability, it is common practice to override the default box-sizing behavior to 'border-box'.

Short, Concise YouTube Video on the Subject

Here are two ways to do that

Method One

*, *::before, *::after {
  box-sizing: border-box;
}

Method Two

html {
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}
arrow_back

Previous

Recruiter FYI

Next

JavaScript Tricks
arrow_forward