All Is Collapsed

Report a typo

Karine has a website where she loves to talk about dog breeds, and she was writing about huskies on this occasion. She wanted the text to be right next to the image but she ended up setting one of the properties wrong, causing her main div to collapse.

Take a look at her code and check the option that could help her.

The image with the text below

<div class="main-container">
    <img class="element-one" src="https://...">
    <p class="element-two">The Siberian Husky...</p>
</div>
.main-container {
  border: 1px solid red;
  width: 500px;
}

.element-one {
  float: left;
}

.element-two {
  text-align: justify;
  float: right;
}
Select one option from the list
___

Create a free account to access the full topic