How to decrease the spaces between paragraphs [br]?

For support and discussion related to templates and themes in phpBB 3.3.
User avatar
EmilianoL
Registered User
Posts: 50
Joined: Sat Aug 25, 2018 12:40 pm
Contact:

How to decrease the spaces between paragraphs [br]?

Post by EmilianoL »

is it possible to decide the height of an empty line between one paragraph and another in some way through ccs?

Something like this: https://www.ideepercomputeredinternet.c ... l-css.html
Last edited by EmilianoL on Wed Apr 14, 2021 7:26 pm, edited 2 times in total.
User avatar
Mannix_
Registered User
Posts: 1838
Joined: Sun Oct 25, 2015 2:56 pm
Name: Matt
Contact:

Re: How to decrease the spaces between paragraphs?

Post by Mannix_ »

you mean in posts or where?
Did I helped You? Consider a donation.
New version of phpBB has been released? My styles aren't validated for it yet? Check my page for the latest downloads!
User avatar
EmilianoL
Registered User
Posts: 50
Joined: Sat Aug 25, 2018 12:40 pm
Contact:

Re: How to decrease the spaces between paragraphs?

Post by EmilianoL »

Mannix_ wrote: Tue Apr 13, 2021 6:48 am you mean in posts or where?
Yes, in posts.
User avatar
Mannix_
Registered User
Posts: 1838
Joined: Sun Oct 25, 2015 2:56 pm
Name: Matt
Contact:

Re: How to decrease the spaces between paragraphs?

Post by Mannix_ »

open content.css find

Code: Select all

.content {
    clear: both;
    min-height: 3em;
    overflow: hidden;
    line-height: 1.4em;
    font-family: "Lucida Grande", "Trebuchet MS", Verdana, Helvetica, Arial, sans-serif;
    font-size: 1em;
    padding-bottom: 1px;
}
and adjust the line-height property to your liking. Save, upload and purge the browser cache to see changes.
Did I helped You? Consider a donation.
New version of phpBB has been released? My styles aren't validated for it yet? Check my page for the latest downloads!
User avatar
EmilianoL
Registered User
Posts: 50
Joined: Sat Aug 25, 2018 12:40 pm
Contact:

Re: How to decrease the spaces between paragraphs?

Post by EmilianoL »

Thanks, but I just need to decrease the distance between paragraphs, not between lines. Once on html we acted on paragraph style. It can be done?
User avatar
Mannix_
Registered User
Posts: 1838
Joined: Sun Oct 25, 2015 2:56 pm
Name: Matt
Contact:

Re: How to decrease the spaces between paragraphs?

Post by Mannix_ »

Well then I don't see a way to do it with css since phpbb uses br tag as a line break
Did I helped You? Consider a donation.
New version of phpBB has been released? My styles aren't validated for it yet? Check my page for the latest downloads!
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Re: How to decrease the spaces between paragraphs?

Post by david63 »

Mannix_ wrote: Wed Apr 14, 2021 12:14 pm phpbb uses br tag as a line break
You could style the <br> tag but that would affect that tag wherever it is used.
David
Remember: You only know what you know and - you don't know what you don't know!

I now no longer support any of my extensions but they will start to become available here
User avatar
EmilianoL
Registered User
Posts: 50
Joined: Sat Aug 25, 2018 12:40 pm
Contact:

Re: How to decrease the spaces between paragraphs?

Post by EmilianoL »

Please, can you explain better how to use the br tag?
User avatar
Onnozel Manneke
Registered User
Posts: 145
Joined: Mon Feb 01, 2021 8:37 pm
Location: Walhalla
Name: Loki Heimdall
Contact:

Re: How to decrease the spaces between paragraphs?

Post by Onnozel Manneke »

phpBB NL Extension translations on request.
Visit: https://www.phpbbnl.be

Image
User avatar
EmilianoL
Registered User
Posts: 50
Joined: Sat Aug 25, 2018 12:40 pm
Contact:

Re: How to decrease the spaces between paragraphs?

Post by EmilianoL »

Ok, I got it. In which ccs sheet should I insert this code?
User avatar
Onnozel Manneke
Registered User
Posts: 145
Joined: Mon Feb 01, 2021 8:37 pm
Location: Walhalla
Name: Loki Heimdall
Contact:

Re: How to decrease the spaces between paragraphs?

Post by Onnozel Manneke »

EmilianoL wrote: Wed Apr 14, 2021 6:47 pm
Ok, I got it. In which ccs sheet should I insert this code?
I guess in common.css

I always use "Board Magic" to add html and css
So you don't need to edit "core files"
--> https://www.phpbbnl.be/scripts/extensie ... gic106.zip
/ext/solidjeuh/boardmagic/styles/all/theme/forumedits.css
phpBB NL Extension translations on request.
Visit: https://www.phpbbnl.be

Image
User avatar
EmilianoL
Registered User
Posts: 50
Joined: Sat Aug 25, 2018 12:40 pm
Contact:

Re: How to decrease the spaces between paragraphs?

Post by EmilianoL »

Since I solved it thanks to yours indications, I'll explain how to do it.

In sylver / theme / content.css add these lines:

br {
display: block;
margin: 15px 0;
content: " ";
}

margin decides the space between the BRs.
User avatar
Onnozel Manneke
Registered User
Posts: 145
Joined: Mon Feb 01, 2021 8:37 pm
Location: Walhalla
Name: Loki Heimdall
Contact:

Re: How to decrease the spaces between paragraphs?

Post by Onnozel Manneke »

The problem is that this will effect all br tags, like David63 also told you.
In the style, extensions etc...
phpBB NL Extension translations on request.
Visit: https://www.phpbbnl.be

Image
User avatar
EmilianoL
Registered User
Posts: 50
Joined: Sat Aug 25, 2018 12:40 pm
Contact:

Re: How to decrease the spaces between paragraphs [br]?

Post by EmilianoL »

It's true. And I only need it when I leave a blank space and not every time I go to the top.... Patience.
User avatar
Onnozel Manneke
Registered User
Posts: 145
Joined: Mon Feb 01, 2021 8:37 pm
Location: Walhalla
Name: Loki Heimdall
Contact:

Re: How to decrease the spaces between paragraphs [br]?

Post by Onnozel Manneke »

An option is to use custom BBCode

[brtag][/brtag]

<br><br>

But then you always need to add that BBCode in your posts... :roll:
phpBB NL Extension translations on request.
Visit: https://www.phpbbnl.be

Image
Post Reply

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