
Originally Posted by
Pamela1991
When I inspected the element in question, I noticed that "float: left;" was being ignored. I wrongly assumed it had to have been from a parent, but it turns out I was wrong. What was causing that float to be ignored?
the float:left was crossed out in the inspector because an inline style was providing the float:left and therefore had higher specificity.
Code:
<div class="image-float-left" style="float: left;">
Code:
element.style {
float: left;
}
.image-float-left {
border: 1px solid black;
float: left;
Bookmarks