Remove margin and padding of whole phpbb

For support and discussion related to templates, themes, and imagesets in phpBB 3.1.
Scam Warning
abcd2014
Registered User
Posts: 74
Joined: Sun Feb 18, 2018 12:26 pm

Remove margin and padding of whole phpbb

Post by abcd2014 »

whole phpbb has (I guess so):

1. a margin-top to browser's address-bar, which is near 12 px.
2. a padding around header etc. to whole phpbb's border, which is near 16 px.

How to adjust or remove the maring and padding?

Thanks

.
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26825
Joined: Fri Aug 29, 2008 9:49 am

Re: Remove margin and padding of whole phpbb

Post by Mick »

Please read Am I in the right place? and make sure you post in the correct forum for your needs. You posted, several times in general support, questions that needed to be in styles support.
  • "The more connected we get the more alone we become” - Kyle Broflovski© 🇬🇧
abcd2014
Registered User
Posts: 74
Joined: Sun Feb 18, 2018 12:26 pm

Re: Remove margin and padding of whole phpbb

Post by abcd2014 »

Is here the right place for style support ?
Board index > Styles Forums > Styles Support & Discussion [3.1.x] > Styles Support & Discussion

I am very confused...

.
User avatar
Lumpy Burgertushie
Registered User
Posts: 69228
Joined: Mon May 02, 2005 3:11 am

Re: Remove margin and padding of whole phpbb

Post by Lumpy Burgertushie »

that would be in the common.css file for your style

robert
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
abcd2014
Registered User
Posts: 74
Joined: Sun Feb 18, 2018 12:26 pm

Re: Remove margin and padding of whole phpbb

Post by abcd2014 »

But which point?
User avatar
Jodi-86
Registered User
Posts: 100
Joined: Thu Nov 30, 2017 10:04 pm

Re: Remove margin and padding of whole phpbb

Post by Jodi-86 »

#wrap {
User avatar
Lumpy Burgertushie
Registered User
Posts: 69228
Joined: Mon May 02, 2005 3:11 am

Re: Remove margin and padding of whole phpbb

Post by Lumpy Burgertushie »

prosilver/theme/common.css:

Code: Select all

body {
	font-family: Verdana, Helvetica, Arial, sans-serif;
	font-size: 10px;
	line-height: normal;
	margin: 0;
	padding: 12px 0;
	word-wrap: break-word;
	-webkit-print-color-adjust: exact;
notice the padding of 12px

Code: Select all

.wrap {
	border: 1px solid transparent;
	border-radius: 8px;
	margin: 0 auto;
	max-width: 1152px;
	min-width: 625px;
	padding: 15px;
}
notice the padding of 15px

in the future, when you want to know what css controlls a certain part of a web page, right click on that part and select "inspect element" or whatever your browser provides. this will open a window that shows you the relevant html and/or css for that section. it will also tell you what css file and what line it comes from.

luck,
robert
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
abcd2014
Registered User
Posts: 74
Joined: Sun Feb 18, 2018 12:26 pm

Re: Remove margin and padding of whole phpbb

Post by abcd2014 »

Hi Robert,

You provide details, which are helpful.

Thanks

.

Return to “[3.1.x] Styles Support & Discussion”