Last post May 14, 2009 08:09 PM by TATWORTH
May 14, 2009 06:43 AM|ankurtandon|LINK
I am using html table and when i stretch different rows or columns auto styles are generated in vs2008....how to stop it? plz help....
May 14, 2009 08:23 AM|Vimpyboy|LINK
Don´t stretch them in VS.
May 14, 2009 05:40 PM|Preston B|LINK
Set the VS IDE for Split View. Drag a 'Table' from the HTML toolbox to your page.
In Design View, select the column for which you want to set the width. In the Properties Pane, scroll down, and, in the 'Width' item set the width as you require. Doing it this way will modify the column property without creating an in-line style. You'll
see the resulting html markup in Code View.
Just a note: Tables are great for 'tabular' data, but are not so good for layout of your page. It is better to use an external (linked) CSS style sheet to create your page layout. Using a linked CSS style sheet will make your pages much easier to modify
and maintain. If you are not familiar with using CSS, I suggest that you head over to
http://www.w3schools.com/default.asp and check out the tutorials. You'll be glad you did.
I hope this helps. If my reply to your post is helpful, please mark as "Answered". Doing so helps others who may have a similar question.
May 14, 2009 08:09 PM|TATWORTH|LINK
>I am using html table and when i stretch different rows or columns auto styles are generated in vs2008....how to stop it? plz help....
Instead of stretching in VS design mode, set say width="99%" as in this example.
<td><asp:TextBox ID="txtInput" runat="server"></asp:TextBox></td>
<td><asp:Button ID="cmdDoSomething" runat="server"
Text="Button" onclick="cmdDoSomething_Click" />
<asp:Label ID="lblOutput" runat="server" Text="Label"></asp:Label>