VS.NET Removing tags from my code...

Discussion in 'ASP .Net' started by Darren Clark, Jun 8, 2004.

  1. Darren Clark

    Darren Clark Guest

    When i am viewing in the HTML window..
    a portion of my code looks like
    <tr height="1">
    <td style="height:1px; padding:0; margin:0;"
    background="../images/dropdown_bgr.gif"><img src="../images/spaceboy.gif"
    height="1"></td>
    </tr>

    HOWEVER... if i go to the design view... and then back to the HTML view...
    VS.NET removes the style attribute from the code and then leaves
    <tr height="1">
    <td background="../images/dropdown_bgr.gif" height="1"><img
    src="../images/spaceboy.gif" height="1"></td>
    </tr>

    Why is this happening? sure it might not be the most valid HTML but it works
    in all browsers.
    vs.net SHOULD NOT remove it...


    any ideas?
    Darren Clark, Jun 8, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Nathan Sokalski
    Replies:
    2
    Views:
    451
    Scott M.
    Sep 17, 2005
  2. [blu|shark]

    removing useless tags?

    [blu|shark], Jan 12, 2004, in forum: HTML
    Replies:
    7
    Views:
    622
    Barry Pearson
    Jan 13, 2004
  3. Chris  Chiasson
    Replies:
    6
    Views:
    596
    Richard Tobin
    Nov 14, 2006
  4. Replies:
    3
    Views:
    922
    Stefan Behnel
    Jul 28, 2007
  5. Replies:
    0
    Views:
    637
Loading...

Share This Page