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
https://forums.phpfreaks.com/topic/260679-simple-for-some/
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
https://forums.phpfreaks.com/topic/260679-simple-for-some/#findComment-1336112
Share on other sites

  • 3 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.