Html Tables question?
Hey, for tables in html how do you make them right by each other like at:
www.lockergnome.com/
I'm a newbie at html/php so please teach me something :)
And sence it made by divs can someone teach me how to do it witch divs?
Public Comments
- That site is actually not using tables. It's using divs positioned with CSS.
- they are not using tables . they are using CSS but anyway you can nest tables inside each others like the below example <html><body> < table cellpadding=10 cellspacing=10 border=1 width=100% height=100%> <tr> <td><table><tr><td>table1</td></tr><table></td> <td><table><tr><td>table2</td></tr><table></td> <td><table><tr><td>table2</td></tr><table></td> </tr> < / table > </body> </html>
- something like <table cellpadding=7 cellspacing=5 border=1 width=100%> <tr> <td width=450>ALL YOUR LEFT AREA CODE GOES HERE</td> <td width=100>ALL YOUR MIDDLE AREA CODE GOES HERE</td> <td width=100>ALL YOUR RIGHT AREA CODE GOES HERE</td> </tr> </table> --------------------------- Or, using CSS <span style="position: absolute; left: 0; top:200; width: 400"> ALL YOUR LEFT AREA CODE GOES HERE <span> <span style="position: absolute; left: 450; top:200; width: 80"> ALL YOUR MIDDLE AREA CODE GOES HERE </span> <span style="position: absolute; left: 550; top:200; width: 80"> ALL YOUR RIGHT AREA CODE GOES HERE </span> ----------------------------- Whichever seems most logical to you: neither are very hard. BTW, you can use the tag DIV instead of SPAN IE <div style="position: absolute; left: 550; top:200; width: 80"> ALL YOUR RIGHT AREA CODE GOES HERE </div>
- Hi there, CSS is Cascading Style Sheet. Jump on over to webmonkey.com. Tutorials for html. I do not know if they show how to do linear tables, but they do show the regular ones.
Powered by Yahoo! Answers