MyBB Community Forums

Full Version: Problem with the header
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm creating a theme and I have a problem:

[Image: 10odutf.png]

So. I used the container id for the background, that uses a repeat-y.
Then I created a border_top id for the bar that it should be united with the container.

#border_top {
height: 10px;
background-image: url(images/fever/top_border.png);
margin: auto auto;
padding: 20px;
background-repeat: no-repeat;
width: 990px;
}
and this is the header template:

<div id="border_top"></div><div id="container">
		<a name="top" id="top"></a>
.......................

Where is the problem?
Please provide a link to your forum .
It is in localhost Confused
Oh. Hmm, well, it looks like there s a padding or margin issue. Try editing those in firebug. You can do that on local host too.
I solved...

#container:

#container {
	background: url(images/fever/main.png) repeat-y;
	width: 990px;
	color: #222;
	margin: auto auto;
        padding-left: 20px;
	padding-right: 20px;
	padding-bottom: 20px;
	text-align: left;
}


#border_top
#border_top {
      height: 10px;
      width: 990px;
      background-image: url(images/fever/top_border.png);
      margin: auto auto;
      padding-left: 20px;
      padding-right: 20px;
      background-repeat: no-repeat;
}
So it was the padding. Good job Big Grin
(2012-08-01, 06:22 PM)Leefish Wrote: [ -> ]So it was the padding. Good job Big Grin

Yes, thank you Smile