How to make horizontal division using html div tag and css

后端 未结 3 1509
挽巷
挽巷 2021-01-12 13:19

I\'m trying to make two horizontal divisons using

tag in html, but I couldn\'t make it. Can anyone help me make horizontal division using html and c
相关标签:
3条回答
  • 2021-01-12 14:08
    <div id="firstDivistion" class="division"></div>
    <div id="secondDivistion" class="division"></div>
    
    
    .division{
      width:50%;
      height:100px;
      float:left;
    }
    
    0 讨论(0)
  • 2021-01-12 14:11

    Set the float property for each div to be matched, for example left to each, give each of them enough width so that the parent contains them.

    DEMO

    0 讨论(0)
  • 2021-01-12 14:23
    `<div style='float:left'>stuffs</div>
    <div style='float:right'>stuffs</div>
    <div style='clear:both'></div>`
    

    Works well in every cases and is followed in many places...

    0 讨论(0)
提交回复
热议问题