CSS CSS Layout Basics Page Layout with the Float Property The Float Challenge Solution

The Float Challenge Solution

<div class="container clearfix">

        <div class="secondary col">
            <p>Everything in this city is worth waiting in line for.</p>
            <p>Cupcake ipsum dolor sit. Amet chocolate cake gummies jelly beans candy bonbon brownie candy. Gingerbread powder muffin. Icing cotton candy. Croissant icing pie ice cream brownie I love cheesecake cookie. Pastry chocolate pastry jelly croissant.</p>
            <p>Cake sesame snaps sweet tart candy canes tiramisu I love oat cake chocolate bar. Jelly beans pastry brownie sugar plum pastry bear claw tiramisu tootsie roll. Tootsie roll wafer I love chocolate donuts.</p>

        <div class="primary col">
            <h2>Great food</h2>
            <img class="feat-img" src="img/treats.svg" alt="Drinks and eats">
            <p>Croissant macaroon pie brownie. Cookie marshmallow liquorice gingerbread caramels toffee I love chocolate. Wafer lollipop dessert. Bonbon jelly beans pudding dessert sugar plum.</p>
            <p>Marzipan toffee drag&#233;e chocolate bar candy toffee pudding I love. Gummi bears pie gingerbread lollipop.</p>
            <p> Fruitcake jelly-o croissant souffl&#233; . Biscuit jujubes drag&#233;e. Sesame snaps tootsie roll chocolate bar cake tart macaroon pudding. Ice cream gummies jujubes cupcake. Cake marshmallow cookie lollipop tart. Tootsie roll bear claw marzipan jujubes wafer tart chocolate bar cake biscuit. Jelly beans danish pastry apple pie fruitcake. Jelly-o icing candy canes lollipop tiramisu</p>


/* ================================= Media Queries ==================================== */

@media (min-width: 789px) {

.wrap {
    min-height: calc(100vh - 89px);

.container {
    width: 85%;
    max-width: 1150px;
    margin: 0 auto;

.main-nav {
    float: right;

.main-nav li {
    float: left;

.main-nav li {
    margin-left: 12px;

/* ---- Columns ---- */

.col {
    float: right;
    padding-left: 1em;
    padding-right: 1em;

.primary {
    width: 60%;

.secondary {
    width: 40%;

/* ------------- */

.feat-img {
    width: 300px;
    float: left;
    margin-top: 5px;
    margin-right: 25px;
    margin-bottom: 25px;
    padding: 10px;
    border: solid 1px #d9e4ea;

.clearfix::after {
    content: "";
    display: table;
    clear: both;

} why is it that both primary col and the secondary col share the float: left declaration but secondary column appears on the right left side and the other appears on the right side? I thought that you had to float the column you wanted on the left side to the left and the column you wanted on the right side to the right.