WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Changing the color of image borders (8 posts)

  1. AnnaHavanna
    Member
    Posted 1 year ago #

    Hi,

    I'd like to change the color of image borders from the light grey to my custom dark blue.

    I tried this code in my style.css, but it doesn't work:
    .img.images { border-width: 2px; border-style: solid; border-color: #006699; padding: 3px; margin-bottom: 13px; }

    My site (Twenty Eleven Child Theme):
    http://goo.gl/03sHi

    Thanks!

  2. Tara
    Member
    Posted 1 year ago #

    - Try using tool like Firefox with the Firebug add-on for this kind of CSS work. http://getfirebug.com/

  3. AnnaHavanna
    Member
    Posted 1 year ago #

    I am already using Firebug. I am a newbie and I am learning CSS at the moment. But I cannot figure out what to do. Thanks!

  4. paulwpxp
    Font hero
    Posted 1 year ago #

    img[class*="align"],
    img[class*="wp-image-"],
    #content .gallery .gallery-icon img {
    	border-color: #006699;
    }
  5. Matthew
    Member
    Posted 1 year ago #

    You post CSS codes in the custom CSS box

  6. AnnaHavanna
    Member
    Posted 1 year ago #

    Thanks. While waiting I created a new image class called "teamfotos" and added the following code with similar success:

    img.teamfotos {
    	border: 1px solid #006699;
    	padding:1px;
    	}

    But in both cases I only create a border around my images. My aim is to change the bold light grey background around each image:

    http://apotheke-sauter.de/team/

    Thanks for help!

  7. paulwpxp
    Font hero
    Posted 1 year ago #

    /* caption background color */
    .wp-caption {
    	background-color: blue;
    }
    
    /* caption text color */
    .wp-caption p.wp-caption-text,
    .wp-caption .wp-caption-text:before {
    	color: red;
    }
    
    /* caption image border color */
    .wp-caption img {
    	border-color: pink;
    }
  8. AnnaHavanna
    Member
    Posted 1 year ago #

    Thanks!!!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags