M
M
Maxim Ivanov2021-01-30 17:44:58
css
Maxim Ivanov, 2021-01-30 17:44:58

Is it possible in this situation to move the button to the very end of the entire container?


https://codepen.io/roderen/pen/OJbJeQO?editors=1100

With a screen resolution of 768 and below, is it possible to move the "View all projects" button to the very end of the container (after the cards)?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
purr-purr, 2021-01-30
@purr-purr

@media (max-width: 768px) {
 .house-projects {
   position: relative;
   padding-bottom: 100px;
 }
 .all-projects {
   position: absolute;
   bottom: 0;
   left: 0;
 }
}

R
r_g_b_a, 2021-01-31
@r_g_b_a

<div class="house-projects">
  <h3 class="project-title"></h3>
  <div class="projects-cards"></div>
  <a class="all-projects" href=""></a>
</div>

@media (min-width: 768px) {
  .house-projects {
    display: flex;
    flex-wrap: wrap;
  }
  .all-projects {
    order: 1;
    width: 100%;
  }
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question