S
S
Svetttoch2021-07-09 12:05:39
css
Svetttoch, 2021-07-09 12:05:39

How to position icons in two columns relative to each other?

I used bootstrap grid to split into 2 columns + flexbox. As we see in the layout, the icons are relative to the text in the center, and the icons themselves are relative to each other on the same level. But I don't know how to make the icons relative to each other on the same level.

How it should be
60e80ba73ac41840185540.png
Like mine
60e80bb659707522417704.png

HTML:
60e810db494b3792753999.png

CSS:

.job .job_item{
   display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.job .job_item .job_round{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 26px;
    width: 113px;
    height: 113px;
    background-color: #1eacc7;
    border-radius: 100%;
}

.job .job_item .job_descr{
    width: 347px;    
}

.job .job_descr .job_descr_header{
    font-size: 17px;
    font-weight: normal;
    text-align: justify;
    line-height: 21px;
    color: #1eacc7;
}

.job .job_descr .job_descr_text{
    font-size: 15px;
    font-weight: 300;
    font-style: normal;
    line-height: 21px;
    text-align: justify;
    color: #202020;
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Makarov, 2021-07-09
@serbananas

remove align-items:center in .job .job_item and .job .job_item .job_round blocks

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question