Click here to get back home

Spacing between menu items.

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Spacing between menu items. Doug Laidlaw 11-18-2005
Get Chitika Premium
Posted by Doug Laidlaw on November 18, 2005, 11:17 pm
Please log in for more thread options


At http://www.douglaidlaw.net/boykett/index.html I have a menu of buttons
generated by a "self-serve" Web site. As originally supplied, all the
buttons were in a block, hard up against each other. Now they are spaced
out. I have tried using the "margin" CSS variable set to 0, but I can't
have the syntax correct, because NVU keeps deleting what I write.

Am I on the right track, or do I need to try something different?

I do intend to implement sans serif fonts. At the moment Firefox gives me
Times font by default, and Konqueror gives me Verdana or similar.

Thanks,

Doug.
--
Registered Linux User No. 277548. My true email address has hotkey for
myaccess.
To know the road ahead, ask those coming back.
- Chinese Proverb.


Posted by Els on November 18, 2005, 1:46 pm
Please log in for more thread options


Doug Laidlaw wrote:

> At http://www.douglaidlaw.net/boykett/index.html I have a menu of buttons
> generated by a "self-serve" Web site. As originally supplied, all the
> buttons were in a block, hard up against each other. Now they are spaced
> out. I have tried using the "margin" CSS variable set to 0, but I can't
> have the syntax correct, because NVU keeps deleting what I write.
>
> Am I on the right track, or do I need to try something different?

What happens if you add this bit of code in the <head>:

<style type="text/css">
img
</style>

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Now playing: The Cult - She Sells Sanctuary (Long Version)

Posted by Doug Laidlaw on November 19, 2005, 3:23 pm
Please log in for more thread options


Els wrote:

> Doug Laidlaw wrote:
>
>> At http://www.douglaidlaw.net/boykett/index.html I have a menu of buttons
>> generated by a "self-serve" Web site. As originally supplied, all the
>> buttons were in a block, hard up against each other. Now they are spaced
>> out. I have tried using the "margin" CSS variable set to 0, but I can't
>> have the syntax correct, because NVU keeps deleting what I write.
>>
>> Am I on the right track, or do I need to try something different?
>
> What happens if you add this bit of code in the <head>:
>
> <style type="text/css">
> img
> </style>
>

It didn't seem to make any difference. The last item, which I made myself
and added, was hard up against the others, but had no <br> tag before it.
Stripping all the <br> tags fixed the spacing, but I expected that to make
the buttons try to align horizontally?

Doug.
--
Registered Linux User No. 277548. My true email address has hotkey for
myaccess.
Live as if your were to die tomorrow. Learn as if you were to live forever.
- Mahatma Gandhi.


Posted by Els on November 19, 2005, 11:35 am
Please log in for more thread options


Doug Laidlaw wrote:

> Stripping all the <br> tags fixed the spacing, but I expected that to make
> the buttons try to align horizontally?

Not if the TD width is limited. Images wrap just like text. Maybe the
<br>s were the problem because the TD width was too narrow to have
them after each image?

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -

Posted by Doug Laidlaw on November 20, 2005, 3:44 am
Please log in for more thread options


Els wrote:

> Doug Laidlaw wrote:
>
>> Stripping all the <br> tags fixed the spacing, but I expected that to
>> make the buttons try to align horizontally?
>
> Not if the TD width is limited. Images wrap just like text. Maybe the
> <br>s were the problem because the TD width was too narrow to have
> them after each image?
>
That is probably the reason. I thought that the <br> tag was simply a
direction, and didn't itself take up any space at all, so I made the width
of the column equal to the width of a button. Things have certainly been
tightened up. I still recall the days when the table proportions would
ignore the stated dimensions and adjust themselves to accommodate the
images. At one stage within the last few days I had the opposite: the
picture of the ship was only half displayed because it was cut off at the
right-hand edge of the cell.

Thanks for all your help.

Doug.
--
Registered Linux User No. 277548. My true email address has hotkey for
myaccess.
It takes both sunshine and rain to make a rainbow.
- Caption to a motivational picture.


Similar ThreadsPosted
How to increase vertical spacing of items within a ? January 10, 2007, 12:55 am
Max Number of items in a Selection box February 15, 2005, 9:49 pm
Centering left-floated items - how? Please help! December 5, 2006, 4:08 am
[css] Anyways to get unordered list items to take up just as much space as they need? August 21, 2008, 3:18 pm
shopping cart items page with several 'remove' buttons June 16, 2006, 12:13 pm
Row spacing May 13, 2005, 1:22 pm
Spacing after

needs to be compressed

November 12, 2004, 2:03 pm
Way to have spacing between cells *only*? March 24, 2005, 9:37 pm
Spacing in a Table September 26, 2005, 6:33 pm
Spacing in IE and Firefox is different January 9, 2008, 3:44 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap