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 6 of 6
  1. #1
    Senior Coder
    Join Date
    May 2004
    Posts
    1,464
    Thanks
    15
    Thanked 0 Times in 0 Posts

    images as border

    Is there anyway in css to make a 10 px image a border for an image?

  • #2
    Regular Coder
    Join Date
    Feb 2005
    Posts
    525
    Thanks
    0
    Thanked 0 Times in 0 Posts
    <img src="image.gif" style="border:10px solid #000000;">



    |||| Change your color here.
    Single Paradox
    My Site (Under construction)

    Not too bad for a 15 year old

  • #3
    Senior Coder
    Join Date
    May 2004
    Posts
    1,464
    Thanks
    15
    Thanked 0 Times in 0 Posts
    no maybe i wasn't clear -- i want to use an image as the border (of the image)

    basically instead of a solid color I want the border to fade in so i was goign to make a 10 px image to put as the border - if this is possible? is it?

  • #4
    Regular Coder
    Join Date
    Feb 2005
    Posts
    525
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Oh, it is but I need to go to school right now.. I'm sorry, if you don't have the answer by later today I'll get you the code.
    Single Paradox
    My Site (Under construction)

    Not too bad for a 15 year old

  • #5
    Senior Coder
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    2,636
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Easiest way would be to make the background you want of the borders, set as a div background and place the image in it.

    <div class="imageborder">
    <img src="blah.jpg" alt="" />
    </div>

    .imageborder { background: url(borders.jpg) no-repeat; padding: 20px }


    That's considering of course that the image size won't change.

  • #6
    Senior Coder
    Join Date
    May 2004
    Posts
    1,464
    Thanks
    15
    Thanked 0 Times in 0 Posts
    thanks -- but pictures do change in size and i wanted to use one css for all---

    is there any other way to do it?


  •  

    Posting Permissions

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