How to vertically center 'Last Post' text in prosilver based style?

For support and discussion related to templates, themes, and imagesets in phpBB 3.2.
Post Reply
deScourge
Registered User
Posts: 6
Joined: Tue Feb 05, 2019 8:46 pm
Location: Chile
Name: Luis Faúndez
Contact:

How to vertically center 'Last Post' text in prosilver based style?

Post by deScourge » Thu Feb 14, 2019 6:33 am

I'm trying to vertically center the text (topic url, author, time, etc.) from my Index, but I can't figure out where should I add some vertical centering codes. Some images resize the box, so these texts are floating in the upper left corner.

Not sure if this one is the right file
/styles/style_name/template/forumlist_body.html

EDIT: Oh, also the topic&post numbers are floating, I'd like to vertically center them too.


deScourge
Registered User
Posts: 6
Joined: Tue Feb 05, 2019 8:46 pm
Location: Chile
Name: Luis Faúndez
Contact:

Re: How to vertically center 'Last Post' text in prosilver based style?

Post by deScourge » Thu Feb 14, 2019 7:28 pm

Thank you very much!
It did the trick.

User avatar
paulie
Registered User
Posts: 90
Joined: Thu Mar 30, 2017 3:41 pm
Location: Hull, East Yorkshire.

Re: How to vertically center 'Last Post' text in prosilver based style?

Post by paulie » Thu Feb 14, 2019 8:12 pm

I just simply added:

text-align: center;

To line 191 of content.css
'Life in the Air Age isn't all the brochures say ...'

User avatar
warmweer
Registered User
Posts: 2160
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Belt ... well actually Belgium

Re: How to vertically center 'Last Post' text in prosilver based style?

Post by warmweer » Thu Feb 14, 2019 9:55 pm

paulie wrote:
Thu Feb 14, 2019 8:12 pm
I just simply added:

text-align: center;

To line 191 of content.css
I doubt this works: AFAIK text-align is for horizontal aligning see https://www.w3schools.com/cssref/pr_text_text-align.asp
vertical-align might do the trick see https://www.w3schools.com/cssref/pr_pos ... -align.asp
My board's not broken, it just went peculiar

User avatar
paulie
Registered User
Posts: 90
Joined: Thu Mar 30, 2017 3:41 pm
Location: Hull, East Yorkshire.

Re: How to vertically center 'Last Post' text in prosilver based style?

Post by paulie » Thu Feb 14, 2019 10:31 pm

warmweer wrote:
Thu Feb 14, 2019 9:55 pm
paulie wrote:
Thu Feb 14, 2019 8:12 pm
I just simply added:

text-align: center;

To line 191 of content.css
I doubt this works: AFAIK text-align is for horizontal aligning see https://www.w3schools.com/cssref/pr_text_text-align.asp
vertical-align might do the trick see https://www.w3schools.com/cssref/pr_pos ... -align.asp
It definitely works hence the reason I posted!

Assuming of course that the opening poster meant this:
lastpost.png
'Life in the Air Age isn't all the brochures say ...'

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

Re: How to vertically center 'Last Post' text in prosilver based style?

Post by Lumpy Burgertushie » Fri Feb 15, 2019 12:04 am

yes it works for horizontal centering. however the OP asked for vertical centering.


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

Premium phpBB 3.2 Styles by PlanetStyles.net

If a tree falls in the forest and nobody is there, does it make a sound?

Post Reply

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