Skip to content

Instantly share code, notes, and snippets.

@Kyo1465
Last active April 10, 2026 12:59
Show Gist options
  • Select an option

  • Save Kyo1465/d35df1108774a942c012dc43869ed944 to your computer and use it in GitHub Desktop.

Select an option

Save Kyo1465/d35df1108774a942c012dc43869ed944 to your computer and use it in GitHub Desktop.
Basic CSS code
*,*::before, *::after {
margin: 0;
padding: 0;
border: none;
box-sizing: border-box;
}
a, a:visited, a:hover {
text-decoration: none;
color: inherit;
}
a:focus, a:active {
outline: none;
}
h1, h2, h3, h4, h5, h6, p {
font-size: inherit;
font-weight: inherit;
line-height: inherit;
}
p + p {
margin-top: 1em;
}
ul {
list-style: none;
}
img, svg, video {
display: inline-block;
vertical-align: top;
max-width: 100%;
height: auto;
object-fit: cover;
}
input, button, textarea, select {
font-family: inherit;
font-size: inherit;
}
input::-ms-clear {
display: none;
}
button, input[type="submit"] {
display: inline-block;
box-shadow: none;
background-color: transparent;
cursor: pointer;
}
button::-moz-focus-inner {
border: 0;
padding: none;
}
label {
display: inline-block;
}
legend {
display: block;
}
@Kyo1465

Kyo1465 commented Mar 27, 2026

Copy link
Copy Markdown
Author

Basic CSS code for comfotrable work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment