PDA

View Full Version : Justify text


Spangle
07-22-2014, 11:36 AM
I need a hack to justify all posts, articles and blogs.

I can do it via Firebug, but I'm finding it difficult to locate the code to edit in the templates.

Anyone help ?

Spangle
07-27-2014, 10:47 AM
Question too difficult ?

webjocky
07-31-2014, 03:44 AM
I like to teach people to fish instead of just handing them one.
Although it says vB4, the same technique applies to vB5, maybe this will help. http://www.vbulletin.com/forum/forum/vbulletin-4/vbulletin-4-questions-problems-and-troubleshooting/vbulletin-4-quick-tips-and-customizations/351207-how-to-find-the-correct-stylevar-layoutvar-to-edit

Spangle
07-31-2014, 08:23 AM
I like to teach people to fish instead of just handing them one.
Although it says vB4, the same technique applies to vB5, maybe this will help. http://www.vbulletin.com/forum/forum/vbulletin-4/vbulletin-4-questions-problems-and-troubleshooting/vbulletin-4-quick-tips-and-customizations/351207-how-to-find-the-correct-stylevar-layoutvar-to-edit

If you bother to read the OP properly, you will have read that I can accomplish this through Firebug, but I cannot find the relative template to edit, despite doing a search, as far as I am aware it will not be in the Stylevars, but I will take a look.

Darkness95
08-01-2014, 09:37 AM
Hi! There is also another one way to find the correct CSS template to edit!

First you have to go in the part of the forum which you want to edit. Now use with right click of your mouse the navigator (or inspect element) and know the name of the class you want to edit. Copy the class and go to:

Admin Control Panel > Styles & Templates > Search in Templates

Now use the section "Search Templates" (not Find and Replace) and put the name of the class in "Search for text", select the style which you want to find the CSS template and check "No" in "Search Titles Only".

To justify the text you have to open the CSS template and put in the class that you want to edit this:


text-align: justify !important;


Bye bye :D

Spangle
08-01-2014, 06:58 PM
Hi! There is also another one way to find the correct CSS template to edit!

First you have to go in the part of the forum which you want to edit. Now use with right click of your mouse the navigator (or inspect element) and know the name of the class you want to edit. Copy the class and go to:

Admin Control Panel > Styles & Templates > Search in Templates

Now use the section "Search Templates" (not Find and Replace) and put the name of the class in "Search for text", select the style which you want to find the CSS template and check "No" in "Search Titles Only".

To justify the text you have to open the CSS template and put in the class that you want to edit this:


text-align: justify !important;


Bye bye :D

I tried Searching ALL templates, mainly because I want it board wide, not just in the forums, as I said, I can do it with firebug, but cannot find the relevant template

Darkness95
08-01-2014, 10:48 PM
I tried Searching ALL templates, mainly because I want it board wide, not just in the forums, as I said, I can do it with firebug, but cannot find the relevant template


Don't worry, i've made a video for you to explain better how you have to do it! ;)

http://youtu.be/r2R3QlvGBAc

Spangle
08-02-2014, 08:41 AM
Don't worry, i've made a video for you to explain better how you have to do it! ;)

http://youtu.be/r2R3QlvGBAc

Thanks a bundle Scanu !