TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 195,994
  • Total Topics: 21,325
  • Online today: 777
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 89
  • Total: 89

How to I chance the size of a center Box

Started by bogo, April 20, 2007, 12:05:33 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bogo

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.


Zetan

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.

bogo


Resident Geek

*Grumbles something about Zetan beating the Geek again*

Zetan

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.

bogo

<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

Zetan

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.



bogo

I did Zetan  ;)
But like I said doesn't prevent the refresh behavior.

Zetan

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

This website is proudly hosted on Crocweb Cloud Website Hosting.