• Resolved danf89

    (@danf89)


    Why is it that when I change the following code my image right float property atually shifts the image about a quarter inch too far to the right? It is the Twenty Thirteen theme.

    .entry-header,
    .entry-content,
    .entry-summary,
    .entry-meta {
    	max-width: 1450px;
    }

    What I’m trying to do is increase the content width within the site. When changing that max-width property even a little and then float an image to the right from the page editor, that image is always a quarter inch too far to the right. Any idea what’s going on?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Unless you provide a link to a page demonstrating the problem, no one will be able to offer much in the way of assistance.

    Do not edit the Twenty Thirteen theme. It is the current default WordPress theme and having access to an original, unedited, copy of the theme is vital in many situations. First create a child theme for your changes. Or install a custom CSS plugin.

    Thread Starter danf89

    (@danf89)

    Child theme ?? Give me two moments to grab a link for ya…

    Thread Starter danf89

    (@danf89)

    Here we go: https://dev.theflangroup.com/wpproblem/

    The ONLY thing I did was increase the content width to 960 pixels and upload and right align an image at the top of the content. If you’ll notice the image is shifted to the right a bit. This happens whether I increase the width 100 px or 1000. This is, of course, a child theme.

    Try adding:

    .entry-content img.alignright {
        margin-right:0;
    }

    to your child theme’s CSS. In future, 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.

    Thread Starter danf89

    (@danf89)

    Thank you SOOO much! I use Firebug and Web Developer Toolbar but am new at this and can’t always find the solution to the problem.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Image right float off when increasing content width for Twenty Thirteen theme’ is closed to new replies.