Web Analytics Made Easy -
StatCounter Alternative to cellspacing (only top/bottom) ? - CodingForum

Announcement

Collapse
No announcement yet.

Alternative to cellspacing (only top/bottom) ?

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

  • Alternative to cellspacing (only top/bottom) ?

    hello there!

    i am building a foldout menu. there is a bgcolor in each cell of the main areas (before the menu folds out). i am using cellspacing=1 in the menu tag to get a 1px white separation line between each cell. so far, so good.

    my problem is: using cellspacing=1, the left side of the menu is no longer aligned with the rest of the page layout, it is 1pixel further to the right. what would be the easiest way to avoid this?

    is there a tag to insert a cell border only on top or bottom so i can get rid of the cellspacing ?

    here the test page:http://www.albint.com/web/geschmay/c...many+(english)
    as you can see, the main menu is one px further to the right as the siblings menu...

    tks a lot in advance for your help
    cheers
    fred
    Last edited by no way; Aug 1, 2005, 07:49 AM.
    Why do sheeps not shrink when it rains ?

  • #2
    You can use margin or padding using CSS. Add this in between your head tags.
    Code:
    <style type="text/css">
    #menu td {
    margin-top:1px;
    margin-bottom:1px;
    }
    </style>
    No need for the cellspacing now. Your menu doesn't look so good in Firefox. And &nbsp should have a ; in it so it should be &nbsp; not &nbsp
    ||||If you are getting paid to do a job, don't ask for help on it!||||

    Comment


    • #3
      thanx aerospace_eng
      was helpfull, although someone gave me an even easier solution: leave everything as is and add
      margin-left:-1px;
      in the .menu line.

      as far as FF is concerned. i must admit we never tried this before
      have downloaded the application and will see what i can do... probably not much

      cu
      fred
      Why do sheeps not shrink when it rains ?

      Comment

      Working...
      X