WEB Some quick Wordpress CSS help please

Discussion in 'OT Technology' started by axio, Apr 9, 2008.

  1. axio

    axio New Member

    Joined:
    May 8, 2004
    Messages:
    4,001
    Likes Received:
    0
    Location:
    Houston
    I'm brain farting right now, but does anyone know the CSS code I need to toss into my Wordpress style sheet to display a border around thumbnailed images?

    I tried the following:
    Code:
    .thumbnail a img {
        padding: 1px 1px 1px 1px;
    }
    But it did nothing. Some help is appreciated. :o
     
  2. intrktevo

    intrktevo New Member

    Joined:
    Oct 18, 2004
    Messages:
    5,781
    Likes Received:
    0
    Location:
    UCF
    Code:
    .thumbnail a img {
        padding: 1px 1px 1px 1px;
        border: 20px solid #000;
    }
     
  3. axio

    axio New Member

    Joined:
    May 8, 2004
    Messages:
    4,001
    Likes Received:
    0
    Location:
    Houston
    Thanks, but I mean I just want it to put a space between where the image is and where the text is - basically, I want to pad it. Right now the text sits flush with the image if I wrap it, I want at least a 1px space around the image all around.
     
  4. kingtoad

    kingtoad OT Supporter

    Joined:
    Sep 2, 2003
    Messages:
    55,923
    Likes Received:
    11
    Location:
    Los Angeles
    Use margin. If you're aligning an image to the left in a blog post and want text to wrap it, attempt something like this.

    Code:
    .thumbnail a img {
      float: left;
      border: 1px solid #000;
      margin: 0px 20px 15px 0px;
    }
    
     

Share This Page