Increasing The Width Of Your Header

后端 未结 2 1701
花落未央
花落未央 2020-12-22 09:14

My website is www.rosstheexplorer.com

I want the header image to stretch across the whole page but I do not want any letters to be chopped off the \'Ross The Explore

2条回答
  •  囚心锁ツ
    2020-12-22 09:37

    Your images will not expand to the full width of the page, because they are inside a wrapper with a max-width. You could take your images outside of the wrapper (see below). You could also apply position:absolute to the images, but that would cause a whole other set of problems.

    >
      
      

    You would also have to add this CSS to force the image to expand beyond it's natural size, however this would start to blur the image a bit.

    .header img {
      max-width: none;
      width: 100%;
    }   
    

提交回复
热议问题