Search
 
SCRIPT & CODE EXAMPLE
 

CSS

andy bells css reset


/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font: inherit;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

html,
body{
  height: 100%;
}

/* Set core body defaults */
body {
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture,
svg{
  max-width: 100%;
  display: block;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
Comment

PREVIOUS NEXT
Code Example
Css :: Loop Over Array of Objects and Combine them if they have similar keys 
Css :: devextreme css 
Css :: css text effects 
Css :: insert checkbox into combobox css 
Css :: sass immediate child 
Css :: radius to imported icons 
Css :: make element auto scale to page 
Css :: enable xdebug ddev 
Css :: css assign multiple classes to one element 
Css :: var in css 
Css :: datepicker disable future date odoo 
Css :: materialize css icons 
Css :: button with background image and text html css 
Css :: overlap section 
Css :: react datepicker css not working 
Css :: remove unused css styles 
Css :: css custom underline color 
Css :: material css sidebar 
Css :: how to customize placeholder css 
Css :: hex values 
Css :: target element pseudo-classes 
Css :: align an entire second row center css grid 
Css :: freecodecamp hide content using css 
Css :: css arrange footer links 
Css :: react bootstrap css module use media query mixin 
Css :: how to use formailze me ? 
Css :: ms-grid- error css 
Css :: good news 
Css :: button background position left to right hover css 
Css :: grape change status code 
ADD CONTENT
Topic
Content
Source link
Name
6+4 =