Possible to achieve this Mobile/Desktop layout using Bootstrap? (or other grid)

后端 未结 2 1802
清歌不尽
清歌不尽 2020-12-04 00:20

I\'m using Twitter Bootstrap 3 to create a mobile-ready website. On a large screen, I\'d like two items (#1 and #2 in my sketch) to be in a sidebar to the left, while the la

2条回答
  •  [愿得一人]
    2020-12-04 00:41

    Try to float to the right: (see: http://bootply.com/78158)

    CSS:

    .floatright{float:right;}
    @media (max-width: 768px)
    {    
        .floatright{float:none;}
    }   
    

    HTML:

    1
    3
    2

提交回复
热议问题