Two Divs next to each other, that then stack with responsive change

前端 未结 6 863
感情败类
感情败类 2020-11-28 02:17

I\'m trying to achieve something that I am sure should be easier than I am making it!

I am using the Skeleton responsive framework, and have been fine up until now.<

6条回答
  •  心在旅途
    2020-11-28 03:00

    Floating div's will help what your trying to achieve.

    Example

    HTML

    CSS

    .container{
    width:100%;
    height:200px;
    background-color:grey;
    }
    .content{
    float:left;
    height:30px;
    }
    .content1{
    background-color:blue;
    width:300px;
    }
    .content2{
    width:200px;
    background-color:green;
    }
    

    Zoom in the page to see the effects.

    Hope it helps.

提交回复
热议问题