WordPress.org

Ready to get started?Download WordPress

Forums

Turning off borders around graphics? (4 posts)

  1. hilstudio
    Member
    Posted 4 years ago #

    I upgraded from 2.7 to 2.9 last night, and noticed today that my graphics have borders around them. I can't find where to turn this on or off.
    http://www.hildebrandstudio.com/blog/

    Can someone point me to where this gets done? Or is it in style.css somewhere?

    Thanks!

    Ron

  2. alchymyth
    The Sweeper & Moderator
    Posted 4 years ago #

    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.

  3. esmi
    Theme Diva & Forum Moderator
    Posted 4 years ago #

    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.

  4. hilstudio
    Member
    Posted 4 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic