WordPress.org

Ready to get started?Download WordPress

Forums

Images have grey boxes (4 posts)

  1. webb111
    Member
    Posted 3 years ago #

    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

  2. @mercime
    Volunteer Moderator
    Posted 3 years ago #

    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.

  3. webb111
    Member
    Posted 3 years ago #

    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~!

  4. @mercime
    Volunteer Moderator
    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic