mediaquery.css 1.06 KB
<style>

@media screen(min-width:320px) and (max-width:480px){
    #grid
    {
        display: grid;
        grid-template-rows: 250px 1fr;
        border-top:1px solid gray;

    }
    #grid ol
    {
        padding-left: 40px;
        margin:0;
        font-size: 15px;
    }
    #grid li
    {
        padding-top: 10px;
        padding-bottom: 10px;
        font-size:15px;
    }
    #grid #article
    {
        padding-top: 10px;
        padding-bottom: 10px;
        padding-left: 20px;
        /*grid안에 #article */
    }
}
@media screen(min-width:480px) and (max-width:800px){

    #grid
    {
        display: grid;
        grid-template-columns: 600px 1fr;
        border-top:1px solid gray;

    }
    #grid ol
    {
        padding-left: 40px;
        margin:0;
        font-size: 15px;
    }
    #grid li
    {
        padding-top: 10px;
        padding-bottom: 10px;
        font-size:15px;
    }
    #grid #article
    {
        padding-top: 10px;
        padding-bottom: 10px;
        padding-left: 20px;
        /*grid안에 #article */
    }





}






</style>