Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 8 of 8
  1. #1
    Junior Member
    Join Date
    Jan 2007
    Posts
    12
    Member #
    14739
    Okay I've been trying for hours to put an image border around and image in CSS but i've had no luck, so I tried searching for a turtorial but again no luck lol so if you know how to pleaseeee help
    I have it in 2 files btw 1 .css file and then the .html file
    Thank you!!!:lick:

  2.  

  3. #2
    Senior Member Ferro's Avatar
    Join Date
    Oct 2006
    Location
    UK
    Posts
    386
    Member #
    14204
    Liked
    5 times
    img
    {
    border: #ofpixels style colour
    }

    example:

    img
    {
    border:2px solid blue;
    }

    if the img is in another containing div for example #container then put

    #container img
    {
    border:2px solid blue;
    }

  4. #3
    Junior Member
    Join Date
    Jan 2007
    Posts
    12
    Member #
    14739
    Thanks but what if the the border is another image?

  5. #4
    Junior Member
    Join Date
    Jan 2007
    Posts
    12
    Member #
    14739
    thanks for that code too really appreciate it lots

  6. #5
    Senior Member
    Join Date
    Jun 2005
    Location
    Atlanta, GA
    Posts
    4,146
    Member #
    10263
    Liked
    1 times
    The only real way to achieve a border that is an image in CSS right now is to have a div inside another div, with appropriate margins, and the background of the outer div containing the border. CSS3 is to bring image borders, but currently that's not supported by any browser that I know of.

  7. #6
    Junior Member
    Join Date
    Jan 2007
    Posts
    12
    Member #
    14739
    So is there a way of doing this in CSS http://inobscuro.com/gallery/ ?

  8. #7
    Senior Member Ferro's Avatar
    Join Date
    Oct 2006
    Location
    UK
    Posts
    386
    Member #
    14204
    Liked
    5 times
    My guess is that each one of those is a containing element with that pic frame as a background image.

  9. #8
    Junior Member
    Join Date
    Jan 2007
    Posts
    12
    Member #
    14739
    yeah I think its that too lol but what would the code look like ? >_<


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 12:04 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com