Adding a border next to an image...

Discussion in 'HTML & Website Design' started by Crynos, Aug 22, 2006.

  1. #1
    Ok, ive got my site, arcadedirect.net. What i want to do is add a thin black line that goes down and seperates all the pictures from the adsense. How would i go about doing this?
     
    Crynos, Aug 22, 2006 IP
  2. Radovan_III

    Radovan_III Peon

    Messages:
    46
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    <img src="path" border="1">
     
    Radovan_III, Aug 22, 2006 IP
  3. Crynos

    Crynos Peon

    Messages:
    733
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thanks, but i only want it on the right side and like a little bit away from the image, is that possible? (i think it should be doing this with the code i have, but for some reason it isnt)
     
    Crynos, Aug 22, 2006 IP
  4. Gordaen

    Gordaen Peon

    Messages:
    277
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Either put the pictures or the adsense into a div (you can use multiple ones for grouping if you'd like). In the div do something like <div style="border-right: 1px solid black;">stuff here</div>

    The 1px can be in any units (such as em) or certain words like "thin"
    Solid is probably what you are going for but you can also do double, dashed, dotted, etc.
    Black can obviously be any regular html color or a hex value (like "#354275").

    Hope that makes sense
     
    Gordaen, Aug 22, 2006 IP
  5. ih82lose

    ih82lose Active Member

    Messages:
    377
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    60
    #5
    I belive you might have forgotten to include your style sheet in the header:

    <link rel="stylesheet" type="text/css" href="style.css" />
     
    ih82lose, Aug 22, 2006 IP
  6. Crynos

    Crynos Peon

    Messages:
    733
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Ahh, that works, thanks so much :)
     
    Crynos, Aug 22, 2006 IP