Forums » Customize

justifying text

ishnock
UNITED STATES
2009-06-03 21:17:27
Permalink Post
 

This is regarding text that is typed in the text editor. How do I go about justifying so that each line of text is properly lined up. ...To my understanding, when typing in a WYSIWYG text editor, you are suppose to type all the way through and the editor will automatically create line breaks and make each line even

the page in question( see how the text lines are un-even ...that is not proper grid structure):mindsfourart

Vaska A
UNITED STATES
2009-06-03 21:55:50
Permalink Post
 

Full justification?

You can set this in your css...I think it's something like...but you might need to look up the css reference for this...

  1. p { text-align: justify; }
ishnock
UNITED STATES
2009-06-03 22:33:32
Permalink Post
 

thanks, mate .

mlaniew123
FRANCE
2012-02-01 08:53:25
Permalink Post
 

Hi,

I'm trying to justify just one line in my home page.

  1. I add this line :
  2. p { text-align: justify; }

But it only work if I have sereval lines.

How can I justify the contact-line of my homepage?
www.wintersdorff.fr

Thanks
Mélanie

pernin A
SWEDEN
2012-02-01 09:05:21
Permalink Post
 

salut Mélanie,

wrap the contact line text into its own div with a class, for example:

<div class="contact-line">contact line text, bla, bla</div>

then add the class to your css:

.contact-line {
text-align: justify;
}

though you have so much text you may need to either reduce the font a smidgen (you can do that changing that property to the same class, so that it doesn't affect other things)

mlaniew123
FRANCE
2012-02-01 10:13:23
Permalink Post
 

Thank you!

Where do I have to add the class? (in the contant area? body?)
Argghh, I'm a bit lost!

What do you mean by : "though you have so much text you may need to either reduce the font a smidgen" Are you talking a bout the contact text?

pernin A
SWEDEN
2012-02-01 11:03:43
Permalink Post
 

add the class in your css file, in your case, the_centered_theme/style.css

just add it by itself, like the other classes there

my comment about having so much text is that even with full justification, if the text is longer than the space in the line, the text will wrap to the next line anyway and will look weird. Full justification will work better when your text is a bit shorter than one line, or longer than two lines

anyway, I see that it looks good, so no need to worry about that

the only thing is that you have repeated it a few times... where have you put that text? is it in the Main page or in the post-nav?

mlaniew123
FRANCE
2012-02-01 14:26:27
Permalink Post
 

no way no do it!! I just don't understand.

I add the class in the style.css, and put my text on the main page with the div class.
but nothing appear...

in the css, I can addthe class where ever want, right? :)

pernin A
SWEDEN
2012-02-01 14:50:20
Permalink Post
 

I don't see your problem Mélanie. It's working correctly. The only problem you have is that you have two contact texts in your main page, one correctly wrapped in div class="contact-line" and the other wrapped in an h1 tag

If you don't see this duplicated text in your main page, look in settings/post-nav, or you may have written it directly in your index.php?

mlaniew123
FRANCE
2012-02-01 15:00:11
Permalink Post
 

true!!

my computer doesn't make the changes at the same time that i'm working on them!

perfect!
thank you!

pernin A
SWEDEN
2012-02-01 15:05:40
Permalink Post
 

shift-refresh is your friend :)

Showing 1 - 11 of 11 posts in Forum > Customize > justifying text
 

You need to be logged in to post.