Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Sep 2006
    Posts
    70
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Simple Border Issue

    I've got an image that I'm trying to had a colored border around. My first question is if I'm better off using HTML or CSS for this. Here's the code I'm working with...

    <div id="tournament_spotlight"><img src="http://img244.imageshack.us/img244/3176/spotlightvv1.jpg "width="109" height="92" border="1" hspace="10" vspace="10"/>
    </div>

    and the css...

    #tournament_spotlight {
    position:absolute;
    background-image: url(http://img301.imageshack.us/img301/1...lightrp2.jpg);
    left:135px;
    top:371px;
    width:409px;
    height:114px;
    }

    I tried using bordercolor="#828282" and even a CSS class to define the border on a separate CSS page, but neither worked. Any idea?
    Last edited by Technique; 10-22-2006 at 11:02 PM.

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,700
    Thanks
    6
    Thanked 1,011 Times in 984 Posts
    Use CSS for that:
    Code:
    #tournament_spotlight img {border: 1px solid #828282;}

  • #3
    New Coder
    Join Date
    Sep 2006
    Posts
    70
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Oh, I was unaware that I'd have to add img after the #tournament_spotlight div. Thanks again VIPStephan.


  •  

    Posting Permissions

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