WordPress.org

Support

Support » How-To and Troubleshooting » Turning off borders around graphics?

Turning off borders around graphics?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Michael

    @alchymyth

    Forum Moderator

    style.css of your theme, half way down:

    .main_post img {
    
      background: #A4B7D0;
    
      border: 1px solid black;
    
      padding:3px;
    
      margin-left: 4px;
    
      margin-right: 4px;
    
    }

    the ‘border’ done by two things:

    1. border: 1px solid black; (which you wouldn’t see)
    and
    2. padding:3px; together with background: #A4B7D0;

    change what you need.

    esmi

    @esmi

    Forum Moderator

    Remove padding:3px; from:

    main_post img {
    background:none repeat scroll 0 0 #A4B7D0;
    border:1px solid black;
    margin-left:4px;
    margin-right:4px;
    padding:3px;
    }

    in style.css.

    Thank you alchymyth and esmi! No border, black background and no padding should take care of it…

    I thought it might be in style.css, but when I open this in Notepad, it’s all run together in one big block of text, so is really difficult to search–especially when I don’t know the text string I’m looking for! Giving me the precise text was a big help! I’m a little shy of experimenting with what little I do know, too, ever since I changed something once in a style sheet that gave me a totally white screen!

    Ron

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Turning off borders around graphics?’ is closed to new replies.
Skip to toolbar