is it possible to increase the width of the post's body?

For support and discussion related to templates, themes, and imagesets in phpBB 3.2.
Post Reply
ivelegacy
Registered User
Posts: 2
Joined: Sun Apr 14, 2019 1:42 pm

is it possible to increase the width of the post's body?

Post by ivelegacy »

Image

hi,
I have recently opened a forum, based on phpBB, and I'd like to increase the width of postbody, since we are not using avatars, so the space on the right is not used.

it seems the width is managed by the class "postbody"

Code: Select all

styles/prosilver/template/viewtopic_body.html:          <div class="postbody">
but I cannot understand how it works, and what I have to change.
User avatar
Lumpy Burgertushie
Registered User
Posts: 68307
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: is it possible to increase the width of the post's body?

Post by Lumpy Burgertushie »

content.css around line 229

Code: Select all

/* Post body styles
----------------------------------------*/
.postbody {
	padding: 0;
	line-height: 1.48em;
	width: 76%;
	float: left;
	position: relative;
}
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.3 Styles by PlanetStyles.net

If nobody is in the forest, does a tree really fall?
ivelegacy
Registered User
Posts: 2
Joined: Sun Apr 14, 2019 1:42 pm

Re: is it possible to increase the width of the post's body?

Post by ivelegacy »

thanks!

I had to add this line

Code: Select all

<link href="{T_THEME_PATH}/content.css" rel="stylesheet" type="text/css"/>
in

Code: Select all

styles/prosilver/template/overall_header.html
and I also modified the "width" filed in this file

Code: Select all

styles/prosilver/theme/content.css

Code: Select all

.postbody
{
        padding:     0;
        line-height: 1.48em;
        color:       #333333;
        width:       99%;
        float:       left;
        clear:       both;
}
Not it works perfectly :D
User avatar
Lumpy Burgertushie
Registered User
Posts: 68307
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: is it possible to increase the width of the post's body?

Post by Lumpy Burgertushie »

there was no need to add that line to the overallheader file.
'all you have to do is edit the content.css file and then purge the cache and or refresh your browser to see the changes.

the content.css file is already being used so that line is redundant and may even cause problems .


robvert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.3 Styles by PlanetStyles.net

If nobody is in the forest, does a tree really fall?
User avatar
erelash_mf
Registered User
Posts: 71
Joined: Sun Jan 19, 2020 1:02 pm
Location: Mongolia
Name: ERA
Contact:

Re: is it possible to increase the width of the post's body?

Post by erelash_mf »

Hi guys
How to change text location change to bottom on post body?
Attachments
bottom.png
User avatar
ac_roma
Registered User
Posts: 318
Joined: Thu Mar 08, 2007 2:48 pm
Location: egypt,alexandria
Contact:

Re: is it possible to increase the width of the post's body?

Post by ac_roma »

erelash_mf wrote:
Tue Mar 31, 2020 7:45 am
Hi guys
How to change text location change to bottom on post body?
this will not to be ok with the preview

you can try edit the post calss in the css
User avatar
erelash_mf
Registered User
Posts: 71
Joined: Sun Jan 19, 2020 1:02 pm
Location: Mongolia
Name: ERA
Contact:

Re: is it possible to increase the width of the post's body?

Post by erelash_mf »

ac_roma wrote:
Tue Mar 31, 2020 6:24 pm
erelash_mf wrote:
Tue Mar 31, 2020 7:45 am
Hi guys
How to change text location change to bottom on post body?
this will not to be ok with the preview

you can try edit the post calss in the css
OKEY :)
Post Reply

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