Solved

table question

Posted on 2011-09-20
4
195 Views
Last Modified: 2012-08-13
When my image is false, whole thing shifts, what I need to do prevent that happening?
table.txt
0
Comment
Question by:1jaws
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 17

Expert Comment

by:sonawanekiran
ID: 36571614
Try this.....

<table width="100%" border="0">
        <tr>
            <td>
               sfddf:
            </td>
            <td>
                <asp:Label ID="sss" runat="server"></asp:Label>
            </td>
            <td valign="top">
                <asp:Image ID="imgStamp" runat="server" ImageUrl="~/images/Stamp.gif" Visible="false" />
            </td>
        </tr>
        <tr>
            <td>
                Name:
            </td>
            <td>
                <asp:Label ID="lblName" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                sdfdsf:
            </td>
            <td>
                <asp:Label ID="dsfsdf" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <hr />
            </td>
        </tr>
        <tr>
            <td>
                sdfsdf:
            </td>
            <td>
                <asp:Label ID="fsdf" runat="server"></asp:Label>
            </td>
            <tr>
                <td>
                    xx:
                </td>
                <td>
                    <asp:Label ID="lblxx" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                    yy:
                </td>
                <td>
                    <asp:Label ID="lblyy" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <hr />
                </td>
            </tr>
            <tr>
                <td>
                    ID:
                </td>
                <td valign="top">
                    <asp:Label ID="lblID" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    gdgd:
                </td>
                <td>
                    <asp:Label ID="lbldfgd" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    trtr:
                </td>
                <td>
                    <asp:Label ID="lblMrtr" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    dgag:
                </td>
                <td>
                    <asp:Label ID="dfgdg" runat="server" />
                </td>
            </tr>
            <tr>
                <td valign="top" >
                   cbcvb:
                    <br />
                </td>
                <td valign="top">
                    <asp:Label runat="server" ID="bcvb"   />
                </td>
            </tr>
    </table>

Open in new window

0
 

Author Comment

by:1jaws
ID: 36571639
didnt work.. with image to visible to true it shows a gap between first row and second row.. and without image, still no change
0
 
LVL 16

Accepted Solution

by:
Easwaran Paramasivam earned 500 total points
ID: 36571640
Specifiy width in term of percentage and provide colspan wherever required. I gave approximate %  below. Change as per your need.

<table width="100%" border="0">
        <tr>
            <td width="10%">
               sfddf:
            </td>
            <td width="30%">
                <asp:Label ID="sss" runat="server"></asp:Label>
            </td>
            <td rowspan="2" valign="top" width="60%">
                <asp:Image ID="imgStamp" runat="server" ImageUrl="~/images/Stamp.gif" Visible="false" />
            </td>
        </tr>
        <tr>
            <td  width="10%">
                Name:
            </td>
            <td colspan="2">
                <asp:Label ID="lblName" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td width="10%">
                sdfdsf:
            </td>
            <td colspan"2">
                <asp:Label ID="dsfsdf" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td colspan="3">
                <hr />
            </td>
        </tr>
        <tr>
            <td widht="10%">
                sdfsdf:
            </td>
            <td colspan=2>
                <asp:Label ID="fsdf" runat="server"></asp:Label>
            </td>
            <tr>
                <td width="10%">
                    xx:
                </td>
                <td colspan=2>
                    <asp:Label ID="lblxx" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td width="10%">
                    yy:
                </td>
                <td colspan=2>
                    <asp:Label ID="lblyy" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td colspan="3">
                    <hr />
                </td>
            </tr>
            <tr>
                <td width="10%">
                    ID:
                </td>
                <td valign="top" colspan=2>
                    <asp:Label ID="lblID" runat="server" />
                </td>
            </tr>
            <tr>
                <td width="10%">
                    gdgd:
                </td>
                <td colspan=2>
                    <asp:Label ID="lbldfgd" runat="server" />
                </td>
            </tr>
            <tr>
                <td width="10%">
                    trtr:
                </td>
                <td colspan=2>
                    <asp:Label ID="lblMrtr" runat="server" />
                </td>
            </tr>
            <tr>
                <td width="10%">
                    dgag:
                </td>
                <td colspan=2>
                    <asp:Label ID="dfgdg" runat="server" />
                </td>
            </tr>
            <tr>
                <td valign="top" width="10%" >
                   cbcvb:
                    <br />
                </td>
                <td valign="top colspan=2">
                    <asp:Label runat="server" ID="bcvb"   />
                </td>
            </tr>
    </table>
0
 

Author Closing Comment

by:1jaws
ID: 36588781
thanks guys!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
c# ftp code 3 56
c#  FTP ftpwebrequest URI invalid 6 47
What are MicroServices? 4 68
input validations, TryUpdateModel and model binding  in asp.net mvc 5 24
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question