summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.html31
-rw-r--r--links.html27
-rw-r--r--style.css21
3 files changed, 41 insertions, 38 deletions
diff --git a/index.html b/index.html
index 2ede705..ea126ac 100644
--- a/index.html
+++ b/index.html
@@ -7,24 +7,25 @@
<meta charset="utf-8">
</head>
<body>
- <div id="flex">
- <main>
- <header>
- <h1>Hello, this is my website.</h1>
- Thanks for stopping by!
- </header>
- <h2>Well...</h2>
- <p>nya~</p>
- <img src="images/maxwell.gif"/>
- <footer>
- <p>This is a footer.<p>
- </footer>
- </main>
- <nav>
+ <div class="flex-container">
+ <div>
+ <main>
+ <header>
+ <h1>Hello, this is my website.</h1>
+ Thanks for stopping by!
+ </header>
+ <h2>Well...</h2>
+ <p>nya~</p>
+ <img src="images/maxwell.gif"/>
+ <footer>
+ </footer>
+ </main>
+ </div>
+ <div>
<ul>
<li><h3><a href="links.html">links</a></h3></li>
</ul>
- </nav>
+ </div>
</div>
</body>
</html>
diff --git a/links.html b/links.html
index b83ba1c..c733114 100644
--- a/links.html
+++ b/links.html
@@ -7,21 +7,24 @@
<meta charset="utf-8">
</head>
<body>
- <div id="flex">
- <main>
- <header>
- <h1>Some useful links</h1>
- </header>
- <h2><a href="https://git.pwyazha.ru">git</a></h2>
- <footer>
- <p>This is a footer.</p>
- </footer>
- </main>
- <nav>
+ <div class="flex-container">
+ <div>
+ <main>
+ <header>
+ <h1>Some useful links</h1>
+ </header>
+
+ <h2><a href="https://git.pwyazha.ru">git</a></h2>
+
+ <footer>
+ </footer>
+ </main>
+ </div>
+ <div>
<ul>
<li><h3><a href="index.html">Home</a></h3></li>
</ul>
- </nav>
+ </div>
</div>
</body>
</html>
diff --git a/style.css b/style.css
index 3f70ca5..43e199e 100644
--- a/style.css
+++ b/style.css
@@ -3,7 +3,7 @@ body {
max-width: 650px;
line-height: 1.6;
font-size: 18px;
- padding: 0 10px;
+ padding: 0;
color: #404040;
}
@@ -11,14 +11,6 @@ h1, h2, h3 {
line-height: 1.2;
}
-#flex {
- display: flex;
-}
-
-main {
- order: 1;
-}
-
img {
width: 100%;
}
@@ -28,6 +20,13 @@ footer {
padding: 30px 0;
}
-nav {
- order: 2;
+ul {
+ list-style-type: none;
+ margin: 0;
+ padding: 0;
+}
+
+.flex-container {
+ display: flex;
+ justify-content: space-evenly;
}