Results 1 to 5 of 5

Thread: Some small but essential questions

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    May 2002
    Posts
    1,602

    Some small but essential questions

    1) I have added a HTML table to an asp.net page. Howcome the borders are white even though I have set border=0 for the table? I don't want borders!!

    Also, is there a way to get rid of the unnessesary space between images and text in tables? I am having big problems aligning text and webcontrol objects close to each other.. there is always a cemtimeter or so with space... which I can't use

    2)Is the only way to pop up a small info box (MsgBox) in asp.net to use javascript?? Surely there must be a better way...?!?

    kind regards
    Henrik

  2. #2
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    1) can you show your code?

    2) No there isnt a better way.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    May 2002
    Posts
    1,602
    Sure, here is the code for one of my tables, where I get white borders:

    PHP Code:
    <TABLE id="Table2" cellSpacing="2" cellPadding="3" width="358" border="0" style="WIDTH: 358px; HEIGHT: 191px">
                                <
    TR>
                                    <
    TD bgColor="#4a518c">
                                        <
    P align="center"><FONT face="Verdana" color="#efefff" size="2"><STRONG>Logga in på 
                                                    RapportPortalen
    </STRONG></FONT></P>
                                    </
    TD>
                                </
    TR>
                                <
    TR>
                                    <
    TD bgColor="#f7f3f7"></TD>
                                </
    TR>
                                <
    TR>
                                    <
    TD align="left" bgColor="#f7f3f7">
                                        <
    TABLE id="Table3" cellSpacing="2" cellPadding="2" width="300" border="0">
                                            <
    TR>
                                                <
    TD><FONT face="Verdana" size="2"><STRONG>Användarnamn:</STRONG></FONT></TD>
                                                <
    TD>
                                                    <
    asp:TextBox id="TextBox1" runat="server"></asp:TextBox></TD>
                                            </
    TR>
                                            <
    TR>
                                                <
    TD><FONT face="Verdana" size="2"><STRONG>Lösenord:</STRONG></FONT></TD>
                                                <
    TD>
                                                    <
    asp:TextBox id="TextBox2" runat="server" TextMode="Password"></asp:TextBox></TD>
                                            </
    TR>
                                        </
    TABLE>
                                    </
    TD>
                                </
    TR>
                                <
    TR>
                                    <
    TD bgColor="#f7f3f7" align="middle">
                                        <
    asp:Button id="Button1" runat="server" Text="Logga in"></asp:Button></TD>
                                </
    TR>
                                <
    TR>
                                    <
    TD bgColor="#f7f3f7"><FONT face="Verdana" size="1"><STRONG>Du måste ha ett konto innan du 
                                                kan logga in
    </STRONG></FONT></TD>
                                </
    TR>
                            </
    TABLE

  4. #4

    Thread Starter
    Frenzied Member
    Join Date
    May 2002
    Posts
    1,602
    Anyone? I have presented the HTML code that is produced...
    I am still getting white visible borders.... with this code :/



    kind regards
    Henrik

  5. #5
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    set your cellSpacing & cellPadding to 0..
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width