June 12, 201412 yr Hey im getting a white border around my image when i would like it to strectch right out to the edges. http://gyazo.com/fd32a9d9854b5fb004d042bfdfdbe2b8 Basically that image is in the back, then the content area that will go below will scroll over the top giving a nice scrolling feel my code for the relavent bit: http://gyazo.com/cfed6c732c6daeb02ce0de6667c70a98
June 13, 201412 yr As pippin62 mentioned, you should try adding the following into your CSS, typically as the first line: body, html{padding:0; margin:0;} Secondly, your css is written with a poor practise. You can easily get most/all the properties you want in just one line, like this: #main_header { height:500px; background: url('red-boat-on-shore.png') fixed cover; padding:0; //No need for the PX if the value is 0 } Not sure about the other properties since I don't use them in that way. Edited June 13, 201412 yr by WilliamsGraphics
Create an account or sign in to comment