Showing posts with label sizing. Show all posts
Showing posts with label sizing. Show all posts

Saturday, March 31, 2012

table sizing

I am in my second chapter of trying to learn asp.net and I have my first issue. I am working on an example that asks that I create a HTML table 4x2(RxC) via the web matrix interface. I am not using web matirx, I am with the Visual.NET IDE.
I have inserted a table on the webForm via the HTML tool box, the one under components, and I can not create the 4x2 table. Each time I change the Rows to 4, it keeps getting changed back to 2 when I apply the change.
Why?Vs 03 is notorious for screwing up html code.
Best bet do this:
<table>
<tr>
<td>
</td>
<td>
</td>
</tr>
<tr>
<td>
</td>
<td>
</td>
</tr>
<tr>
<td>
</td>
<td>
</td>
</tr>
<tr>
<td>
</td>
<td>
</td>
</tr>
</table>
Alternativly i think theres an insert table command on the menu for vs03, which should let you specify 4x2 and insert you a new table.
Or if the book is working from Web Matrix then maybe you should too, after all its a free download from this site :)
Hope this helps,
Andrew
You may be better off using the web form table, not the one on the html portion of the toolbox.
Use the table menu in the top menu bar.
Zath
Thanks, I am learning quickly the quirks of VS.
Thanks.

Table Sizing

Hi All,

I have a table with three columns but I want to make the left had column a fixed width?

Is this possible?

For example if the table is 300 pixels wide

I want column 1 to be 50 pixlels and column 2 & 3 125 pixles each!

anyone any ideas?

cheers

Tonyspecify width in pixels for first column, then percentage for other 2


<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="50"> </td>
<td width="33%"> </td>
<td width="33%"> </td>
</tr>
</table
or size everything

<table width="300" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="50"> </td>
<td width="125"> </td>
<td width="125"> </td>
</tr>
</table>

Is that what you meant ??
col1:
width = 15%

col2 and col3
width = 42%

is that what you ment?

otherwise if you wanted col1 to always be 50 pixels

col1:
width = 50

withis the second column nest a table with two columns of width = %50

try that and tell me how it works