Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated styles.css with some styles to header portion #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
8 changes: 6 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,14 @@

<!-- Create another <link> tag to import the styles.css file -->
<!-- That file is where you will put your styles -->

<!--This is the css from the styles.css file when the above two link stylesheets are commented-->
<link rel="stylesheet" href="./styles.css">

</head>
<body>
<header>
<h1>CSS Selectors</h1>
<h1 id="top">CSS Selectors</h1>
<h2>Playground</h2>
<p>
Follow the instructions on this page to practice using CSS selectors to
Expand All @@ -29,7 +33,7 @@ <h2>Playground</h2>

<article id="selectors" class="exercises">
<header>
<h1>Base CSS Selectors</h1>
<h1 id="middle">Base CSS Selectors</h1>
<p>
First we'll start off by using the base selectors to add styles to
elements on the page. These base selectors have different levels of
Expand Down
35 changes: 34 additions & 1 deletion styles.css
Original file line number Diff line number Diff line change
@@ -1,2 +1,35 @@
/* Move your styles here when you're ready to clean up your HTML file */
/* Don't forget to link to this file in your HTML, otherwise your styles won't show up! */
/* Don't forget to link to this file in your HTML, otherwise your styles won't show up! */
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}

header{
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background-color: gray;
}

#top{
font-family: Georgia, 'Times New Roman', Times, serif;
font-weight: 900;
color: darkslateblue;
}

header h2{
font-weight: 100;
color: deepskyblue;
}

header p{
font-style: italic;
}

#middle{
font-weight: 300;
color: deepskyblue;
}