Auto remove whitespace from HTML

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • howa

    Auto remove whitespace from HTML

    Consider an example:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
    "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
    <style>
    a { background-color:red;}
    </style>
    </head>
    <body>

    <a href="#">A</a>
    <a href="#">B</a>
    <a href="#">C</a>
    <a href="#">D</a>
    <a href="#">E</a>
    <a href="#">F</a>
    <a href="#">G</a>

    </body>
    </html>


    There are whitespace within each hyperlink, without touching the
    source, is it possible to remove all the whitespaces?

    Thanks.
  • dorayme

    #2
    Re: Auto remove whitespace from HTML

    In article
    <de09cfa9-0684-4627-b986-8ec4cedd6131@1g 2000prf.googleg roups.com>,
    howa <howachen@gmail .comwrote:
    Consider an example:
    >
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
    "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
    <style>
    a { background-color:red;}
    </style>
    </head>
    <body>
    >
    <a href="#">A</a>
    <a href="#">B</a>
    <a href="#">C</a>
    <a href="#">D</a>
    <a href="#">E</a>
    <a href="#">F</a>
    <a href="#">G</a>
    >
    </body>
    </html>
    >
    >
    There are whitespace within each hyperlink, without touching the
    source, is it possible to remove all the whitespaces?
    >
    Thanks.
    Fixing up a few things in your mark up, closest is:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
    "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
    <title>A howa question</title>
    <style type="text/css" media="all">
    a { background-color:red;}
    </style>
    </head>
    <body>
    <div>
    <a href="#">A</a
    ><a href="#">B</a
    ><a href="#">C</a
    ><a href="#">D</a
    ><a href="#">E</a
    ><a href="#">F</a
    ><a href="#">G</a>
    </div>
    </body>
    </html>

    --
    dorayme

    Comment

    • dorayme

      #3
      Re: Auto remove whitespace from HTML

      In article
      <doraymeRidTh is-02AA15.17010114 042008@news-vip.optusnet.co m.au>,
      dorayme <doraymeRidThis @optusnet.com.a uwrote:
      In article
      <de09cfa9-0684-4627-b986-8ec4cedd6131@1g 2000prf.googleg roups.com>,
      howa <howachen@gmail .comwrote:
      >
      Fixing up a few things in your mark up, closest is:
      Or perhaps I should have:

      <http://dorayme.890m.co m/alt/howa589.html>

      --
      dorayme

      Comment

      • howa

        #4
        Re: Auto remove whitespace from HTML

        On 4$B7n(B14$BF |(B, $B2<8a(B3$B; ~(B07$BJ,(B, dorayme <doraymeRidT... @optusnet.com.a uwrote:
        In article
        <doraymeRidTh is-02AA15.17010114 042...@news-vip.optusnet.co m.au>,
        >
        dorayme <doraymeRidT... @optusnet.com.a uwrote:
        In article
        <de09cfa9-0684-4627-b986-8ec4cedd6...@1g 2000prf.googleg roups.com>,
        howa <howac...@gmail .comwrote:
        >
        Fixing up a few things in your mark up, closest is:
        >
        Or perhaps I should have:
        >
        <http://dorayme.890m.co m/alt/howa589.html>
        >
        --
        dorayme

        Thanks.


        Comment

        • Bergamot

          #5
          Re: Auto remove whitespace from HTML

          howa wrote:
          >
          <a href="#">A</a>
          <a href="#">B</a>
          >
          There are whitespace within each hyperlink, without touching the
          source, is it possible to remove all the whitespaces?
          a {float:left}

          BTW, next time post a URL, not code.

          --
          Berg

          Comment

          Working...