Created
July 2, 2024 16:54
-
-
Save CodeAkinori/8b5e8493376d0d72c001c88db711d4ca to your computer and use it in GitHub Desktop.
CSS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| * { | |
| box-sizing: border-box; | |
| margin: 0; | |
| padding: 0; | |
| } | |
| body > header { | |
| background-color: #2f3640; | |
| padding: 16px 0; | |
| color: #f5f6fa; | |
| } | |
| header .container { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| } | |
| header li { | |
| display: inline; | |
| font-family: Arial, Helvetica, sans-serif; | |
| font-weight: bold; | |
| margin-left: 16px; | |
| } | |
| header li a { | |
| color: #f5f6fa; | |
| text-decoration: none; | |
| } | |
| .container { | |
| max-width: 1366px; | |
| margin: 0 auto; | |
| padding: 0 16px; | |
| } | |
| .articles { | |
| display: flex; | |
| flex-wrap: wrap; | |
| justify-content: space-between; | |
| } | |
| .articles article img { | |
| width: 100%; | |
| } | |
| .articles article { | |
| width: 30%; | |
| margin-bottom: 16px; | |
| } | |
| section { | |
| padding: 16px 0; | |
| } | |
| .articles article h3 { | |
| margin-top: 8px; | |
| margin-bottom: 8px; | |
| font-size: 24px; | |
| } | |
| .articles article a { | |
| background-color: blue; | |
| color: #fff; | |
| padding: 8px; | |
| display: inline-block; | |
| text-decoration: none; | |
| font-weight: bold; | |
| margin-top: 8px; | |
| } | |
| .articles article a:hover { | |
| text-decoration: underline; | |
| } | |
| .articles article p, | |
| .articles article a { | |
| font-family: Arial, Helvetica, sans-serif; | |
| } | |
| section h2 { | |
| font-size: 32px; | |
| padding: 0; | |
| text-align: center; | |
| margin: 0 auto 16px; | |
| } | |
| #sports { | |
| background-color: rgba(0, 255, 0, 0.1); | |
| color: #000; | |
| } | |
| #sports .articles article a { | |
| background-color: #009432; | |
| } | |
| #economy { | |
| background-color: #f8f59f; | |
| color: #000; | |
| } | |
| #economy .articles article a { | |
| background-color: #ff9f1a; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment