WordPress.org

Ready to get started?Download WordPress

Forums

image layout - spilling over post area (5 posts)

  1. maebyn
    Member
    Posted 6 years ago #

    Hi... I have uploaded an image to a post via the "Add media" image uploader. The image is aligned to one side and the text fills in around it.

    I have a problem when my post is very short... the image "spills over" the post area. I am looking for a solution other than adding line breaks to lengthen the post area to encompass the image...

    Is there a CSS tag for this? Right now my theme has a class for the images with the alignment in the "float" property (e.g., "float: left;")

    Thanks much!

  2. drewactual
    Member
    Posted 6 years ago #

    read this one...

    you can do the same thing to rectify this issue too.

  3. njuptsoz
    Member
    Posted 6 years ago #

    Your post is too long,right?
    The first is to add you post content,then the image will not spill over.
    The other way is to use some JavaScript to control the post's height.

  4. drewactual
    Member
    Posted 6 years ago #

    Your post is too long,right?
    The first is to add you post content,then the image will not spill over.
    The other way is to use some JavaScript to control the post's height.

    Javascript huh? why if you can use css to do a better job?

  5. njuptsoz
    Member
    Posted 5 years ago #

    Javascript huh? why if you can use css to do a better job?

    I agree, but you must think this can be fit most the browses, and JavaScript can do this while CSS not.

Topic Closed

This topic has been closed to new replies.

About this Topic