The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Post profile text alignment

View previous topic View next topic Go down

Solved Post profile text alignment

Post by .DayDreamer. on February 23rd 2016, 10:23 pm

Hello again. Smile

I was wondering if it was possible to have the text in the post profile line up evenly, like how it does on this forum? I tried to look up an answer for myself, but I couldn't find a thread with one.

I edited a picture of what I wanted in gimp:


forum version: phpbb3
forum: http://justtestingthings.forumotion.com/


Last edited by .DayDreamer. on February 25th 2016, 4:04 pm; edited 3 times in total

.DayDreamer.
Forumember

Female Posts : 40
Reputation : 1
Language : English
Location : United States

http://justtestingthings.forumotion.com/

Back to top Go down

Solved Re: Post profile text alignment

Post by Draxion on February 23rd 2016, 10:34 pm

Code:
.postoptions {
text-align: left !important;
}

Draxion
Helper
Helper

Male Posts : 560
Reputation : 81
Language : English
Location : USA

http://dawnofthedragons.forumotion.com/

Back to top Go down

Solved Re: Post profile text alignment

Post by .DayDreamer. on February 23rd 2016, 10:38 pm

Thank you for the code, but nothing changed when I put it in.

.DayDreamer.
Forumember

Female Posts : 40
Reputation : 1
Language : English
Location : United States

http://justtestingthings.forumotion.com/

Back to top Go down

Solved Re: Post profile text alignment

Post by Ange Tuteur on February 24th 2016, 4:07 pm

Hi,

These CSS rules should give you a similar effect so long as you're using phpbb3.
Code:
.postprofile { text-align:center; }
.postprofile dd { text-align:left; }
.postprofile dt + dd, .postprofile dd:last-child { text-align:center; }
.postprofile .label {
  float:left;
  text-align:right;
  margin-right:3px;
  margin-left:-3px;
  width:50%;
}

If you have fields that are only images, these rules will center them :
Code:
/* center icons */
.postprofile dd img {
  display:block;
  margin:0 auto;
}

.postprofile dt + dd img, .postprofile dd:last-child img { display:inline-block }

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Post profile text alignment

Post by .DayDreamer. on February 25th 2016, 6:02 am

That works amazingly! Thank you very much!!

.DayDreamer.
Forumember

Female Posts : 40
Reputation : 1
Language : English
Location : United States

http://justtestingthings.forumotion.com/

Back to top Go down

Solved Re: Post profile text alignment

Post by SLGray on February 25th 2016, 6:18 am

Is this solved?


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36682
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Solved Re: Post profile text alignment

Post by .DayDreamer. on February 25th 2016, 6:34 am

No, sorry. I realized that everything in the box is not 100% center and goes slightly to the right. Would there be a way to make it so that it's 100% centered?


.DayDreamer.
Forumember

Female Posts : 40
Reputation : 1
Language : English
Location : United States

http://justtestingthings.forumotion.com/

Back to top Go down

Solved Re: Post profile text alignment

Post by Ange Tuteur on February 25th 2016, 11:12 am

Hmm.. I'm assuming it might be the default margin. Add this CSS rule to your stylesheet :
Code:
.postprofile dd, .postprofile dt { margin-left:0 !important; }

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Post profile text alignment

Post by .DayDreamer. on February 25th 2016, 4:04 pm

Now it's center. Thank you!!

I'll mark the thread as solved.

.DayDreamer.
Forumember

Female Posts : 40
Reputation : 1
Language : English
Location : United States

http://justtestingthings.forumotion.com/

Back to top Go down

Solved Re: Post profile text alignment

Post by SLGray on February 25th 2016, 10:53 pm

Topic solved and archived


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36682
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum