3 Replies Latest reply on Mar 24, 2010 6:35 AM by osgood_

    Having trouble with spacing

    Adele. C..

      I'm having trouble with regards to unwanted spaces in between rows, have tried everything I can think of. Any Ideas??? would be much appreciated.

        • 1. Re: Having trouble with spacing
          osgood_ Level 8

          Adele. C.. wrote:

           

          I'm having trouble with regards to unwanted spaces in between rows, have tried everything I can think of. Any Ideas??? would be much appreciated.

           

          Any code you can show us?

           

          It's probably either cause by you using shift/enter which causes a <br /> (break tag to appear in your code)

           

          or

           

          It could be the default margin/padding on your <p></p> (paragraph tags). If this is the cause you need to use some css to zero the margin and padding out:

           

          p {

          margin: 0px 0px 0px 0px;

          padding: 0px 0px 0px 0px;

          }

           

          Then add some back in to aquire the space you want

           

          0px 0px 0px 0px above referes to top/right/bottom/left margin/padding

           

          Add the require amount to get the desired results:

           

          10px 0px 5px 0px

          • 2. Re: Having trouble with spacing
            Adele. C.. Level 1

            Thanks, have looked at enters/ soft enters, does't seem to be the problem

             

            Here is the code of the 2 rows I'm struggling to flush align, the first is on top of the other,

             

            <td><a href="index.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image2','','images/buttons/over_01.gif',1)"><img src="images/buttons/up_01.gif" name="Image2" width="109" height="43" border="0" id="Image2" /></a><a href="about_us.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image3','','images/buttons/over_02.gif',1)"><img src="images/buttons/up_02.gif" name="Image3" width="125" height="43" border="0" id="Image3" /></a><a href="products.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image4','','images/buttons/over_03.gif',1)"><img src="images/buttons/up_03.gif" name="Image4" width="148" height="43" border="0" id="Image4" /></a><a href="downloads.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image5','','images/buttons/over_04.gif',1)"><img src="images/buttons/up_04.gif" name="Image5" width="151" height="43" border="0" id="Image5" /></a><a href="clients.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image6','','images/buttons/over_05.gif',1)"><img src="images/buttons/up_05.gif" name="Image6" width="136" height="43" border="0" id="Image6" /></a><a href="login.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image7','','images/buttons/over_06.gif',1)"><img src="images/buttons/up_06.gif" name="Image7" width="120" height="43" border="0" id="Image7" /></a><a href="contact_us.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image8','','images/buttons/over_07.gif',1)"><img src="images/buttons/up_07.gif" name="Image8" width="131" height="43" border="0" id="Image8" /></a></td>

              </tr>

              <tr>

                <td height="1"><img src="images/content-bg-top.jpg" width="920" height="13" align="top" /></td>

              </tr>

             

            as you can see no break tags, have also double checked the margins and padding..

            • 3. Re: Having trouble with spacing
              osgood_ Level 8

              Adele. C.. wrote:

               

              Thanks, have looked at enters/ soft enters, does't seem to be the problem

               

              Here is the code of the 2 rows I'm struggling to flush align, the first is on top of the other,

               

               

               

              <td><a href="index.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image2','','images/buttons/over_01.gif',1)"><img src="images/buttons/up_01.gif" name="Image2" width="109" height="43" border="0" id="Image2" /></a><a href="about_us.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image3','','images/buttons/over_02.gif',1)"><img src="images/buttons/up_02.gif" name="Image3" width="125" height="43" border="0" id="Image3" /></a><a href="products.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image4','','images/buttons/over_03.gif',1)"><img src="images/buttons/up_03.gif" name="Image4" width="148" height="43" border="0" id="Image4" /></a><a href="downloads.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image5','','images/buttons/over_04.gif',1)"><img src="images/buttons/up_04.gif" name="Image5" width="151" height="43" border="0" id="Image5" /></a><a href="clients.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image6','','images/buttons/over_05.gif',1)"><img src="images/buttons/up_05.gif" name="Image6" width="136" height="43" border="0" id="Image6" /></a><a href="login.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image7','','images/buttons/over_06.gif',1)"><img src="images/buttons/up_06.gif" name="Image7" width="120" height="43" border="0" id="Image7" /></a><a href="contact_us.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image8','','images/buttons/over_07.gif',1)"><img src="images/buttons/up_07.gif" name="Image8" width="131" height="43" border="0" id="Image8" /></a></td>

                </tr>

                <tr>

                  <td height="1"><img src="images/content-bg-top.jpg" width="920" height="13" align="top" /></td>

                </tr>

               

              as you can see no break tags, have also double checked the margins and padding..

              Please upload the page somewhere and supply a link, then describe what the problem is.

               

              Its almost impossible to understand what it is you are trying to do or have problems with unless one can see the whole picture. Parts of the code are not helpful.