...

View Full Version : DIV inside TD



Erindesign
09-26-2006, 11:30 PM
I can't get a DIV to align in the center of a TD. I thought I had it but in browser it doesn't show. I took a look at it in Dreamweaver to see if it had any problems, and it shows up in the center there. Any ideas?

Simple div inside a td..



<table>
<tr>
<td align=center>
<div></div>
</td>
</tr>
</table>

rmedek
09-26-2006, 11:33 PM
What's inside the div? How wide is the div? How wide is the table cell?

And why are you still using tables for layout? ;)

Erindesign
09-27-2006, 12:38 AM
Because when I learned web designing, nobody used Divs. I am too lazy to use divs. For now, I have to hurry and get my website done because my bank is about to kick me out for wasting their Space on the computers.

Once it is up and running, I will begin designing a new layout and take my time with the design.

Divs are more complicated. I still don't get why I should use them over tables, when I work with tables very, very easily.

Anyway, on my original question, I fixed it... ...soft of. wrap the divs in another div and align=center on the wrapper. Poor man's way of doing things.

rmedek
09-27-2006, 12:53 AM
Well, that's why I asked you the other questions too. To help show you how to center a div.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum