Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. An ASP.Net Question

An ASP.Net Question

Scheduled Pinned Locked Moved ASP.NET
questioncsharpasp-netsysadminhelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • X Offline
    X Offline
    Xiaoming Qian
    wrote on last edited by
    #1

    Hi Everybody: I am a new comer to web development. I have a problem when developing my ASP.Net application.Here is my code: <table id="Header" cellpadding="0" cellspacing="0" border="0" width="100%" runat="server" EnableViewState="False" > <tr> <td valign="top"> <asp:Image EnableViewState="False" GenerateEmptyAlternateText="True" ID="Image1" runat="server" ImageUrl="~/Images/TopLeftCorner.png" Width="6px" Height="6px" /> </td> <td valign="middle" style="background-color: #F1F1F1;width: 100%;"> </td> <td valign="top"> <asp:Image EnableViewState="False" ID="Image2" runat="server" GenerateEmptyAlternateText="True" ImageUrl="~/Images/TopRightCorner.png" Width="6px" Height="6px" /> </td> </tr> </table> <table id="Content" border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td valign="top" style="background-color: #F1F1F1; "> <asp:contentplaceholder id="ContentPlaceHolder1" runat="server"> </asp:contentplaceholder> </td> </tr> </table> <table runat="server" id="Footer" border="0" cellpadding="0" cellspacing="0" width="100%" EnableViewState="False"> <tr> <td valign="top"> <asp:Image EnableViewState="False" GenerateEmptyAlternateText="True" ID="Image14" Height="6px" Width="6px" runat="server" ImageUrl="~/Images/BottomLeftCorner.png" /> </td> <td style="width: 100%; background-color: #F1F1F1;"> </td> <td valign="top"> <asp:Image EnableViewState="False" GenerateEmptyAlternateText="True" ID="Image13" Height="6px" Width="6px" runat="server" ImageUrl="~/Images/BottomRightCorner.png"/> </td> </tr> </table> The display result of these code is: The cells that contain images have a greater height than 6px(that is my images height),and the images diplay in the middle of the cells(vertically). This causes the "Header","Content" and "Footer" be separated.That is what I not want to see. Is there any way? Any ideas will be appropriate.

    P 1 Reply Last reply
    0
    • X Xiaoming Qian

      Hi Everybody: I am a new comer to web development. I have a problem when developing my ASP.Net application.Here is my code: <table id="Header" cellpadding="0" cellspacing="0" border="0" width="100%" runat="server" EnableViewState="False" > <tr> <td valign="top"> <asp:Image EnableViewState="False" GenerateEmptyAlternateText="True" ID="Image1" runat="server" ImageUrl="~/Images/TopLeftCorner.png" Width="6px" Height="6px" /> </td> <td valign="middle" style="background-color: #F1F1F1;width: 100%;"> </td> <td valign="top"> <asp:Image EnableViewState="False" ID="Image2" runat="server" GenerateEmptyAlternateText="True" ImageUrl="~/Images/TopRightCorner.png" Width="6px" Height="6px" /> </td> </tr> </table> <table id="Content" border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td valign="top" style="background-color: #F1F1F1; "> <asp:contentplaceholder id="ContentPlaceHolder1" runat="server"> </asp:contentplaceholder> </td> </tr> </table> <table runat="server" id="Footer" border="0" cellpadding="0" cellspacing="0" width="100%" EnableViewState="False"> <tr> <td valign="top"> <asp:Image EnableViewState="False" GenerateEmptyAlternateText="True" ID="Image14" Height="6px" Width="6px" runat="server" ImageUrl="~/Images/BottomLeftCorner.png" /> </td> <td style="width: 100%; background-color: #F1F1F1;"> </td> <td valign="top"> <asp:Image EnableViewState="False" GenerateEmptyAlternateText="True" ID="Image13" Height="6px" Width="6px" runat="server" ImageUrl="~/Images/BottomRightCorner.png"/> </td> </tr> </table> The display result of these code is: The cells that contain images have a greater height than 6px(that is my images height),and the images diplay in the middle of the cells(vertically). This causes the "Header","Content" and "Footer" be separated.That is what I not want to see. Is there any way? Any ideas will be appropriate.

      P Offline
      P Offline
      Paddy Boyd
      wrote on last edited by
      #2

      Give your table rows a height of 6px. (style="height:6px;") Your question title could use a little work... I reckon we can all figure out this is an asp.net question, given that this is the asp.net questions forum...

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups