user2989236 user2989236 - 1 year ago 116
CSS Question

How to remove white space around header image?

I am experimenting with my header but I can't remove the white space around it, this is what my code looks like:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">

<style type="text/css">
.header{background:url( repeat-x;border-bottom:1px solid #131619;height:56px}
<div class="header">
<div class="header-content">

And this is what the header looks like:

I would really appreciate if someone could help me fix this.


Since I can't answer my own question, I will post it here:

I added this:

html,body {

and it worked, thanks for the help guys!

Answer Source

Add this to your CSS:

html, body {
  margin: 0; 
  padding: 0;
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download