Log in

View Full Version : Table Problems



xoblivionxfantasyx
10-13-2006, 07:59 PM
If you use a code that makes your layout a table and the code looks like this:

<style type="text/css">
body {margin:0px}
table {border: outset 1; width:100%}
table td {border:inset 1; vertical-align:top}
table td#MENU {width:150px}

</style>

Then how can you make another table inside your table layout so that it isnt the same with as the layout but a smaller width?

~Thanks~

boxxertrumps
10-13-2006, 09:51 PM
make 2 of the elements you a different styles, but add a new class to the second.

table {css}
table.class2 {width:90%;}

then in your 2nd table's tag add class="class2" (to match the class in your css) so its : <table class="class2">

and i thing its only ~td {css}~ not ~table td {css}~ (im not that good with css)

xoblivionxfantasyx
10-13-2006, 10:49 PM
When i tried your suggestion it made the table i wanted to be inside the table layout inside a new column of the table layout.

boxxertrumps
10-13-2006, 11:40 PM
like this:



<html><head>
<style type="text/css">
body {margin:0px}
table {border: outset 1; width:100%}
table td {border:inset 1; vertical-align:top}
table td#MENU {width:150px}
table.class2 {width:90%}
</style>
</head><body>
<table><tr><td>
<table class="class2">
<tr><td>Content</td></tr>
</table>
</td></tr></table>
</body></html>


if thats not it you would have to post your source to give people a better idea of your webpage. or a link to your webpage.

xoblivionxfantasyx
10-14-2006, 02:32 AM
That works, thank you very much