Margin/ padding for pictures - Small Problem, Would Be Grateful For Help!

Discussion in 'HTML & Website Design' started by Zhu, May 14, 2010.

  1. #1
    Hey guys,

    I have a small problem with the margins/ padding around my images on this page: http://correresmidestino.com/snapshots/

    It's driving me crazy! I don't know why, the border is not exactly around the pictures. I tried to figure this out looking at the CSS but I guess I'm braindead - I can't :eek:

    I'd be grateful for any help if someone has a minute!
     
    Zhu, May 14, 2010 IP
  2. swashata

    swashata Member

    Messages:
    86
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    43
    #2
    Ahoy! You have padding for both the div wrapping the thumbnail and the thumbnail itself! There are two possible solution...

    Solution 1:
    At line 667 of style.css file, you will see codes something like this:
    #pageblog img, .pageblog a img {
    border:0 solid #CCCCCC;
    margin:0 10px 5px 0;
    padding:2px;
    }
    Code (markup):
    Change it to:
    #pageblog img, .pageblog a img {
    border:0 solid #CCCCCC;
    margin:0 10px 5px 0;
    [B]padding: [B]0[/B];[/B]
    }
    Code (markup):
    Solution 2:
    Add the following line code at the end of your style.css file:
    
    #photostream div.flickr-thumb {
     height: 79px !important;
     width: 79px !important;
    }
    Code (markup):
    The choice is yours! ;) :cool:
     
    swashata, May 15, 2010 IP
  3. Zhu

    Zhu Well-Known Member

    Messages:
    323
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    128
    #3
    Thank you so much for the explanation and the fix. I appreciate it!

    I went for the second solution (who doesn't like copy and paste? ;-)) and it worked like a charm. Phew...!
     
    Zhu, May 15, 2010 IP
  4. swashata

    swashata Member

    Messages:
    86
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    43
    #4
    You are most welcome! Note that the second solution overrides the default flickr CSS [Nothing to worry about though!]
     
    swashata, May 15, 2010 IP
  5. Zhu

    Zhu Well-Known Member

    Messages:
    323
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    128
    #5
    I contradicted myself, I actually switched to picking the first solution (otherwise I still had problem with the other thumbnails on the pics page). Anyway, it worked great!
     
    Zhu, May 16, 2010 IP