Lession 8:To add "float:right;" There is no error.But the "Next" btn not getting activated


#1


https://www.codecademy.com/en/courses/make-a-website/lessons/boundaries-space/exercises/using-float


Lesson 8:-To .contact-btn -- add "float:right;" .Everything seems OK.No error msg but "Next" btn is is greyed out.Hence can't go to next lession.


.contact-btn a {
  margin-right: 30px;
  padding: 8px 18px;
  border: 1px solid #204156;
  float: right;

}

.contact-btn a:active {
  position: relative;
  bottom: 2px;
  float: right;
}


#2

Found the mistake ?? I was applying "float:right ;" to "contact-btn a"which targets the a element instead of just "contact-btn" , like so (as code below)

.contact-btn {

float: right;}
}

thanks :wink:
pk


#3

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