Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Aiheen aloitti: helike13 - heinäkuu 19, 2011, 05:38:52 AP

Otsikko: [2.0RC5]Moving page to the very top
Kirjoitti: helike13 - heinäkuu 19, 2011, 05:38:52 AP
I'd like to push the page to the top of the browser removing this blue gap:

Otsikko: Re: [2.0RC5]Moving page to the very top
Kirjoitti: MrGrumpy - heinäkuu 19, 2011, 07:23:08 AP
Find

body {
background: #E9EEF2 url(../images/theme/backdrop.png) repeat-x;
font: 78%/130% "Verdana", "Arial", "Helvetica", sans-serif;
margin: 0 auto;
padding: 15px 0;
}


Replace with

body {
background: #E9EEF2 url(../images/theme/backdrop.png) repeat-x;
font: 78%/130% "Verdana", "Arial", "Helvetica", sans-serif;
margin: 0 auto;
padding:  0;
}


That will remove the gap at the top - this will also remove the padding from the bottom, if you don't want it that way then use this code instead to keep the bottom padding.

body {
background: #E9EEF2 url(../images/theme/backdrop.png) repeat-x;
font: 78%/130% "Verdana", "Arial", "Helvetica", sans-serif;
margin: 0 auto;
padding: 0 0 15px 0;
}
Otsikko: Re: [2.0RC5]Moving page to the very top
Kirjoitti: helike13 - heinäkuu 19, 2011, 08:30:59 AP
This is good, thanks. All pages went to the top very well except the Help, Register and Login pages.

Are there different styles for these pages?
Otsikko: Re: [2.0RC5]Moving page to the very top
Kirjoitti: helike13 - heinäkuu 20, 2011, 04:06:09 AP
I measured there has been remained a 16px top gap on the Help, Register and Login pages. Other pages are good.

How to remove that 16px gap?
Otsikko: Re: [2.0RC5]Moving page to the very top
Kirjoitti: helike13 - heinäkuu 23, 2011, 04:10:45 AP
No one knows it?
Otsikko: Re: [2.0RC5]Moving page to the very top
Kirjoitti: MrGrumpy - heinäkuu 23, 2011, 05:26:43 AP
A link would help as contrary to popular belief we're not psychic and know the answer to "it's broke".
Otsikko: Re: [2.0RC5]Moving page to the very top
Kirjoitti: helike13 - heinäkuu 23, 2011, 05:37:46 AP
My forum is not "on air" yet because it is unfinished but I have screenshots.





I drew blue arrows to notice the gap.

I post the CSS (if I can).

Otsikko: Re: [2.0RC5]Moving page to the very top
Kirjoitti: helike13 - heinäkuu 25, 2011, 12:29:09 AP
MrGrumpy, where are you?
Otsikko: Re: [2.0RC5]Moving page to the very top
Kirjoitti: MrGrumpy - heinäkuu 25, 2011, 11:07:54 AP
What you mean where am I, I'm not your employee or slave to come running to your beck and call.
Otsikko: Re: [2.0RC5]Moving page to the very top
Kirjoitti: desibees - heinäkuu 25, 2011, 05:56:36 IP
Lainaus käyttäjältä: MrGrumpy - heinäkuu 25, 2011, 11:07:54 AP
What you mean where am I, I'm not your employee or slave to come running to your beck and call.

Lol, this was kinda rude.
Otsikko: Re: [2.0RC5]Moving page to the very top
Kirjoitti: helike13 - elokuu 22, 2011, 09:23:57 AP
Nothing else than rudin'?
Otsikko: Re: [2.0RC5]Moving page to the very top
Kirjoitti: helike13 - syyskuu 01, 2011, 11:43:59 AP
I figured out myself.

It was due to the character coding of the language files.

I have an UTF-8 language installed but the language files had BOM. The charcoding should be set to 'UTF-8 without BOM'.

Thanks for nothing the support..... ;)