Skip to:
Content
Pages
Categories
Search
Top
Bottom

Whitespace above first image in topic


  • angeljs
    Participant

    @angeljs

    For some reason, if I place an image at the top of a post, I’m left with a huge, white space before it. It doesn’t happen if I add text before an image.

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

  • Robin W
    Moderator

    @robin-w

    hmm – could be a whole host of things

    does this happen with all images?
    Only just started or always been the case or new to using images?
    Just you account or everyone?


    angeljs
    Participant

    @angeljs

    Hi, thanks for replying. After a lot of trial and error, I’ve narrowed it down to a theme issue. I’ve contacted the theme developer to see if he can offer a resolution. 🙂


    Robin W
    Moderator

    @robin-w

    is your forum public? If so post a link and I’ll see if a simple css change is needed


    angeljs
    Participant

    @angeljs

    It is. Here’s a link where you can see the issue:
    https://www.simfansuk.com/wp/forums/topic/english-tea-with-sugah/

    Thank you.


    Robin W
    Moderator

    @robin-w

    your image is using your themes ‘aligncenter’ property, which causes it to display as a new block, so it starts ‘under’ where the author finishes.

    I’m not sure how you are adding images – do you get an option of how to display them, if so don’t do center


    angeljs
    Participant

    @angeljs

    That actually worked, thank you! Do you think there’s a way I could centre the images and have them display correctly?


    Robin W
    Moderator

    @robin-w

    ok, so do you have a plugin adding images (eg GD bbPress Attachments) or how do you do this?


    angeljs
    Participant

    @angeljs

    I do have GD bbPress, and I also use image links from my media files, too.


    Robin W
    Moderator

    @robin-w

    this css should work

    #bbpress-forums div.bbp-topic-content img, #bbpress-forums div.bbp-reply-content img {
    	max-width: 100%;
    	display: block;
    	margin-left: auto;
    	margin-right: auto;
    }

    presume your theme has a custom css area you can put this in ?


    angeljs
    Participant

    @angeljs

    Thank you so much for trying to help, but that didn’t work, unfortunately 🙁


    Robin W
    Moderator

    @robin-w

    is the code still in there – I can’t see it and you seem to have gone back to the original center alignment

Viewing 11 replies - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.
Skip to toolbar