Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-30-2002, 01:49 AM   PM User | #1
zoobie
Senior Coder

 
Join Date: Jun 2002
Location: ColoRockyz
Posts: 1,642
Thanks: 1
Thanked 0 Times in 0 Posts
zoobie has a little shameless behaviour in the past
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
zoobie is offline   Reply With Quote
Old 06-30-2002, 02:16 AM   PM User | #2
BroChris
Regular Coder

 
Join Date: Jun 2002
Location: Louisville, KY
Posts: 279
Thanks: 0
Thanked 0 Times in 0 Posts
BroChris is an unknown quantity at this point
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.
BroChris is offline   Reply With Quote
Old 06-30-2002, 03:43 AM   PM User | #3
zoobie
Senior Coder

 
Join Date: Jun 2002
Location: ColoRockyz
Posts: 1,642
Thanks: 1
Thanked 0 Times in 0 Posts
zoobie has a little shameless behaviour in the past
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 03:46 AM..
zoobie is offline   Reply With Quote
Old 06-30-2002, 04:20 AM   PM User | #4
BroChris
Regular Coder

 
Join Date: Jun 2002
Location: Louisville, KY
Posts: 279
Thanks: 0
Thanked 0 Times in 0 Posts
BroChris is an unknown quantity at this point
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.
BroChris is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:14 AM.


Advertisement
Log in to turn off these ads.