File tree Expand file tree Collapse file tree 2 files changed +51
-3
lines changed Expand file tree Collapse file tree 2 files changed +51
-3
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ <h6>The Basic Language of the Web: HTML</h6>
1818 -->
1919
2020 < div class ="container ">
21- < header class ="main-header ">
21+ < header class ="main-header clearfix ">
2222 < h1 > 📘 The Code Magazine</ h1 >
2323
2424 < nav >
@@ -28,6 +28,8 @@ <h1>📘 The Code Magazine</h1>
2828 < a href ="# "> Flexbox</ a >
2929 < a href ="# "> CSS Grid</ a >
3030 </ nav >
31+
32+ <!-- <div class="clear"></div> -->
3133 </ header >
3234
3335 < article >
@@ -39,9 +41,10 @@ <h2>The Basic Language of the Web: HTML</h2>
3941 alt ="Headshot of Laura Jones "
4042 height ="50 "
4143 width ="50 "
44+ class ="author-img "
4245 />
4346
44- < p id ="author ">
47+ < p id ="author " class =" author " >
4548 Posted by < strong > Laura Jones</ strong > on Monday, June 21st 2027
4649 </ p >
4750
Original file line number Diff line number Diff line change 1414}
1515
1616.container {
17- width : 800 px ;
17+ width : 1200 px ;
1818 /* margin-left: auto;
1919 margin-right: auto; */
2020 margin : 0 auto;
@@ -265,3 +265,48 @@ footer p {
265265nav p {
266266 font-size: 18px;
267267} */
268+
269+ /* FLOATS */
270+ .author-img {
271+ float : left;
272+ margin-bottom : 20px ;
273+ }
274+
275+ .author {
276+ /* padding-left: 80px; */
277+ float : left;
278+ padding-top : 10px ;
279+ margin-left : 20px ;
280+ }
281+
282+ h1 {
283+ float : left;
284+ }
285+
286+ nav {
287+ float : right;
288+ }
289+
290+ /* .clear {
291+ clear: both;
292+ } */
293+
294+ .clearfix ::after {
295+ clear : both;
296+ content : "" ;
297+ display : block;
298+ }
299+
300+ article {
301+ width : 825px ;
302+ float : left;
303+ }
304+
305+ aside {
306+ width : 300px ;
307+ float : right;
308+ }
309+
310+ footer {
311+ clear : both;
312+ }
You can’t perform that action at this time.
0 commit comments