Can't get two images on the same line?!

Discussion in 'CSS' started by Brandon the Great, Aug 12, 2008.

Thread Status:
Not open for further replies.
  1. #1
    Hi,

    I'm trying to get two images on my sidebar side by side. But when I try, one goes on the next line. I've tried 'clear: none' in the stylesheet, but it's not working.

    Can you please check it out and advise? It's in the sidebar on http://www.dateunknown.com and very noticeable.


    Thank you
     
    Brandon the Great, Aug 12, 2008 IP
  2. ozan

    ozan Peon

    Messages:
    82
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The second image has a huge margin-left. I think you want it to be 8, (169 - 161) not 169. That should fix it. And you can get rid of the 'clear'.
     
    ozan, Aug 12, 2008 IP
  3. Brandon the Great

    Brandon the Great Banned

    Messages:
    170
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #3
    Thanks, but it's still not on the same line!
     
    Brandon the Great, Aug 12, 2008 IP
  4. ozan

    ozan Peon

    Messages:
    82
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Well now you've put the second image into a div which is a block element by default (and so will move to the next free horizontal). Get it out of the div, make it a span, or set display:inline.
     
    ozan, Aug 12, 2008 IP
  5. 007c

    007c Peon

    Messages:
    611
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Actually just putting them in same div should work out.
     
    007c, Aug 12, 2008 IP
Thread Status:
Not open for further replies.