inherit
190546
0
Jan 25, 2020 3:03:06 GMT -8
transoxiana
20
February 2013
transoxiana
|
Post by transoxiana on Apr 11, 2019 7:59:19 GMT -8
Hi there!
I was wondering, if there's a way to get the title of the redirect board to act like the titles of the general boards? I've centered all my board titles, but the redirect title ends up far more to the right.
I've tried to play around with it myself, but I am NOT good at coding xD
Thank you in advance!
|
|
Kami
Forum Cat
Posts: 40,026
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,026
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Apr 11, 2019 8:27:06 GMT -8
Pictures have no coding, so there's no way for us to tell what is causing this.
Can you provide a URL? Moving forward, if you're asking for help with your forum, please provide a URL in your opening post (:
|
|
inherit
190546
0
Jan 25, 2020 3:03:06 GMT -8
transoxiana
20
February 2013
transoxiana
|
Post by transoxiana on Apr 11, 2019 9:52:06 GMT -8
Kami, sorry 'bout that, the url is THIS. I've experienced it with different proboards sites before, so I guess I thought of it as a general issue, rather than a specific one for my forum (:
|
|
Kami
Forum Cat
Posts: 40,026
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,026
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Apr 11, 2019 11:43:18 GMT -8
No worries! Even if it is a 'generic' issue (which you're correct, it is, and I will explain why below) it's always good to provide a forum URL because there's no telling what sort of customisations you've made to it to impact the issue and/or the solution.
So, onto the issue at hand.
Technically, there's nothing wrong with what's happening. Both are correctly centred. The reason that, visually, it appears incorrect is that the redirect boards are one cell in table row, whereas a board cell is actually one of four cells in a table row. So when centring content in a board cell, it will be centred within the confines of the size of the cell; if the cell only takes up a fraction of the table width, it will be in a different place than if the cell takes up the entirety of the table width.
You can change this by using a margin instead of centring the text in redirect boards.
How are you currently centering text for the boards? Via the Admin > Themes > Advanced Styles & CSS > Visual Editor tab, or from the Stylesheet tab? Or within the board name directly with UBBC? Or within the layout templates?
|
|
inherit
190546
0
Jan 25, 2020 3:03:06 GMT -8
transoxiana
20
February 2013
transoxiana
|
Post by transoxiana on Apr 13, 2019 4:54:56 GMT -8
Kami, aahh, thanks for claring that up! It actually makes sense! (: Currently, I'm centering the board titles within the board name directly with UBBC - as UBBC is, what I'm most comfortable with still, so that's the easiest for me =)
|
|
inherit
252032
0
Apr 4, 2024 21:43:14 GMT -8
Retread
Tribbial Pursuit.
5,014
January 2018
retread
|
Post by Retread on Apr 13, 2019 13:03:15 GMT -8
transoxiana If you navigate to Admin Home> Themes> Layout Templates> then click Board, then click the Board List tab, the bottom section of that template should look like this: {else} <tr id="$[board.content_id]" class="$[board.content_class]"> <td class="icon">$[board.icon]</td> <td class="main clickable redirect last" colspan="4"> <span class="link">$[board]</span><br /> <p class="description">$[board.description]</p> </td> </tr> {/if} {/foreach} {if !$[board]} <tr class="last"><td class="last center" colspan="5">No boards were found.</td></tr> {/if} </tbody> </table> If you change the colspan to 1 (I've highlighted the current value of 4 in yellow) your redirect boards will center on the same point as your normal boards and sub-boards. Be sure to click Save Changes at the bottom of the page. Since you aren't using borders around those table cells we won't need to address that.
|
|
inherit
190546
0
Jan 25, 2020 3:03:06 GMT -8
transoxiana
20
February 2013
transoxiana
|
Post by transoxiana on Apr 14, 2019 8:51:53 GMT -8
Retread, works like a charm, thank you so so much!
|
|