PDA

View Full Version : Fixed Image Size in A Frame


caclark
03-04-2003, 09:08 PM
I am trying to create a very simple page, with the purpose of displaying various family pictures, my problem is that they are not all the same size.

Is it possible to set a "fixed" image size within a frameset?

I have tried setting a width and length within the frame call, but it seems to ignore these values and display the image at its full size anyway, and that usually means the image is larger than the frame display size.

Any help would be greatly appreciated.




My current code below:




<HTML>
<HEAD>
<TITLE>MY IMAGES</TITLE>
</HEAD>
<FRAMESET ROWS="5%,*,5%" FRAME BORDER="2">
<FRAME SRC="header.html" NAME="head" SCROLLING="No">
<FRAMESET FRAME BORDER="2">
<FRAME SRC="cstm_slot.jpg" WIDTH="200" HEIGHT="200" NAME="display" SCROLLING="Auto">
</FRAMESET>
<FRAME SRC="footer.html" NAME="foot" SCROLLING="No">
</FRAMESET>
<NOFRAME>
<h1>Old Browser Version</h1><br>
You ara using an older version of browser that does not support frames.<br>
Please upgrade your browser to Netscape 4.x version or higher.<br>
</NOFRAME>
</HTML>

Spudhead
03-05-2003, 11:31 AM
You're using the image as the actual source of the frame. Put the image in a html page, using an <img> tag, and you can set the height and width to whatever you like.

caclark
03-05-2003, 12:36 PM
Thanks for the suggestion but I already thought of that.
Eventually I will also add an "index Frame" to this page that will drive the "display Frame" but for now I am just working on getting the "display Frame" to display the given image at a fixed size without alot of extra coding.