WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. baridge
    Member
    Posted 1 year 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
    Member
    Posted 1 year ago #

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

  3. baridge
    Member
    Posted 1 year 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. Samuel Wood (Otto)
    Tech Ninja
    Posted 1 year ago #

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

  5. Chandan Kumar
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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