View Full Version : possible to use a percent in positioning?


JDRh4l
02-07-2003, 01:57 AM
Heyas, I was just wondering if it was possible to use a percent while positioning..

See, I have this image on the side, but I have an inline frame on the otherside and would like the size of the inline frame to adjust if a person has a smaller browser..
I tried putting both the pic and the frame in a table, but I couldnt position the image with in the table, as I want it on the bottom left corner exactly..

I have no idea if this is possible, but thanks in advance!




<body bgcolor="#FFFFFF" background="http://www.iamsmeagol.net/yellatme/background.gif">

<img border="0" style="position: absolute; left: 0px; bottom: 0px;" src="http://www.iamsmeagol.net/yellatme/yellatmelogo.gif" width="356" height="450">



<center>
<iframe style="position: absolute; left: 357px; top: 10px; width: *px; height: 500px" src="http://www.iamsmeagol.net/yellatme/inlinepage.html" name="content" width="100%" height="600"
frameborder="0" border="0"></iframe>
</center>

</body>

lefty
02-07-2003, 02:06 AM
Sure, you can use percentages. :) It would look more like this:

<img border="0" style="position: absolute; left: 20%; bottom: 10%;" src="http://www.iamsmeagol.net/yellatme/yellatmelogo.gif" width="356" height="450">

You obviously won't use those numbers, but yeah, percentages are possible (and necessary in some cases).

JDRh4l
02-07-2003, 02:13 AM
Heh, thanks a bunch, I didnt even think of trying it that-the most obvious and easy-way. ^_^;;

One more quick question.. Is it possible to position an image within a table? O_o

lefty
02-07-2003, 02:17 AM
Not that I've found... trust me, I've tried it. ;) Besides aligning an image left or right or whichever, I don't think you can. The way I do it is usually give the image its own cell, but that would only work if you want it to the sides or whichever. But I'm babbling now. :)

JDRh4l
02-07-2003, 02:21 AM
Hehe, okies, thanks again! :)

lefty
02-07-2003, 02:23 AM
No problem :D