How would you make two
s overlap?

前端 未结 5 1113
春和景丽
春和景丽 2020-11-29 16:12

I need two divs to look a bit like this:

    |               |
 ---|    LOGO       |------------------------
|   |_______________|  LINKS                |
|         


        
5条回答
  •  囚心锁ツ
    2020-11-29 16:38

    If you want the logo to take space, you are probably better of floating it left and then moving down the content using margin, sort of like this:

    #logo {
        float: left;
        margin: 0 10px 10px 20px;
    }
    
    #content {
        margin: 10px 0 0 10px;
    }
    

    or whatever margin you want.

提交回复
热议问题