Problem aligning divs next to each other?

后端 未结 3 1164
心在旅途
心在旅途 2021-01-22 01:40

I want this design:

DIV1: auto-size DIV2: 160px
divnumberonediv divtwo
divnumberonediv divtwo
divnumberonediv divtwo
divnumberonediv divtwo
divnumberonediv divt         


        
3条回答
  •  -上瘾入骨i
    2021-01-22 02:18

    Try the following. ids are used for unique content and should be used once only per page. Also tables are still worth considering in some circumstances. Using borders on your divs while you are working on the layout will also help (red and green borders below).

    
    
    
    
    
    
    
    textcontent div content
    ads div content
    textcontent div content
    ads div content
    textcontent div content
    ads div content
    textcontent div content
    ads div content
    textcontent div content
    ads div content
    textcontent div content
    ads div content

提交回复
热议问题