PDA

View Full Version : Alternative to cellspacing (only top/bottom) ?


no way
08-01-2005, 08:26 AM
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/content.nsf/content/menu+test+-+germany+(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 :D
fred

_Aerospace_Eng_
08-01-2005, 06:16 PM
You can use margin or padding using CSS. Add this in between your head tags.
<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

no way
08-03-2005, 08:35 AM
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 :rolleyes:
have downloaded the application and will see what i can do... probably not much :confused:

cu
fred