A
A
Antoniok77712020-12-04 15:49:23
css
Antoniok7771, 2020-12-04 15:49:23

After 960 px @media queries don't work. At 520 px you want the text to be full width. pages. how to do it?

I ask for help in solving my problem)
There are 4 div blocks with a fixed width of 200px, with a width of 1000px everything is fine, they stand 4 in a row, with 960 px 2 in a row and 2 below them. it is also good. But here at 520px, 1 in a row and each below the other, but not not the full width of the page. how to make it all the way?

.items__inner{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.item{
    
    width: 200px;
    font-family: 'arial' , sans-serif;
    margin-left: 22px;
    padding-right: 20px;
}



@media(max-width: 960px){
    .header__menu-btn{
        display: block;
    }
    .header__menu ul{
        display: none;
        position: absolute;
        z-index: 2;
        top: 120px;
        left: 0;
        right: 0;
        width: 100%;
        background-color: #fff;
        border-bottom: 5px solid #0479fd;
    }
    .header__menu li{
        display: block;
        text-align: center;
    }
    .header__menu li + li{
        margin-left: 0;
    }
    .header__menu a{
        padding: 12px 0 12px 11px;
        font-weight: 400;
        display: block;
        text-transform: none;
    }
    .header__menu li + li a {
        border-top: 1px solid #e7e7e7;
    }

    .items__inner{
        
        flex-wrap: wrap;
    
    }
    .item{
        width: 40%;
        margin-bottom: 20px;
        
    }
   }

@media(max-widht: 900px){
 
   .item{ 
    width: 50%;
        padding-right: 40px;
    }
    
}

@media (max-widht: 520px){
     .item{

width: 100%;
padding-right: 0;}
    }

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
FeST1Val, 2020-12-04
@Antoniok7771

max -widht: 900px max- widht : 520px Misspelled word

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question