• Resolved strawberryjam88

    (@strawberryjam88)


    Hi all! Sorry if this has been asking already, I can’t seem to find the result..

    Anyways, here’s what I am trying to do:

    1. Copy & paste text from notepad. *Some of my authors cross-post so it’s kind of important*
    2. Center the whole post content. It looks correct in the visual editor.

    But..
    After you publish the post, there’s only <p style="text-align: center;"> for the first line. Thus only centering the first line.

    My site: http://blog.mm-bbs.org
    Some pictures:
    http://i.imgur.com/s0bRE.jpg
    http://i.imgur.com/Vhi0k.jpg

    Any ideas? Thanks for your help!

Viewing 11 replies - 1 through 11 (of 11 total)
  • Try <div style=”text-align:center;”>your content here</div> around the post.

    Thread Starter strawberryjam88

    (@strawberryjam88)

    It does work, but it would be nice if it just worked properly on something so basic, haha. I guess I’m not quite sure what kind of answer I was expecting.

    I don’t mind it myself, but it may be a pain for some of the authors who don’t know HTML at all. I guess they will have to copy it down somewhere.

    Thanks for the solution!

    Just replace the <p with the <div. That easy!

    I think the issue might be – as seems to be depicted in your images – that you are dealing with more than one paragraph. Viewing your source code will reveal this. //blog.mm-bbs.org/tanaka-reina/7969

    <div class="entry-content">
    <p>(t/n: Title is a line from “Maji desuka Suka!” Translates roughly to “No matter when, be positive!”)</p>
    <p>
    <p>
    <p>
    <p>
    <p>
    <p>
    <p>Everyone~~~~</p>
    <p>
    </div>

    Perhaps adding “text-align:center;” to the .entry-content definitions in your style sheet will solve the issue.

    .entry-content {text-align:center;}

    If you do that, all the text on the site will be centered.

    No… Just the text located within the .entry-content div.

    🙂

    Yes, all the text in every post.

    And the issue is?

    OP’s request:

    Anyways, here’s what I am trying to do:

    1. Copy & paste text from notepad. *Some of my authors cross-post so it’s kind of important*
    2. Center the whole post content. It looks correct in the visual editor.

    She did not ask for all the posts.

    Ahhh… I see. Just a matter of semantics.

    Well, to be accurate, the OP also does not seem to specify for only “select” posts, so I guess it’s an issue of interpretation, no? 🙂 No big deal. I simply interpreted this response…

    It does work, but it would be nice if it just worked properly on something so basic, haha. I guess I’m not quite sure what kind of answer I was expecting.

    I don’t mind it myself, but it may be a pain for some of the authors who don’t know HTML at all. I guess they will have to copy it down somewhere.

    …to be an indicator that the author was looking for something more substantial/permanent, that could be applied without the need for other authors to add or modify code. I’m sure strawberryjam88 will decide what works best. Your suggestion, of course, is still just as valid.

    🙂

    Thread Starter strawberryjam88

    (@strawberryjam88)

    Haha. Sorry to tie you guys up in a knot!

    We’re a translation blog so we try to keep our content to the original as much as possible. Some of the original authors centered their posts, but obviously not everyone prefers that! 😉

    Thank you for the suggestion ClaytonJames, but yes, I don’t know want it centered for every post. ^ ^

    edit:

    Just replace the <p with the <div. That easy!

    Oh! Just tested this. I’m glad the editor is at least smart enough to wrap the div properly. 🙂 This solution is good, that way the author doesn’t need to remember or copy/paste style=”text-align:center;”.

    Thanks guys!

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Text only centers on first line’ is closed to new replies.