SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Spacing images

  1. #1
    SitePoint Wizard subnet_rx's Avatar
    Join Date
    Aug 2001
    Location
    Hattiesburg, MS
    Posts
    1,085
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Spacing images

    How do you put spaces in between images in a div? And how do you left justify or right justify images?

  2. #2
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,529
    Mentioned
    182 Post(s)
    Tagged
    6 Thread(s)
    Hi,

    You can use margin or padding to space your images. Put either padding on the div or give the images a margin. Either will work in modern browsers.

    Code:
    img {margin:0 5px}
    Paul


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •