• I’m using the Twenty Fourteen theme. On one of my pages I want to add images on the left side of the content area (menu sidebar is to the left of that) such that the text wraps around the image.

    I have added two images (near the third and fourth H4 tags, if you take a look at the page) and both of the images are being forced behind the left sidebar due to the theme’s -168px margin-left setting on the image’s parent figure element.

    On the linked site page if you use an Element Inspector/FireBug/whatever, you’ll see the image in the code and that it’s way off to the left behind the sidebar.

    I added a class to set the margin to 0px, but I can only set that on the image. I don’t want to select all figure elements to offset that -168px. WP adds an ID to each image, but I don’t want to have to select each and every image ID (unless that’s the only way), so how do I handle this?

    Thanks for anyone’s help.

The topic ‘Can't get CSS to work on an element’ is closed to new replies.