hspace not working in Firefox

Discussion in 'HTML & Website Design' started by tyankee, Jun 11, 2009.

  1. #1
    Check out http://userw.com/dev2/gardening-videos.html.

    If you use IE, the text next to the videos will show spaces between the video and the text and the text is centered.

    If you use Firefox, the text is right next to the video with no padding.. The code looks something like this:

    <center>
    <table class="content" width="100%">
    <tr>
    <td width="100%"><a href="gardening-videos_o1YhZ3sABBE.html">
    <img border="0" src="http://i.ytimg.com/vi/o1YhZ3sABBE/2.jpg" align="left" alt="Square Foot Gardening Tips April" width="130px" height="97px" hspace="7px" vspace="3px"><b>Square Foot Gardening Tips April</b></a><p style="margin-top: 0; margin-bottom: 0">Patti moreno, the garden girl &amp mel bartholomew of square foot gardening, discuss what gardeners are doing in the month of april. don't forget to visit squarefootgardening.com and gardengirltv.com for more. distributed by tubemogul.
    </p>

    </td>
    </tr>
    </table>
    </center>



    when this code is taken out and put into a test file all by itself, it works fine in Firefox - with the proper spacing next to the image.. I've looked at the CSS and the source code and just can't figure out why there is no spacing..

    All help is greatly appreciated..
     
    tyankee, Jun 11, 2009 IP
  2. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #2
    I'll tell you something. You're using XHTML, or trying to, but things like 'center' and 'hspace' and 'vspace' don't exist in XHTML and were deprecated from HTML last century. In addition, you have 497 HTML errors. Not the worst I've ever seen, but in the top 10 for sure.
     
    drhowarddrfine, Jun 11, 2009 IP
  3. tyankee

    tyankee Well-Known Member

    Messages:
    1,023
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    150
    #3
    wow... and this is the biggest selling website builder software on clickbank that created this.. CWB.. know of anyone who could re-write this.. i'm guessing it's only the index.php file because that's the one that seems to be outdated.. the sylesheet file seems to be ok..
     
    tyankee, Jun 11, 2009 IP
  4. tyankee

    tyankee Well-Known Member

    Messages:
    1,023
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    150
    #4
    that worked great..

    thanks..

    i'm wondering how outdated the rest of the code of this script is also..

     
    tyankee, Jun 11, 2009 IP
  5. frogjy

    frogjy Well-Known Member

    Messages:
    394
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    103
    #5
    why not try css padding and margin?
     
    frogjy, Jun 11, 2009 IP