The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

how to center rank title [invision]

5 posters

Go down

how to center rank title [invision] Empty how to center rank title [invision]

Post by zenzo March 8th 2013, 11:40 am

how to center rank title [invision] 20130308183225

as you see on this image, the rank title and the rank title image is above the avatar

i use JS code to place it above

now i want that to be display on the center

here the JS code i use, is possible to add code to make it center

Code:
$(function(){
    $('.postprofile dl.postprofile-details.postdetails').each(function(){
    var theBox = $(this).children('dd:first');
    var avatarr = $(this).children('dt:first');
    theBox.insertBefore(avatarr);
    });
    $('.postprofile dl.postprofile-details.postdetails dt').before('<br>');
    });
zenzo
zenzo
Forumember

Posts : 564
Reputation : 13
Language : english,tagalog
Location : philippines

Back to top Go down

how to center rank title [invision] Empty Re: how to center rank title [invision]

Post by Sanket March 8th 2013, 11:51 am

• Please provide your forum URL for appearance problems

Make forums available for guests to view, so i can view a thread.
Sanket
Sanket
ForumGuru

Male Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai

Back to top Go down

how to center rank title [invision] Empty Re: how to center rank title [invision]

Post by zenzo March 8th 2013, 4:09 pm

Sanket wrote:• Please provide your forum URL for appearance problems

Make forums available for guests to view, so i can view a thread.

here you go sanket
http://gsmuniverz.forum-pro.org/t285-test-message#953

thanks
zenzo
zenzo
Forumember

Posts : 564
Reputation : 13
Language : english,tagalog
Location : philippines

Back to top Go down

how to center rank title [invision] Empty Re: how to center rank title [invision]

Post by Sanket March 9th 2013, 10:11 am

The code can center the whole poster details, will that do?
Sanket
Sanket
ForumGuru

Male Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai

Back to top Go down

how to center rank title [invision] Empty Re: how to center rank title [invision]

Post by zenzo March 9th 2013, 10:22 am

Sanket wrote:The code can center the whole poster details, will that do?

just the rank title and rank title image

i've post the js code cause that one i use to relocate the rank title and rank title image

so i believe that someone knows to insert the code to center both
zenzo
zenzo
Forumember

Posts : 564
Reputation : 13
Language : english,tagalog
Location : philippines

Back to top Go down

how to center rank title [invision] Empty Re: how to center rank title [invision]

Post by zenzo March 11th 2013, 10:54 am

bump....
zenzo
zenzo
Forumember

Posts : 564
Reputation : 13
Language : english,tagalog
Location : philippines

Back to top Go down

how to center rank title [invision] Empty Re: how to center rank title [invision]

Post by MrEighty8 March 11th 2013, 5:18 pm

Why are you using Javascript? I centered the rank simply by CSS

Code:
.postprofile-details.postdetails dd:first-child {
    text-align: center;
}

EDIT: I just noticed you do not have template editing with invision but either way the CSS will work! (:
MrEighty8
MrEighty8
New Member

Posts : 16
Reputation : 4
Language : English

Back to top Go down

how to center rank title [invision] Empty Re: how to center rank title [invision]

Post by zenzo March 12th 2013, 12:45 am

MrEighty8 wrote:Why are you using Javascript? I centered the rank simply by CSS

Code:
.postprofile-details.postdetails dd:first-child {
    text-align: center;
}

EDIT: I just noticed you do not have template editing with invision but either way the CSS will work! (:

not working,.i think that combination works only on JS
zenzo
zenzo
Forumember

Posts : 564
Reputation : 13
Language : english,tagalog
Location : philippines

Back to top Go down

how to center rank title [invision] Empty Re: how to center rank title [invision]

Post by levy March 12th 2013, 9:31 am

Code:
.postprofile-details {
margin-left: 20px;
text-align: center!important;
}

Try that code ( add in CSS )
levy
levy
Hyperactive

Male Posts : 2632
Reputation : 350
Language : English, Romanian
Location : Romania

https://portofolio.goodforum.net/

Back to top Go down

how to center rank title [invision] Empty Re: how to center rank title [invision]

Post by MrEighty8 March 15th 2013, 10:05 pm

Not working.. It sure worked for me on your forum. Add !important to the CSS. With forumotion forums that happens :/
MrEighty8
MrEighty8
New Member

Posts : 16
Reputation : 4
Language : English

Back to top Go down

how to center rank title [invision] Empty Re: how to center rank title [invision]

Post by zenzo March 16th 2013, 1:12 am

candy_fear wrote:
Code:
.postprofile-details {
margin-left: 20px;
text-align: center!important;
}

Try that code ( add in CSS )

it goes all center



MrEighty8 wrote: It sure worked for me on your forum. Add !important to the CSS. :/

post screenshot that its working on you
zenzo
zenzo
Forumember

Posts : 564
Reputation : 13
Language : english,tagalog
Location : philippines

Back to top Go down

how to center rank title [invision] Empty Re: how to center rank title [invision]

Post by SLGray March 16th 2013, 1:21 am

Have you tried adding this to the rank title:
Code:
<center>Rank Title</center>


how to center rank title [invision] Slgray10

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

Male Posts : 51482
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

how to center rank title [invision] Empty Re: how to center rank title [invision]

Post by zenzo March 16th 2013, 6:17 am

SLGray wrote:Have you tried adding this to the rank title:
Code:
<center>Rank Title</center>

yes i do that

but only for short title ranks,. character content has a limit
zenzo
zenzo
Forumember

Posts : 564
Reputation : 13
Language : english,tagalog
Location : philippines

Back to top Go down

Back to top

- Similar topics

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