How can I merge columns from two rows into a new row for mobile?

sgledhill

I have the below section on my website. I have 2 rows both with 3 cols each. on lg screens the cols are -6 each so the 3rd col is pushed on to a new separate row by its self.

I would like 1 of the cols from the second row to join the 3rd col(from the first row) which is now sitting alone on its own row. I'm not sure how to do this. Can anyone help?

<div class="container pt-5 pb-3" id="cardSection">
  <div class="row gx-3 gy-3">
    <div class="col-xl-4 col-lg-6 col-sm-12 d-flex justify-content-center">
      <div class="card" style="width: 23rem;">
        <img src="F:\Home\Sam\Website Homepage\appointments.jpg" class="card-img-top" alt="doctors appointment with patient">
        <div class="card-body">
          <h5 class="card-title">Appointments</h5>
          <p class="card-text">Book your appointents online with our 24/7 online service.</p>
          <a href="#" class="btn btn-primary">Book Now</a>
        </div>
      </div>

    </div>
    <div class="col-xl-4 col-lg-6 col-sm-12 d-flex justify-content-center">
      <div class="card" style="width: 23rem;">
        <img src="F:\Home\Sam\Website Homepage\prescriptions.jpg" class="card-img-top" alt="image of prescriptions">
        <div class="card-body">
          <h5 class="card-title">Prescriptions</h5>
          <p class="card-text">Order your prescriptions online with our 24/7 online service.</p>
          <a href="#" class="btn btn-primary">Order now</a>
        </div>
      </div>

    </div>
    <div class="col-xl-4 col-lg-6 col-sm-12 d-flex justify-content-center">
      <div class="card" style="width: 23rem;">
        <img src="F:\Home\Sam\Website Homepage\self help.jpg" class="card-img-top" alt="woman making a heart with hands">
        <div class="card-body">
          <h5 class="card-title">Self Help</h5>
          <p class="card-text">Find tips, guides, tools and activities to support and improve mental health.</p>
          <a href="#" class="btn btn-primary">Find help</a>
        </div>
      </div>

    </div>
  </div>
</div>
<!-- CARD SECTION - ROW 2 -->
<div class="container pb-5">
  <div class="row gx-3 gy-3">
    <div class="col-xl-4 col-lg-6 col-sm-12 d-flex justify-content-center">
        <div class="card" style="width: 23rem;">
          <img src="F:\Home\Sam\Website Homepage\reception.jpg" class="card-img-top" alt="image of a reception area">
          <div class="card-body">
            <h5 class="card-title">Reception Enquires</h5>
            <p class="card-text">Advice on who you need to see for a number of queries.</p>
            <a href="#" class="btn btn-primary">Enter</a>
          </div>
        </div>
    </div>
    <div class="col-xl-4 col-lg-6 col-sm-12 d-flex justify-content-center">
      <div class="card" style="width: 23rem;">
        <img src="F:\Home\Sam\Website Homepage\services.jpg" class="card-img-top" alt="image of prescriptions">
        <div class="card-body">
          <h5 class="card-title">Our Services</h5>
          <p class="card-text">Discover a range of services we offer at Dene Medical Centre</p>
          <a href="#" class="btn btn-primary">Services</a>
        </div>
      </div>

    </div>
    <div class="col-xl-4 col-lg-6 col-sm-12 d-flex justify-content-center">
        <div class="card" style="width: 23rem;">
          <img src="F:\Home\Sam\Website Homepage\PPG.jpg" class="card-img-top" alt="image of a reception area">
          <div class="card-body">
            <h5 class="card-title">Patient Participation Group</h5>
            <p class="card-text">Advice on who you need to see for a number of queries.</p>
            <a href="#" class="btn btn-primary">Enter</a>
          </div>
    </div>
  </div>
</div>```
Siddharth Bhansali

Don't start a new row. Keep a single row, and put all your column code within it. The output will be 3 columns (x2) in xl, and will become 2 columns (x3) in lg. You might need to add a custom margin to all the elements of the col depending on the output you're getting.

Эта статья взята из Интернета, укажите источник при перепечатке.

Если есть какие-либо нарушения, пожалуйста, свяжитесь с[email protected] Удалить.

Отредактировано в
0

я говорю два предложения

0обзор
Войти в системуУчаствуйте в комментариях

Статьи по теме

How can I make new observations from columns in R?

How can I calculate pct_change() in pandas across two columns, row by row?

How can I make a flexbox layout with two rows, but with items grouped into two sub-columns?

How can I create a new series by using specific rows and columns of a pandas data frame?

How can I merge two mongo collections?

How can I merge two string lists?

How can I merge two bundleOf?

C++ How can I write a method that takes two matrices and calculates the number of rows and columns

How to use two rows to create a new row in python pandas

Merge Multiple Columns As New Rows in Pandas Dataframe

Python - How can you calculate values from two columns into its own column in each row?

How to merge two columns from different dataframes with conditions

How can I create multiple rows from a single row based on a formula?

How can I include information from multiple rows into one row based on an identifier in R?

How can I match rows two by two in Spark?

How can I iterate over column values in Pandas and create a new observation based on the values of multiple columns in the same row?

Merge two tables and replicate rows using two date columns

How do I create a new dataframe from every nth row of an existing dataframe while performing math functions on some columns of the first dataframe

How can I merge two function definitions in TypeScript?

How can I merge two SQL tables and then append the result to a third?

How can I filter columns (rather than rows) in EPPlus?

How can I join data from two tables and insert the result into a new table?

How to merge rows in dataframe with different columns?

How to merge 2 rows into 1 row pandas

merge the columns of different rows into one row group by a specific column

how do I create a new column in my main data frame filling in the values from a smaller dataset based on two columns they have in common?

Create a new row for each day between dates from two different columns in Redshift SQL

How to split one row two datetime columns to mutiple rows and group by date

Using R, How can I create new columns using if?

TOP список

  1. 1

    Распределение Рэлея Curve_fit на Python

  2. 2

    Merging legends in plotly subplot

  3. 3

    В типе Observable <unknown> отсутствуют следующие свойства из типа Promise <any>.

  4. 4

    TypeError: store.getState não é uma função. (Em 'store.getState ()', 'store.getState' é indefinido, como posso resolver esse problema?

  5. 5

    Как в точности работает внутренний пул потоков Nodejs?

  6. 6

    ViewPager2 мигает / перезагружается при смахивании

  7. 7

    How do I search for an entry out of two SQL tables and know which table it came from?

  8. 8

    Как я могу нарисовать заполненный прямоугольник в JFreeChart?

  9. 9

    Невозможно запустить iReports 5.6.0 с Netbeans 8 и JDK 1.8

  10. 10

    Как добавить заголовок в легенду для двух независимых групп, состоящих из трех подгрупп?

  11. 11

    Камунда - Фильтровать список задач по назначенной группе

  12. 12

    Проверьте, была ли новая вкладка открыта с помощью puppeteer

  13. 13

    JavaFX TextArea как установить текст с автоматическим переносом новой строки

  14. 14

    Как запустить скрипт node js из скрипта powershell и использовать вывод скрипта node js в скрипте powershell?

  15. 15

    Элемент "эллипс", созданный с помощью JS, не отображается в HTML

  16. 16

    Два ArrayList один адаптер RecyclerView

  17. 17

    Ошибка при использовании CONVERT при выборе из OPENJSON

  18. 18

    Как перезапустить приложение JavaFX при нажатии кнопки

  19. 19

    невозможно соединить intelliJ с Docker Machine

  20. 20

    Невозможно понять дерево вызовов jprofiler

  21. 21

    Slick Carousel + Проблема форматирования аккордеона

популярныйтег

файл