Skip to content

homework1: Jessi Yao#20

Open
jessi-yao wants to merge 1 commit intodistinctioncoding:mainfrom
jessi-yao:homework1
Open

homework1: Jessi Yao#20
jessi-yao wants to merge 1 commit intodistinctioncoding:mainfrom
jessi-yao:homework1

Conversation

@jessi-yao
Copy link

Thank you!

Copy link

@Gary-Distinctioncoding Gary-Distinctioncoding left a comment

Choose a reason for hiding this comment

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

Overall is good, but some elements' width are not necessary to set

Comment on lines +25 to +38
<div>
<label for="username">Your name</label>
<input type="text" id="username" placeholder="Enter your name">
</div>

<div>
<label for="phone">Phone number</label>
<input type="text" id="phone" placeholder="Enter your phone number">
</div>

<div>
<label for="account">Dulux account</label>
<input type="text" id="account" placeholder="Enter your Dulux account">
</div>

Choose a reason for hiding this comment

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

all the input elements miss name attribute, this is very important

Comment on lines +25 to +26
margin-left: -40px;
margin-top: -35px;

Choose a reason for hiding this comment

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

very bad practice to move the position of the left-section to the place you want, margin it is the distance between element, not to move an element

Comment on lines +22 to +23
flex: 1;
width: 100%;

Choose a reason for hiding this comment

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

flex: 1 的作用是让子元素平分父容器的可用空间, width不需要设置

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