V
V
Vitaly2019-06-25 13:48:01
css
Vitaly, 2019-06-25 13:48:01

How to stretch 2 blocks to full width?

How to stretch these 2 blocks to full width using flex?
I get it like this:5d11fb2cc86a3177680523.png

<div class="album-col">
            <div class="album-it">
                <h2 class="album-title">featured album</h2>
            </div>
            
            <div class="album-it">
                <a href="#"><img src="img/HUGO_Free-Landing-Page_03.jpg" alt="BEAT"></a>
            </div>
        </div>

.album-col{
    
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
}

.album-it{
    width: 720px;
    height: 480px;
    
    
}

.album-title{
    font-size: 48px;
    
    text-transform: capitalize;
    color: #252525;
    
    font-weight: lighter;
}

The result should be like this:5d11fb8f36ca9168355744.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
bbquite, 2019-06-25
@vitsen777

.album-it{
    height: 480px;
    flex: 1 0 auto;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question