Styling Div border pixels - Height vs. Radius


#1

The following linter warning msg. iis adjacent to my last code rule:

Using border height and border width can sometimes make elements larger than you expect.
<----------------------------------------------------------------------------------------------.>

https://www.codecademy.com/courses/web-beginner-en-jNuXw/0/3?curriculum_id=50579fb998b470000202dc8b

<----------------------------------------------------------------------------------------------.>
Error message:
Make sure your divs are 100 pixels high! (If your height looks correct, make sure your border-radius is 100%, not 100px!)

div {
	display: inline-block;
	margin-left: 5px;
	height: 100px;
	width: 100px;
	border-radius: 100%; 
	border: 2px solid black; 
}

#2

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.