Support » Fixing WordPress » Image placement question

  • I’ve got three separate image files that I’m trying to meet up against one another, but for some reason, they’re leaving a gap between each one? Here’s a link to the page and you’ll notice them at the bottom directly under the Made in America portion.

    http://www.thegalleysink.com/about-temp/

    I’ve tried making modifications to the code for each image, but the gabs between each are still there. Any ideas? Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You need to use “float” in the CSS for those images – you should be able to set the alignment to left when you insert the images. Also, don’t use inline (or deprecated) CSS – it makes it much harder to control things on your site.

    See: http://codex.wordpress.org/Wrapping_Text_Around_Images

    That same CSS will put images next to each other – then use CSS to remove any margins…

    You may have better luck putting those images in a div and adding CSS:

    <div id="div1">
      put the content in here
    </div>

    CSS:

    #div1 img {
       float: left;
       margin: 0;
    }

    Thread Starter Drew75

    (@drew75)

    Thank you. The CSS code you provided needs to be added to the themes style.css file, in addition to the <div></div> code you provided to go with the images’ code on the page?

    Yes the div goes in the page HTML code. The CSS should go in a CSS file – but per the note in the theme’s style.css file, you should not change that file:

    /* --- [ YOU SHOULD NOT CHANGE THIS FILE. Make style changes on the Theme Settings page or on custom.css ] --- */

    Any changes you make to any theme files will be overwritten and lost when the theme is updated. You can instead use a Child Theme or custom CSS.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Image placement question’ is closed to new replies.