1

I am trying to make the background image of the div header scale to the size of the page. Here is the current css:

.Header {
    background-image: url(Images/logo.png);
    height: 160px;
    width: 960px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
}
peterh
  • 11,875
  • 18
  • 85
  • 108

1 Answers1

0

Make the position as absolute of the header and width as 100%

position:absolute;
width:100%;
nifCody
  • 2,394
  • 3
  • 34
  • 54
  • sorry does not seem to fix it. The image is repeated and when i change the size of the window, the image does not change size – silentassasin114 Feb 22 '15 at 03:41
  • means if you re size the window it goes multiple image ? can you give me the fiddle I'll try http://jsfiddle.net/ – nifCody Feb 22 '15 at 03:43