Skip to content

Instantly share code, notes, and snippets.

@DanielHemmati
Created March 1, 2022 22:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DanielHemmati/23aa55f403e13fccbab4ef487c9c576d to your computer and use it in GitHub Desktop.
Save DanielHemmati/23aa55f403e13fccbab4ef487c9c576d to your computer and use it in GitHub Desktop.
bro
/* -------------- */
/* Global styling */
/* -------------- */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: "Times New Roman", Times, serif;
}
main {
margin: 10px;
}
p {
line-height: 1.2;
}
/* -------------- */
/* Header styling */
/* -------------- */
header nav {
background-color: #f8dcb4;
height: 60px;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid red;
}
header img {
width: 40px;
margin-left: 10px;
}
ul {
/* used to remove the unordered list bullet points. */
list-style-type: none;
display: flex;
}
li a {
border: 1px solid red;
padding: 10px;
background-color: #4884b4;
text-decoration: none;
font-weight: bold;
color: white;
}
input {
margin-right: 10px;
}
/* --------------- */
/* Section Styling */
/* --------------- */
.section1 {
display: flex;
margin: 30px 0 15px 0;
padding: 5px;
gap: 20px;
}
.section2 {
display: flex;
gap: 20px;
margin: 15px 0 15px 0;
padding: 5px;
justify-content: center;
}
.article-with-logo {
border: 1px solid black;
background-color: #f8f4f4;
text-align: center;
height: auto;
width: 200px;
padding: 10px;
}
.article-with-logo img {
height: 80px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment