Image margins no longer align with text margins (4 posts)

  1. Jason Smith
    Posted 1 year ago #

    I'm using a child theme of TwentyEleven. I had previously used the style sheet to remove the margins on the pages. I liked the way this looked, but I noticed that at some point the margins came back for the images, but not for the text. I'm baffled as to why this is. Does anyone know how to fix this?

    An Example: http://jasonsmitharch.com/work/pixel-studio/


  2. esmi
    Forum Moderator
    Posted 1 year ago #

    Try using Firefox with the Firebug add-on for this kind of CSS troubleshooting. Or use whatever developer tool is available in your web browser.

  3. Jason Smith
    Posted 1 year ago #

    I tried using firebug to inspect the images, and I can see in the html that they are displaying at a width of 700 instead being full width. However i cant see where this number is coming from in the CSS file. I'd really appreciate anyone willing to help me with this, I'm clearly missing something here

  4. mlddev
    Posted 1 year ago #

    What dimensions are your original images? Are you adding them into your post at Full size? or Medium? I see no obvious reason they would be affected by your content width of 970px.

    Just an observation in your theme HTML, and not something I have seen used before is the <center> HTML tag. Not a recommended method. It's much better to allow CSS to style and present your site and keep the HTML structural.

Topic Closed

This topic has been closed to new replies.

About this Topic