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 4 of 4
  1. #1
    Senior Coder
    Join Date
    Jun 2002
    Location
    ColoRockyz
    Posts
    1,649
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Self-sizing picture frames?

    I'm just wondering about self-sizing picture frames and if they exist.

    I'd like the user to choose any size pic then have it somehow put into a self-adjusting frame (with optional text) that then displays in their browser perfectly framed.

    Possible?

    It's kinda like a html table...The more you put into it, the more it auto-expands.

    Thanks

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    Louisville, KY
    Posts
    281
    Thanks
    2
    Thanked 0 Times in 0 Posts
    what kind of frame to you want it to be? if you just want a solid color, you can specify border=# in the image tag (# being a pixel value).

    If you want a more elaborate border, I suggest making a small image that will tile and setting it as the background of a table, then just put your image in the table. Set the cellpadding=# attribute within the table tag to specify how thick of a border you want.

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    ColoRockyz
    Posts
    1,649
    Thanks
    1
    Thanked 0 Times in 0 Posts
    You mean make a small image and have it tile inside a table border? I'm just concerned with making it look like a picture frame. How about an code example? Thx
    Last edited by zoobie; 06-30-2002 at 04:46 AM.

  • #4
    Regular Coder
    Join Date
    Jun 2002
    Location
    Louisville, KY
    Posts
    281
    Thanks
    2
    Thanked 0 Times in 0 Posts
    I'd make a small image of a wood texture, then make sure that it can tile.

    Code:
    <table background="frame_picture.jpg" cellpadding=10 border=0>
      <tr>
        <td><img src="yourpicture.jpg"></td>
      </tr>
    </table>
    With the code above, the picture frame will be 10 pixels thick. This is the easiest way I can think of. If you want to mess with it, you can also try it this way: create different images for the top, bottom, left, and right sides of the picture frame, and put each in its own table cell as backgrounds. That way you can make it a little more realistic with shading and dimension.


  •  

    Posting Permissions

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