-
Notifications
You must be signed in to change notification settings - Fork 38
Css ex #22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Css ex #22
Conversation
ShirYahav
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work, the code is clean! Follow the notes I gave you, and completing the JavaScript exercise will be a great preparation for the next lesson
| @@ -0,0 +1,126 @@ | |||
| body { | |||
| background-color: hsl(235, 18%, 26%); | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use css variables
|
|
||
| @font-face { | ||
| font-family: "Roberto"; | ||
| src: url("./fonts/MyFont-Regular.ttf") format("truetype"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider importing fonts in HTML ( in ) rather than only via CSS for better performance and compatibility
| height: 65%; | ||
| width: 55%; | ||
| background-color: white; | ||
| border-radius: 30px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dont use px, use responsive units like rem or em (read about the differences)
| display: none; | ||
| } | ||
|
|
||
| @media (max-width: 700px) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice use of @media
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
love that you seperated the css files! good work
|
|
||
| @font-face { | ||
| font-family: "Roberto"; | ||
| src: url("./fonts/MyFont-Regular.ttf") format("truetype"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider importing fonts in HTML ( in ) rather than only via CSS for better performance and compatibility
|
|
||
| .container { | ||
| display: flex; | ||
| width: 300px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same note for this file as well: dont use px
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
love the seperated files!! good practice!
No description provided.