What's new

dreamweaver help

hmmm nah i'll explain more.

I have one table which is 1 column wide and 2 rows.
Then in those rows I have another couple of tables.

These sub tables are vertically aligned in the cell, But I want the main major table to the vertically aligned on the background. See I can't just say be 50 pixels down the page, coz everyones monitor is different. If there's a way to say "center this main table in the person's browser" then that's what I want to do.
 
OOOO!! Me me me!

First off you make the table height="100%" Then you add a row to the top and to the bottom of the page. Should be <tr> You don't need to add any dimensions to them at all. And it will put the table right where you want it.

For (lots) of examples just click on my website in my signature and use view source.

Reaaaly basic example:
<table height="100%">
<tr></tr>
< rest of the table >
<tr></tr>
</table>
 
Sweet! Thanks so much Jadin.

Ferny had helped me to find another way to do it, but it's a bit more complicated than this way. I'll try that.... and no doubt, be back with more questions soon.
 
Hmmm I tried both of those ideas and neither of them worked.

I'm going to try this idea of detecting a user's res and then sending them to a different home page based on that. Then it's just up to me to make the different home pages to suit their screens.

But that's a bit of a ***** to do for all the pages in the website. hmm so maybe I won't do it after all. Any other ideas?
 
Hmmm I've never had a problem with it. Does it work on my website for you?

You might have to make an actual cell for it with <td>:

<table height="100%">
<tr>
<td colspan="10">&nbsp;</td>
</tr>
Rest of the table
<tr>
<td colspan="10">&nbsp;</td>
</tr>
</table>

Set colspan to the max number of cells that are in your table in any single row. (hope that makes sense - like if one row has 3 cells, and another has 5, you'd set colspan to 5.)

If that still doesn't work I used to do it like this (but I think the above should do it):

<table height="100%">
<tr height="40%">
<td colspan="10">&nbsp;</td>
</tr>
Rest of the table
<tr height="40%">
<td colspan="10">&nbsp;</td>
</tr>
</table>
 
And for the record doing a detect and sending them to different pages quadruples your workload. Not just at the first version, but every single time you make a change. It's much better to just make it adjust on it's own, but I think you already understand that.
 
The first thing I always do if I want to center a website is make a table with 1 row and 1 column, basically just 1 cell. Set it's height and width to 100%, and align to center, then work from there.
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

New Topics

Back
Top Bottom