[resolved] Images I uploaded used to have a white border (6 posts)

  1. baridge
    Posted 3 years ago #

    I uploaded a bunch of images and wp automatically put white borders around them, which was kind of annoying that the option wasn't there but ok.
    Today I uploaded more images and guess what -no borders, and I cannot figure out how to get one now so that it matches all the other ones. Argh. Help me???

  2. Chandan Kumar
    Posted 3 years ago #

    Check your stylesheet if it is defining border for images Or share your site url.

  3. baridge
    Posted 3 years ago #

    Thank you. I am not sure what you mean. You can view an example at the below url.

    I tried to add my link but it did not work. It is http://norsar911.org/?page_id=23

  4. The images that show a border are ones that you have added a caption to.

  5. Chandan Kumar
    Posted 3 years ago #

    It is because your images have caption text and WordPress defines style for images which have associative caption.

    To remove this:
    1. Open your style.css from your themes folder.
    2. Search term ".wp-caption" and comment your caption style as follows:

    .wp-caption {
    	/*background-color: #f3f3f3;
    	-moz-border-radius: 3px;
    	-webkit-border-radius: 3px;
    	border-radius: 3px;
    	border: 1px solid #ddd;*/
    	margin: 10px;
    	padding-top: 4px;
    	text-align: center;
    	max-width: 490px; /* fit in content_width */
  6. baridge
    Posted 3 years ago #

    Thank you thank you!!! Can't believe it was that easy.

Topic Closed

This topic has been closed to new replies.

About this Topic