Welcome to the Treehouse Community
Looking to learn something new?
Hot Bricks Employee10,991 Points
Can someone explain why the image replacement technique works only when you apply the pull-left class?
Just curious to understand the dependency that pull-left class has with the image replacement technique. When I remove the pull-left class I get strange results that don't make sense.
Rudolf Janns5,720 Points
After removing pull-left, try adding display: block; to the .main-logo rule. Looks fine now right?
It seems that floating something also displays it as a block element! Anchors are inline elements by default, so removing the float means it'll ignore the width and height dimensions we specified.