Search
 
SCRIPT & CODE EXAMPLE
 

CSS

andy css reset


// https://piccalil.li/blog/a-modern-css-reset

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

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* 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;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  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 {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* 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 :: youtube-dl forbidden 
Css :: .dropdown { float: left; overflow: hidden; } 
Css :: check browser support for css value 
Css :: how to resolve issue in wordpress css isn;t load 
Css :: change d in path svg css 
Css :: css ditribute width equealy to child components 
Css :: inline list css without floats 
Css :: responsive text size 
Css :: one image on top of other image android kotlin 
Css :: how to view only downloading speed in du meter 
Css :: unable to select text in website css cursor type 
Css :: CSS Image accordion 
Css :: RichText.Content add className 
Css :: add on click event on button on payment screen odoo pos 
Css :: overwrite safari dropdown css 
Css :: how to dobody website and demo code html scss 
Css :: center content in div 
Css :: css Specify that the background image should be shown once, in the top right corner 
Css :: how to make textbox shorter in html 
Css :: zoom image on click css 
Css :: css sign in with google 
Css :: sass dummy folder site download 
Css :: css fr meaning 
Css :: how to use a background property in css 
Css :: putting an object in front of a page javascript 
Typescript :: how to update typescript 
Typescript :: matplotlib subplots size 
Typescript :: yarn typescript 
Typescript :: how to make an element be above all the other elements html 
Typescript :: check typescript version 
ADD CONTENT
Topic
Content
Source link
Name
3+4 =