Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"liveServer.settings.port": 5503
}
68 changes: 68 additions & 0 deletions css_fun.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
.different_color p {
color: orange;
font-size: 28px;

}
header {
text-align: center;
}

.different_color > p:nth-of-type(4) {
color: green;
font-size: 28px;
}
.different_color > p:nth-of-type(5) {
color: red;
font-size: 28px;
}

.TheHeads {
color: pink;
font-size: 3s0px;
}

.smaller {
position: relative;
top: 12px;
color: blue;
font-size: 12px;
margin-left: 10px;
border-bottom: solid 2px ;
}

.smalls {
font-size: 15px;
position: relative;
top: 12px;
color: purple;
border-bottom: solid 2px;
margin-left: 10px;
}

.smallas {
color: purple;
position: relative;
top: 12px;
font-size: 10px;
margin-left: 10px;
border-bottom: solid 1px black;
}


.yellow {
color: orange;
font-size: 28px;
}

.no-bullet {
list-style-type: none;
}

.border-text {
color: gray;
font-size: 10px;
}

.black-p {
font-size: 28px;
}
47 changes: 47 additions & 0 deletions css_fun.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<!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="./css_fun.css">
</head>
<body>
<header> <h1> CSS Selector Fun </h1> </header>
<main>
<div class="black">
</div>
<div class="different_color">
<p> Make this text orange and 28px </p>
<p> Make this text orange and 28px </p>
<p> Make this text orange and 28px </p>
<p> Make this text green and 28px </p>
<p> Make this text red and 28px </p>
</div>
<div class="TheHeads">
<h1> Make this heading pink </h1>
<h2> Make this heading pink </h2>
<h3> Make this heading pink </h3>
<h4> Make this heading pink </h4>
</div>
<p class="black-p"> This text should stay black and 28px </p>

<p class="smaller"> Make this text blue and 12px. Make this paragraph have 10px left margin and a black 2px bottom border. </p>
<!-- <hr> -->

<p class="black-p"> This text should stay black and 28px </p>

<p class="smalls"> Make this text purple and 15px. Make this paragraph have 10px left margin and a black 1px bottom border. <span class="border-text"> Make the border text 12px and grey </span>
</p>
<!-- <hr> -->

<p class="smallas"> THIS TEXT SHOULD BE PURPLE, 10PX, ALL CAPITALS AND BOLD. MAKE THIS PARAGRAPH HAVE 10PX LEFT MARGIN AND
BLACK 1PX BOTTOM BORDER </p>
<hr>

<p class="yellow"> Make this text orange and 28px. </p>


</main>
</body>
</html>
59 changes: 0 additions & 59 deletions index.html

This file was deleted.