Three column layout: fixed width center with fluid side columns

后端 未结 5 1516
無奈伤痛
無奈伤痛 2020-12-02 02:21

I\'m trying to implement a design in CSS that will have a tiled background on the body. I want to use a png image in the content background as an oval-shaped opacity mask o

5条回答
  •  失恋的感觉
    2020-12-02 02:32

    As per your screenshot you can write like this:

    body{
     background: url(image.jpg) repeat center center;
    }
    
    .container{
      width:500px;
      margin:0 auto;
    }
    

    UPDATED:

    Solution according to your question Three column layout: fixed width center with fluid side columns

    http://jsfiddle.net/XMg2h/3/

    But it's work in modern browsers

    UPDATED

    http://jsfiddle.net/XMg2h/10/

    it's work in all browsers

提交回复
热议问题