Skip to content

Commit

Permalink
start lecture 48
Browse files Browse the repository at this point in the history
  • Loading branch information
张欧文 authored and 张欧文 committed Nov 6, 2022
1 parent b73473a commit 710f114
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
5 changes: 4 additions & 1 deletion starter/04-CSS-Layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ <h6>The Basic Language of the Web: HTML</h6>
-->

<div class="container">
<header class="main-header">
<header class="main-header clearfix">
<h1>📘 The Code Magazine</h1>

<nav>
Expand All @@ -28,6 +28,8 @@ <h1>📘 The Code Magazine</h1>
<a href="#">Flexbox</a>
<a href="#">CSS Grid</a>
</nav>

<!-- <div class="clear"></div> -->
</header>

<article>
Expand All @@ -39,6 +41,7 @@ <h2>The Basic Language of the Web: HTML</h2>
alt="Headshot of Laura Jones"
height="50"
width="50"
class="author-img"
/>

<p id="author">
Expand Down
27 changes: 26 additions & 1 deletion starter/04-CSS-Layouts/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ body {
padding-right: 40px; */
padding: 20px 40px;
margin-bottom: 60px;
/* height: 80px; */
height: auto;
}

nav {
Expand Down Expand Up @@ -265,3 +265,28 @@ footer p {
nav p {
font-size: 18px;
} */

/* float */
.author-img {
float: left;
}

#author {
float: left;
margin-top: 10px;
margin-left: 20px;
}

h1 {
float: left;
}

nav {
float: right;
}

.clearfix::after {
content: "";
clear: both;
display: block;
}

0 comments on commit 710f114

Please sign in to comment.