Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 798
  • Last Modified:

TableCell width in IE.

I am trying to set a table cell like this.

      public class SpacerCell:TableCell
      {
            public SpacerCell()
            {
                  this.Width = Unit.Pixel(2);
                  this.Height = Unit.Pixel(25);
                  this.BackColor = Color.White;
                  this.BorderWidth = Unit.Pixel(0);
            }
      }

Although i set the width to 2, it apprears wider than going to an aspx page and setting
<td widht="2" height="25" ......

there is a visible difference.

Any ideas.
0
steve_mick972
Asked:
steve_mick972
  • 2
1 Solution
 
fromerojCommented:
Should not be none.. why don't you verify the html generated code by the aspx?
maybe there is a inherited css?

that is in IE, use menu View->source and look at the generated HTML

Regards
0
 
steve_mick972Author Commented:
this is the generated HTML

<td style="background-color:White;border-width:0px;height:25px;width:2px;">

How is this Different from
<td style="background-color:White;border-width:0px" width="2" height=25">
0
 
fromerojCommented:
there is not difference...
maybe in the table definition..
maybe the others parameters are different  (cellspacing y cellpadding)
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now