Skip to content

Commit

Permalink
Got flexbox model working
Browse files Browse the repository at this point in the history
  • Loading branch information
palaster committed Mar 17, 2024
1 parent dd57c6b commit d939f30
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
13 changes: 6 additions & 7 deletions css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
padding: 0px;
}

img {
max-width: 100%;
height: auto;
}

header, nav, section, article, footer {
display: block;
}
Expand All @@ -14,15 +19,13 @@ body {

#outer_div {
border: 1px solid black;
width: 1000px;
margin: 20px auto;
max-width: auto;
text-align: left;
}

#main_header {
border-top: 1px solid black;
border-bottom: 1px solid black;
padding: 20px;
}

#main_nav {
Expand All @@ -39,9 +42,6 @@ body {
#main_section {
display: flex;
flex-direction: column;
float: left;
width: 660px;
margin: 30px;
}

#main_footer {
Expand All @@ -54,7 +54,6 @@ body {
article {
border: 1px solid black;
padding: 20px;
margin-bottom: 15px;
}

article header {
Expand Down
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ <h1>Palaster</h1>
<li>Contact</li>
</ul>
</nav>

<section id="main_section">
<article>
<header>
Expand Down

0 comments on commit d939f30

Please sign in to comment.