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

My css #45

Open
wants to merge 8 commits 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
1 change: 1 addition & 0 deletions css-exercise-one
Submodule css-exercise-one added at 1b206c
Empty file added css/reset.css
Empty file.
24 changes: 17 additions & 7 deletions css/style.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
body
body {
font-size: 14px;
}

nav {
background color: yellow;
background-color: yellow;
height: 100px;
margin-top: -10px;
position: fixed;
width: 100%;
}


section {
Expand All @@ -16,21 +17,30 @@ section {
}

h1 {
font-family sans-serif;
font-family: sans-serif;
font-size: 2em;
}

.example, h3 {
.example, h3, .element, elementtwo {
padding-top: 30px;
text-align center
text-align: center;
}

h3 {
font-size: 1.3em;
}

.element {
background-color: green;
height: 100px;
margin 10px 0;
margin: 10px 0;
width: 100%;
background-color: #ec762a;
}

/**** last three lines ****/
.elementtwo {
height: 100px;
margin: 10px 0;
width: 100%;
background-color: #2f4aff;
}
9 changes: 5 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" type="text/css" href="css/reset.css">
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
<nav>
Expand All @@ -28,13 +29,13 @@ <h3>This is text for a div element</h3>
<div class="element">
<h3>This is text for a div element</h3>
</div>
<div class="element">
<div class="elementtwo">
<h3>This is text for a div element</h3>
</div>
<div class="element">
<div class="elementtwo">
<h3>This is text for a div element</h3>
</div>
<div class="element">
<div class="elementtwo">
<h3>This is text for a div element</h3>
</div>
</section>
Expand Down