PDA

View Full Version : Full justification text in articles


bandare
09-09-2010, 01:55 PM
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
.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
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
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