-
Notifications
You must be signed in to change notification settings - Fork 508
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
Added content #667
base: master
Are you sure you want to change the base?
Added content #667
Conversation
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.
Details in comment.
src/index.html
Outdated
<div id="qa-block" class="block"> | ||
<div class="red-border"> | ||
<div class="blue-border"> | ||
<div class="red-border"> | ||
<div class="yellow-border"> | ||
<div class="red-border"> | ||
<div class="text"> | ||
In programming languages, a closure is a technique for implementing lexically | ||
scoped name binding in a language with first-class functions. Operationally, a | ||
closure is a record storing a function together with an environment. | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
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.
You are creating too many unnecessary elements.
If necessary, you can assign multiple classes to one HTML element:
class="block blue-border"
Also, you can add red border as border to element and blue or yellow colof as background.
Try completing this task with no more than three div
s layers.
Last commit wrong text. 'blue' must be 'block'. Should I make a new commit? |
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.
Almost there.
Details in comment.
src/style.css
Outdated
.blue { | ||
background-color: #308dc0; | ||
border: 1px solid #e95d49; | ||
padding: 10px; | ||
} | ||
|
||
.yellow { | ||
background-color: #ffa500; | ||
border: 1px solid #e95d49; | ||
padding: 10px; | ||
} | ||
|
||
.text { | ||
border: 1px solid #e95d49; | ||
margin: 0; | ||
padding: 10px; | ||
background-color: #ddd; | ||
} |
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.
You have same styles for border and padding in three selectors.
Remember, don't repeat yourself.
Create one more common class for these styles.
Also, you can safely combine .blue
and .block
into one class. They have no overlapping styles.
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 job!
DEMO LINK
TEST REPORT LINK