WordPress.org

Ready to get started?Download WordPress

Forums

Gallery Images not displaying inline (3 posts)

  1. bmorris110
    Member
    Posted 2 years ago #

    http://www.erichaviv.com/red-epic-iphone-4s-comparison/
    I have 2 galleries inserted, neither will display inline, only stacked.
    I tried using column="3" as well.

    Basically, I need to be able to upload images to the media uploader and create galleries with 3 columns. each thumbnail needs to be 271w x153h.

  2. datdesignguy
    Member
    Posted 2 years ago #

    Hi there,

    It looks like you're going to need to add some definitions to your theme's stylesheet.

    The markup for your gallery uses the DL and DT tags. For this to work, you're going to need to add a rule like:

    dl.gallery-item {
        width: auto;
        display: block;
        float: left;
        margin-right: 1.5em;
    }

    this should allow you to have 3 images per line with approx 21px right margin.

    Try adding the above css to your theme and see what happens :)

  3. bmorris110
    Member
    Posted 2 years ago #

    that did it! thanks!
    (i also made thumbnails a little larger so i could decrease padding)

Topic Closed

This topic has been closed to new replies.

About this Topic