Solved

table question

Posted on 2011-09-20
4
176 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
  • 2
4 Comments
 
LVL 17

Expert Comment

by:sonawanekiran
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
thanks guys!
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

743 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now