Announcement

Collapse
No announcement yet.

HTML advice needed

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    HTML advice needed

    Hello Folks,

    I'm in the process of redesigning my Act_primary but am having a problem getting the tables to display correctly. For some reason I'm getting an unwanted space around the tables.

    The following code for example, produces a cell on my computer that has a gap at the top of the screen and spaces either side of the cell. I'm running Windows XP Pro SP2.

    <table width="100%" cellspacing="0" border="1">
    <tr>
    <td width="100%"> Test </td>
    </tr>
    </table>

    Can anyone see what might be going wrong?

    Hope someone can advise.

    Myles Sinclair
    www.magicalwonders.com

    #2
    Do you have a URL to show us?

    Also you might try explicitly setting cellpadding="0" into the table cell as well.
    http://www.johnsons-seeds.com - Actinic plugins, remote add to cart and custom CMS
    http://www.dtbrownseeds.co.uk - More seeds and plants....
    http://www.mr-fothergills.co.uk - Well it used to be Actinic...

    Comment


      #3
      replace your <body> tag with <body marginwidth=0 leftmargin=0 marginheight=0 topmargin=0>.

      Mike
      -----------------------------------------

      First Tackle - Fly Fishing and Game Angling

      -----------------------------------------

      Comment


        #4
        Hello Dave & Mike,

        I don't have a URL at the moment as I'm trying to get this to work locally on my machine first.

        I've tried the following code which displays as shown in the attached screenshot.

        <table width="100%" cellpadding="0" border="1" marginwidth="0" leftmargin="0" marginheight="0" topmargin="0">
        <tr>
        <td width="100%"> Test </td>
        </tr>
        </table>


        I'm not able to try this out on my other machine running 98 as I'm waiting for a new mouse on that machine! I'm wondering if this is some weird thing to do with SP2.

        I've tried specifying pixel width so that it creates a hoizontal scroll and I still get a space on each side of the cell as well as the top!

        Myles
        Attached Files
        www.magicalwonders.com

        Comment


          #5
          Myles,

          Not in the <table> tag, in your <body> tag. it goes after the </head> tag.

          If you're not already doing so, I'd recommend you get an HTML editor.

          Mike

          Like this:

          <html>
          <head>
          <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
          <title></title>
          <meta name="description" content="">
          <meta name="keywords" content="">
          </head>
          <body marginwidth=0 leftmargin=0 marginheight=0 topmargin=0>

          <table width="100%" cellspacing="0" border="1">
          <tr>
          <td width="100%"> Test </td>
          </tr>
          </table>

          </body>
          </html>
          -----------------------------------------

          First Tackle - Fly Fishing and Game Angling

          -----------------------------------------

          Comment


            #6
            Thanks Mike,

            I can see where I've been going wrong now.

            I've steared away from using an editor so I can learn to hand code html. I suppose an editor would be useful for when I get stuck and can't see where I'm going wrong. My only fear is that I will come to rely on it and then use it all the time.

            I do have Dreamweaver, but the learning curve on that seems bigger than html! Maybe something simpler would be better for me.

            Many thanks for the help.

            Myles
            www.magicalwonders.com

            Comment


              #7
              I hand code my html too, but an HTML editor is handy for the basics like making sure the <body> tag is there, comment tags get closed and things like that.

              I use AceHTML which has served me well for the last few years. It's not expensive and there is a freeware version that's usually one release out of date with some ads when you start it up.

              Mike
              -----------------------------------------

              First Tackle - Fly Fishing and Game Angling

              -----------------------------------------

              Comment


                #8
                HTML Kit is very good (don't think I'm allowed to post URL's - do a Google on it). Also free. Features addins for PHP and other languages + stylesheets.

                The problem is definitely in your <body> tag.
                You can specify body styles in the stylesheet also:

                body {margin:0; padding:0}

                In fact you will probably find that Opera always puts a border around everything, even when set to 0.

                To fix this you use:

                body {margin:-10px; padding:0}

                Usually this also works OK in other browsers (ie, it does not pull it off the screen).
                http://www.johnsons-seeds.com - Actinic plugins, remote add to cart and custom CMS
                http://www.dtbrownseeds.co.uk - More seeds and plants....
                http://www.mr-fothergills.co.uk - Well it used to be Actinic...

                Comment


                  #9
                  Thanks Mike, Thanks Dave,

                  I appreciate the advice. For some reason I didn't get email notification of these last two messages. This has happened once or twice now with previous posts. Does this happen to anyone else?

                  Not a big problem as I usually look at the forum two or three times a day. Although once I battled away for a whole day only to find that Norman had posted a solution the day before!

                  Thanks again for your help.

                  Myles
                  www.magicalwonders.com

                  Comment

                  Working...
                  X