WordPress.org

Ready to get started?Download WordPress

Forums

format the post content (3 posts)

  1. da_silva
    Member
    Posted 7 years ago #

    i want the first image in a post to be centered above the text of the post and i can't do this because wordpress encloses the whole post in a
    so the whole thing gets like this:
    <img src="">texttexttext....text

    So if i write in the css that the div holding the post is text-align:center it centers both the image and the text. i only want the text to be justified which i seem not to be able to do. I would like to get an easier solution than the one i found which hapends to be playing with the apply_filters() function which seems to place the paragraph tags in the post.
    can u give me some advice?

    the second problem is that the above formatting of the post causes IE6 not to show the image at all i don't know why.
    thanks.

  2. da_silva
    Member
    Posted 7 years ago #

    i don't know why some of the words dissapeared, i'll "translate" again the post:

    i want the first image in a post to be centered above the text of the post and i can't do this because wordpress encloses the whole post in a <p></p>
    so the whole thing gets like this:
    <p><img src="">texttexttext....text</p>

    So if i write in the css that the div holding the post is text-align:center it centers both the image and the text. i only want the text to be justified which i seem not to be able to do. I would like to get an easier solution than the one i found which hapends to be playing with the apply_filters() function which seems to place the paragraph tags in the post.
    can u give me some advice?

  3. garus
    Member
    Posted 6 years ago #

    I am having the same problem... :(

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.