Uutiset:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu
Advertisement:

[2.0RC5]Moving page to the very top

Aloittaja helike13, heinäkuu 19, 2011, 05:38:52 AP

« edellinen - seuraava »

helike13

I'd like to push the page to the top of the browser removing this blue gap:


MrGrumpy

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;
}
the possession of knowledge is worthless unless imparted upon others
My Custom Themes
2.0 themes only - I don't do 1.1.x

helike13

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?

helike13

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?

helike13


MrGrumpy

A link would help as contrary to popular belief we're not psychic and know the answer to "it's broke".
the possession of knowledge is worthless unless imparted upon others
My Custom Themes
2.0 themes only - I don't do 1.1.x

helike13

#6
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).


helike13


MrGrumpy

What you mean where am I, I'm not your employee or slave to come running to your beck and call.
the possession of knowledge is worthless unless imparted upon others
My Custom Themes
2.0 themes only - I don't do 1.1.x

desibees

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.


I'm the.. Help abuser


helike13


helike13

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..... ;)

Advertisement: