Skip to content

Instantly share code, notes, and snippets.

View JosueMagnus12's full-sized avatar
💻
Working on cool stuff

Josue Granados JosueMagnus12

💻
Working on cool stuff
View GitHub Profile
@JosueMagnus12
JosueMagnus12 / index.html
Created October 29, 2021 15:03
Markup and Styles for a list and a table. Medium Article
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="style.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
:root {
font-size: 62.5%;
}
h1 {
font-size: clamp(2rem, 3vw, 3.2rem);
}
p {
font-size: clamp(1.2rem, 2vw, 2.1rem);
h1 {
font-size: 3vw;
}
p {
font-size: 2vw;
}
:root {
font-size: 62.5%;
}
h1 {
font-size: 2.6rem;
}
p {
font-size: 1.6rem;
:root {
font-size: 62.5%;
}
h1 {
font-size: 2.6rem;
}
p {
font-size: 1.6rem;
@JosueMagnus12
JosueMagnus12 / index.html
Last active August 16, 2021 15:39
Conflicts across styling methods
<!DOCTYPE html>
<html lang="en-us">
<head>
<link rel="stylesheet" href="./styles/styles.css">
<style>
.paragraph{
color: green;
font-size: 50px;
background-color: aqua;
}
<!DOCTYPE html>
<html lang="en-us">
<head>
<style>
p{
color: blue;
border: 1px solid red;
}
.paragraph{
<!DOCTYPE html>
<html lang="en-us">
<head>
<link rel="stylesheet" href="./styles/styles.css">
</head>
<body>
<p id="p1">A cool paragraph</p>
</body>
</html>
@JosueMagnus12
JosueMagnus12 / index.html
Created July 31, 2021 01:45
Specificity
<!DOCTYPE html>
<html lang="en-us">
<head>
<style>
p{
color: red;
}
.paragraph{
color: yellow;
@JosueMagnus12
JosueMagnus12 / index.html
Created July 31, 2021 01:31
Methods priority
<!DOCTYPE html>
<html lang="en-us">
<head>
<style>
p{
color: blue;
}
</style>
</head>
<body>