Float for two


#1


https://www.codecademy.com/en/courses/web-beginner-en-6merh/2/3?curriculum_id=50579fb998b470000202dc8b


Oops, try again. Did you remember to float your <div> to the right?


div {
	height: 300px;
	width: 300px;
	border: 2px solid black;
	border-radius: 5px;
	background-color: #308014;
	/*Add your CSS here!*/
	float: left;
	
}

p {
	font-family: Verdana, sans-serif;
	font-size: 20px;
	width: 280px;
	/*Add your CSS here!*/
	float: right;
	
}

I seem to get a bunch of errors I can't figure out.. thanks guys..


#2

your div should be floated to the right, and your paragraph to the left, you seemed to have swap it


#3

The problem is that you got your floats backwards; it says float div to the right and p to the left


#4

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