WordPress.org

Support

Support » Themes and Templates » Images have grey boxes

Images have grey boxes

  • http://www.ipad2news.co.uk

    if anybody could help me out, i would much appreciate it.

    I am having problems with grey boxes with my images in posts. I have put all the original css in and it still hasnt corrected itself. it never used to do it

    and im not sure what to do?

    regards J.Webb

Viewing 3 replies - 1 through 3 (of 3 total)
  • You have two stylesheets attached to your theme. The grey background is defined in your theme’s style-Default.css file.
    Change:
    #content .single img{background-color:#eee;}
    to
    #content .single img{background-color:#ffffff;}

    When you do that, the spacing around the image becomes too loose. If you want to correct it, open up your theme’s style.css.
    Change:

    img.alignright {
    	padding: 4px;
    	margin: 0 0 2px 7px;
    	display: inline;
    	}
    img.alignleft {
    	padding: 4px;
    	margin: 0 7px 2px 0;
    	display: inline;
    	}

    to

    img.alignright {
    	padding: 0px;
    	margin: 0 0 5px 7px;
    	display: inline;
    	}
    img.alignleft {
    	padding: 0px;
    	margin: 0 7px 5px 0;
    	display: inline;
    	}

    Adjust to taste.

    Hi this has fixed the images padding color, do you know how to changethe top images transparency, when i created it in photoshop the background image was white, it now appears to be grey, could this be CSS related aswell!

    Thank you so much for the above info, much appreciated~!

    You’re welcome. Please be more specific as to Which images you are referring to. I see only jpg images in your post. If you wanted transparency, the image/s should have been saved as gif or png format.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Images have grey boxes’ is closed to new replies.
Skip to toolbar