Set auto height and width in CSS/HTML for different screen sizes

后端 未结 3 1785
抹茶落季
抹茶落季 2021-02-04 21:18

I have 2 issues with this layout :

  1. .feature_content (grey background) adapt it\'s height and width to different screen sizes
3条回答
  •  深忆病人
    2021-02-04 21:43

    Using bootstrap with a little bit of customization, the following seems to work for me:

    I need 3 partitions in my container and I tried this:

    CSS:

    .row.content {height: 100%; width:100%; position: fixed; }
    .sidenav {
      padding-top: 20px;
      border: 1px solid #cecece;
      height: 100%;
    }
    .midnav {
      padding: 0px;
    }
    

    HTML:

      
    Some content 1
    Some content 2
    Some content 3

提交回复
热议问题