2 divs aligned side by side, how to make right div fill width 100%?

前端 未结 8 1073
遥遥无期
遥遥无期 2021-01-31 08:17

I\'m wondering what the best way to go about doing this is...

I have 3 divs:

  • a div#container with width=100%; tha

8条回答
  •  猫巷女王i
    2021-01-31 08:40

    Use floating:

    #container{
    width:100%
    }
    
    #inner_left{
    float:left;
    max-width:200px;
    }
    
    #inner_right{
    float:left;
    width:100%; 
    }
    

    Edit: have a read a this, it's a nice little guide : quirksmode

提交回复
热议问题