vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Full justification text in articles (https://vborg.vbsupport.ru/showthread.php?t=250211)

bandare 09-09-2010 01:55 PM

Full justification text in articles
 
Is there a way for articles to have the text fully justified so it makes the text spread across the whole text area. I want this so it looks better on the page. I can see:
  • center justify
  • left justify
  • right justify

Just no FULL justify. Is there a way to do this? Why is this not an option in vbulletin>?

Lynne 09-09-2010 02:18 PM

Just CSS
HTML Code:

.article {
text-align:justify;}


bandare 09-09-2010 02:56 PM

Thanks Lynne but where would I add that?

Will this over ride any justification that's used while writing the article?

Lynne 09-09-2010 04:22 PM

That CSS would be put into additional.css if you want all articles to be justified. If you only want a single one to be justified, you may need to use html to add that styling inline or create a new bbcode that fully justifies text.

bandare 09-10-2010 11:28 AM

Thanks for the help Lynne. I tried adding that code to the additional.css but it hasn't changed the overall look of the articles either on the main homepage where the previews are, or viewing the whole article.

Lynne 09-10-2010 01:48 PM

I didn't make it to change in the preview at all, it's only written to affect the article when you view the article itself. It definitely works on my default test site. Post a link to an article on your site that we can see.

bandare 09-10-2010 01:56 PM

Quote:

Originally Posted by Lynne (Post 2096238)
I didn't make it to change in the preview at all, it's only written to affect the article when you view the article itself. It definitely works on my default test site. Post a link to an article on your site that we can see.

I made a mistake Lynne, apologies..... The code went on to one line without a space and that caused the error on the article in full view. That now works. Is there a way to do the same in the preview in a section homepage?

Regards...........

Lynne 09-10-2010 02:16 PM

Sure, just add the same CSS to the class ".cms_article_txt_content"

bandare 09-10-2010 03:12 PM

Quote:

Originally Posted by Lynne (Post 2096257)
Sure, just add the same CSS to the class ".cms_article_txt_content"

Fantastic! Silly couple of questions but why are things like this not default? It just seems ridiculous to me not to add these as a default option to writing articles.

Also, is there a way to easily find out these codes rather than have to bother you?

Lynne 09-10-2010 07:09 PM

All I am doing is writing some CSS for you - not anything that is really a vbulletin thing. Anybody can write CSS if you know how to. A good reference site is w3schools.com


All times are GMT. The time now is 02:43 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00937 seconds
  • Memory Usage 1,727KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete