TinyPortal

Development => Support => Topic started by: bogo on April 20, 2007, 12:05:33 PM

Title: How to I chance the size of a center Box
Post by: bogo on April 20, 2007, 12:05:33 PM
I would like to have a bigger (Height) Box in order to show via iframe the flash chat there.

If I using a phpbox then I see only a small part of the chat windows.

Title: Re: How to I chance the size of a center Box
Post by: Zetan on April 20, 2007, 12:18:24 PM
Try putting the frame in a table:


<table border="1">
<td valign="top/left/center/right" width="120" height"500">
<iframe>

Content

</iframe>
</td>
</table>


Play with it a bit till you get what you need. Change the border to "0" when you are happy with it to turn the table border off.
You may need to include a row < tr> </ tr > no spaces.
Title: Re: How to I chance the size of a center Box
Post by: bogo on April 20, 2007, 01:21:26 PM
Many thanks
It works like a charm ....
Title: Re: How to I chance the size of a center Box
Post by: Resident Geek on April 20, 2007, 01:29:22 PM
*Grumbles something about Zetan beating the Geek again*
Title: Re: How to I chance the size of a center Box
Post by: Zetan on April 20, 2007, 01:50:34 PM
lol... sorry, didn't realise there was a contest    ??? ;)  :P

<iframe name="frame1"  style="background-color="#222222" width="100" height="80" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>

I don't know if your frame has sizes already inline, and I can't remember if the frame alone would increase the block height. You could try experimenting.
Title: Re: How to I chance the size of a center Box
Post by: bogo on April 20, 2007, 08:06:03 PM
<body>
<table border="0">
<tr></ tr>
<td valign="top/left/center/right" width="700" height="300">
<iframe frameborder="0" height="100%" src="http://www.my_domain.com/chat/flashchat.php" style="width: 100%; margin: 0; padding: 0; border: 0; overflow: hidden;" scrolling="yes" border="0"></iframe>'
</td>
</table>
</body>


Thats the way I did it and it even works. Well, kind of works 'cause after the coding I realize that it was a silly idea. Doing it this way you end up by every refresh (e.g. user clicks on a link inside the forum) do get log-out of the chat and after die refresh you get log-in again.
Thats 'cause the whole HMTL site gets refreshed - and as far as I know there is no way out but open a new child window for the chat.

Thanks again for your help guys
Title: Re: How to I chance the size of a center Box
Post by: Zetan on April 20, 2007, 08:10:59 PM
Okay.. I should have made this part clearer:

<td valign="top/left/center/right" width="700" height="300">

Select a position, I didn't make that part clear. Either, Top, left, center, or right. Not all of them.


Title: Re: How to I chance the size of a center Box
Post by: bogo on April 20, 2007, 08:42:23 PM
I did Zetan  ;)
But like I said doesn't prevent the refresh behavior.
Title: Re: How to I chance the size of a center Box
Post by: Zetan on April 20, 2007, 08:56:21 PM
I'm not sure which chat you are using.. but it works for me inside an Article.
A new window is opened. You are welcome to take a look.. you will automatically join, Requires Java.

http://labradio.co.uk/index.php?page=3