Remove margin and padding of whole phpbb

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

Remove margin and padding of whole phpbb

Post by abcd2014 » Fri Mar 02, 2018 7:55 am

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: 20343
Joined: Fri Aug 29, 2008 9:49 am
Location: Cardiff

Re: Remove margin and padding of whole phpbb

Post by Mick » Fri Mar 02, 2018 10:17 am

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

There are no ‘threads’ in phpBB, they are topics.

abcd2014
Registered User
Posts: 74
Joined: Sun Feb 18, 2018 12:26 pm

Re: Remove margin and padding of whole phpbb

Post by abcd2014 » Fri Mar 02, 2018 12:14 pm

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: 65305
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Remove margin and padding of whole phpbb

Post by Lumpy Burgertushie » Fri Mar 02, 2018 2:36 pm

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

robert
I am available for custom work on a donation basis. Please send me a PM with your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

OK, so what's the speed of dark?

abcd2014
Registered User
Posts: 74
Joined: Sun Feb 18, 2018 12:26 pm

Re: Remove margin and padding of whole phpbb

Post by abcd2014 » Fri Mar 02, 2018 3:46 pm

But which point?

Jodi-86
Registered User
Posts: 84
Joined: Thu Nov 30, 2017 10:04 pm

Re: Remove margin and padding of whole phpbb

Post by Jodi-86 » Fri Mar 02, 2018 3:50 pm

#wrap {

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

Re: Remove margin and padding of whole phpbb

Post by Lumpy Burgertushie » Fri Mar 02, 2018 4:30 pm

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
I am available for custom work on a donation basis. Please send me a PM with your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

OK, so what's the speed of dark?

abcd2014
Registered User
Posts: 74
Joined: Sun Feb 18, 2018 12:26 pm

Re: Remove margin and padding of whole phpbb

Post by abcd2014 » Sat Mar 03, 2018 3:06 am

Hi Robert,

You provide details, which are helpful.

Thanks

.

Locked

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

Who is online

Users browsing this forum: No registered users and 10 guests