When using grid 960, can I still have a 100% width header section?

前端 未结 5 1131
执念已碎
执念已碎 2021-01-26 14:53

I want to use a grid system, like say grid 960.

But I want the top header of the website to be 100%, is this still possible?

5条回答
  •  广开言路
    2021-01-26 15:13

    Yes, it's possible.

    The first step is to add this code to your CSS:

    body,canvas {
        border:0;
        margin:0;
        padding:0;
    }
    

    Then make a class:

    .full-width-div {
        width: 100%;
    }
    

    And then just add it to your HTML like this:

    Your content...

提交回复
热议问题