Jump to content

Simple for some?


andy_b_1502

Recommended Posts

Hi everyone,

 

I have a (maybe) simple for some problem...

 

I have a div that contains an image, just basically a blue bar stretching the whole width of the browser. Underneath sits the main wrapper (which is centred with margin-left: auto, margin-right:auto....

 

 

The problem is i can't seem to get rid of the whitespace ABOVE the bluebar (full-width dive along the top), i have put in the the body { margin: 0;}

 

Is there anything else i can try?

 

Thanks.

Link to comment
Share on other sites

You dont see the blue bar??

 

And there is no margin to delete from div # adbar?

 

body {

margin: 0;

}

#wrapper {

width: 90%;
margin-left: auto;
margin-right: auto;

}


#adbar {

width: 100%;
height:100%;
background: url(../images/adbar.jpg) repeat;
}

/* Header */

#header {

width: 90%;
height: 70px;
margin-left: auto;
margin-right: auto;
background:url(../images/removalspaceheader.jpg) no-repeat;
}

/* Menu */

#menu {
}

/** LOGO */

#logo {
width: 90%;
height: 135px;
background:url(../images/removalspace1.jpg) no-repeat;
margin-left: auto;
margin-right: auto;
}

#searchbar {

float:left;
width:90%;
margin-left:auto;
margin-right:auto;	
}
/* Content */

#content {
float: left;
width: 935px;
padding: 0px 0px 0px 0px;
}

/* Sidebar */

#sidebar {
float: right;
width: 150px;
font-family: Arial, Helvetica, sans-serif;
}


/* Footer */

#footer {
width: 90%;
height: 70px;
margin: 0 auto;
padding: 0;
clear: both;
margin-left: auto;
margin-right: auto;
}

Link to comment
Share on other sites

  • 3 weeks later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.