space between image and text (or image) in box

Discussion in 'CSS' started by cees, Feb 15, 2009.

  1. #1
    hi there folks,

    im workin on a website. i try to do it with css.
    i made a .box in the sheet. and its working....
    but now my problem. when i put an image in that box, i cant get any space between the image and the text or another image.

    what am i doin wrong?

    please help me,

    thx
     
    cees, Feb 15, 2009 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    You're doing nothing wrong; that's what's supposed to happen. See mysterious gap under images for an explanation and several ways to eliminate it.

    cheers,

    gary
     
    kk5st, Feb 15, 2009 IP
  3. cees

    cees Peon

    Messages:
    45
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thx for thinking with me.... but my problem is how to get a gap between the image and the text/image.
    the image himselves is doin fine in the box..... but i want some space between image and text, or between image and image...... and the &nbsp is not the ideal solution.

    thx in advance
     
    cees, Feb 15, 2009 IP
  4. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #4
    I see I misread the problem statement. Have you added margin to the image(s)? Without seeing your markup and stylesheet, it's guesswork to go further.

    cheers,

    gary
     
    kk5st, Feb 15, 2009 IP
  5. cees

    cees Peon

    Messages:
    45
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    hi gary, thx for thinking with me, but i solved it....

    i had to put an extra style tag with floating and padding....

    it's not that nice, but it works...... maybe there will be a shortcut, but i'm happy for this moment.

    cheers
     
    cees, Feb 15, 2009 IP
  6. ranacseruet

    ranacseruet Peon

    Messages:
    302
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #6
    padding & margin setting should help...
     
    ranacseruet, Feb 16, 2009 IP