V
V
Viktor Kokorich2022-01-23 13:59:32
css
Viktor Kokorich, 2022-01-23 13:59:32

How to implement? Bootstrap?

How to make text taller?
The text is not retracted, but completely lengthens the object.
61ed34d5102f6606417764.png

<section class="number">
           <div class="container">
                <div class="row">
                        <div class="col">
                           <div class="chert">
                               <img src="../site/png/project.png" alt="чертеж">
                               <div class="count">40+</div>
                           </div>
                        </div>
                         <div class="col">
                           <div class="chert">
                               <img src="../site/png/project.png" alt="чертеж">
                           </div>
                        </div>
                        <div class="col">
                           <div class="chert">
                               <img src="../site/png/project.png" alt="чертеж">
                           </div>
                        </div>
                        <div class="col">
                           <div class="chert">
                               <img src="../site/png/project.png" alt="чертеж">
                           </div>
                        </div>
                        <div class="col">
                           <div class="chert">
                               <img src="../site/png/project.png" alt="чертеж">
                           </div>
                        </div>
                        <div class="col">
                           <div class="chert">
                               <img src="../site/png/project.png" alt="чертеж">
                           </div>
                        </div>
                  </div>
            </div> 
        </section>

.number {
    background-color: #34547A;

    height: 250px;
    padding-top: 100px;
    }


.count {
    font-family: Roboto;
    font-style: normal;
    font-weight: 500;
    font-size: 21px;
    line-height: 25px;
    display: inline-block;
    color: #FFFFFF;
    margin-left: 20px;
    padding-bottom: 60px;
    margin-bottom: 30px;
    
    
    

}

.chert {
    text-align: center;
    padding: 1px 1px 1px 1px;
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladislav Krechun, 2022-01-25
@adsvlad

Add class align-top to div block with class count

<div class="col">
     <div class="chert">
       <img src="red.png" alt="чертеж">
         <div class="count align-top">40+</div>
       </div>
  </div>

Read more here: https://getbootstrap.com/docs/5.0/utilities/vertic...
P. S: You can also remove the count class if you don't need it
padding-bottom: 60px;
margin-bottom: 30px;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question