Skip to content

Conversation

@daryadm13
Copy link

No description provided.

Copy link

@Adoree Adoree left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pretty much good work, but with a small remark - text in the 5th block is not centered horizontally
image


<body>

<div class="all">
Copy link

@Adoree Adoree Jul 23, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should use more appropriate class name, in this case I would use cubes or container at least
Same for all other classes, instead of using c1 it could be cubes__first-block

<div class="all">
<div class="cube c1">
<img src="img/rain.png">
<p>CHICAGO/23&deg;</p>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not necessary to write text in uppercase, consider using styles for that instead

<p>CHICAGO/23&deg;</p>
</div>
<div class="cube c2">
<img src="img/fog.png">
Copy link

@Adoree Adoree Jul 23, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should always add alt attribute for the images, either empty or whats on the picture in two words

<div class="cube c5">
<img src="img/cloud_wind.png">
<div class="red_bottom">
<div class="day_weather">
Copy link

@Adoree Adoree Jul 23, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You have a lot of similar html tags, <ul> with <li> elements would fit better in this case
Also I would suggest to use more semantic tags

margin: 5px;
}

.day img {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

avoid using html tags, it's better to use class names, except for body and html

.all {
display: flex;
flex-wrap: wrap;
color: white;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep in mind order of properties, group them by type
1 - layout (position, display)
2 - anything related to box model (width/height/margin/padding)
3 - styling for element (color, background, box-shadow)
4 - anything related to font
5 - other stuff, it also includes overflow, z-index


.day img {
width: 24px;
.day {} No newline at end of file
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May I ask whats that for?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants