WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Image Border Mystery (3 posts)

  1. chaseshumway
    Member
    Posted 4 years ago #

    I've got a bit of a mystery on my hands... well, it's a mystery to me. But to someone who knows their CSS it's probably child's play.

    Several weeks back I removed the borders and background color from the images that appear in our posts on our site. That way the images had zero border with just the caption text centered under them.

    Suddenly today, the borders are back! I haven't the slightest idea why. Nothing has changed. I didn't update anything or upload anything. They've just re-appeared. I've looked through my style sheet until my eyes glazed over and can't figure it out. Since I already removed the borders via the style sheet before and I haven't touched the CSS since then, I don't know why the borders are back.

    My first guess is something with a cache? Maybe on my server? Any help would be appreciated. Thanks in advance.

    Here's my site: http://www.whoaskedyoushow.com

    You'll see our images have a sort of Polaroid border. That's what should not be there.

  2. ClaytonJames
    Member
    Posted 4 years ago #

    It's being created by this in your style sheet;

    .wp-caption {
    border: 1px solid #ddd;
    text-align: center;
    background-color: #f3f3f3;
    padding-top: 4px;
    margin: 10px;
    }

    Change #ddd and #f3f3f3 to reflect any color you want.

  3. chaseshumway
    Member
    Posted 4 years ago #

    Thanks ClaytonJames! I started to play with that before, but thought to myself "that's not it". I should've done it anyway. Thanks again.

Topic Closed

This topic has been closed to new replies.

About this Topic