Absolute Positioning Excersice Excessive code


18. Absolute Positioning

In this exercise isn't specifying the height & width attributes for the div part useless?
reason is, we already define height&width features in CSS code for the ID's

div {
	height: 100px;
	width: 100px;
	border-radius: 5px;
	border: 2px solid black;

#inner {
	height: 75px;
	width: 75px;
	background-color: #547980;
	/*Add your CSS here!*/

#outer {
	height: 1500px;
	width: 150px;
	background-color: #45ADA8;
	position: absolute;
	margin-left: 100px;


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