Page 1 of 1

Remove margin and padding of whole phpbb

Posted: Fri Mar 02, 2018 7:55 am
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

.

Re: Remove margin and padding of whole phpbb

Posted: Fri Mar 02, 2018 10:17 am
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.

Re: Remove margin and padding of whole phpbb

Posted: Fri Mar 02, 2018 12:14 pm
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...

.

Re: Remove margin and padding of whole phpbb

Posted: Fri Mar 02, 2018 2:36 pm
by Lumpy Burgertushie
that would be in the common.css file for your style

robert

Re: Remove margin and padding of whole phpbb

Posted: Fri Mar 02, 2018 3:46 pm
by abcd2014
But which point?

Re: Remove margin and padding of whole phpbb

Posted: Fri Mar 02, 2018 3:50 pm
by Jodi-86
#wrap {

Re: Remove margin and padding of whole phpbb

Posted: Fri Mar 02, 2018 4:30 pm
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

Re: Remove margin and padding of whole phpbb

Posted: Sat Mar 03, 2018 3:06 am
by abcd2014
Hi Robert,

You provide details, which are helpful.

Thanks

.