Jump to content

[SOLVED] Having issues with valign


blackcell

Recommended Posts

//index.html

<iframe src="top.php"> <---- Needs the table aligned to the bottom of the iframe or actually to the bottom of top.php (see below).

 

//top.php

<table align="left" width="100%" border="0">

<tr >

<td ><div id="target"></div></td> //<--- I need this table to load at the bottom of the page.

</tr>

</table>

 

Link to comment
Share on other sites

Vertical aligning something like that is kind of hacky. Is everything fixed hight? As in, can you set the height of the iframe? Because then you can set the table to have the same height, and then put a valign (or css vertical-align) on the td.

Link to comment
Share on other sites

  • 2 weeks later...

Nothing displayed  ???

 

However I would agree with the above mentioned. I'm not sure why you need the send button in an iframe (or why you even need one using ajax) but it would be best to keep the send button on the stationary page. This way the only thing you would need an iframe for is for the messaging window. I would suggest just using a scrolling div layer however, i have built a chat using php and found it to be easiest. Ajax can update it all the same.

Link to comment
Share on other sites

There not to much different then tables really.

<div style="overflow:scroll;">Content Here</div>

That would give you a div that will scroll. Div layers are good cause you can target them with CSS easily, and create ones that scroll both directions, only 1 direction. Can position them practically anywhere. I would google it if your interested. Might make your project a bit easier.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.