473,791 Members | 2,725 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

extra space in menu

Hello group,

http://people.umass.edu/btrembla/ (html 4.01/strict)

uses a conventional menu marked up as a list, and css

http://people.umass.edu/btrembla/css/brian.css
http://people.umass.edu/btrembla/css/screen.css

to enhance their appearance. I added
li a {display: block}
so that the link would extend across the li element. In MSIE
5.0/Win2k, there is extra space below each li, which goes away if I
remove the li a block declaration. That extra space is not there in
Moz 1.3 nor O7. I can certainly hide it from MSIE using the child
selector, but wanted to know if there was anything else I could do to
remove that extra space.

--
Brian
follow the directions in my address to email me

Jul 20 '05 #1
5 4136
Hi Brian,

Try removing all whitespace surrounding the <a></a> element. For example:

<LI CLASS="menuitem ">
<A HREF="cv.html" TITLE="c.v.">cu rriculum vit&aelig;</A>
</LI>

should become:

<LI CLASS="menuitem "><A HREF="cv.html" TITLE="c.v.">cu rriculum
vit&aelig;</A></LI>

I don't know if this will help or not, but I have found odd little quirks in
IE that were corrected by removing whitespace.
HTH
Peter Foti
"Brian" <us*****@mangym utt.com.invalid-remove-this-part> wrote in message
news:pwncb.5697 76$o%2.254678@s ccrnsc02...
Hello group,

http://people.umass.edu/btrembla/ (html 4.01/strict)

uses a conventional menu marked up as a list, and css

http://people.umass.edu/btrembla/css/brian.css
http://people.umass.edu/btrembla/css/screen.css

to enhance their appearance. I added
li a {display: block}
so that the link would extend across the li element. In MSIE
5.0/Win2k, there is extra space below each li, which goes away if I
remove the li a block declaration. That extra space is not there in
Moz 1.3 nor O7. I can certainly hide it from MSIE using the child
selector, but wanted to know if there was anything else I could do to
remove that extra space.

--
Brian
follow the directions in my address to email me

Jul 20 '05 #2
Peter Foti wrote:
"Brian" <us*****@mangym utt.com.invalid-remove-this-part> wrote in message
news:pwncb.5697 76$o%2.254678@s ccrnsc02...
http://people.umass.edu/btrembla/ (html 4.01/strict)

li a {display: block}
so that the link would extend across the li element. In MSIE
5.0/Win2k, there is extra space below each li


Try removing all whitespace surrounding the <a></a> element.


Tried that. No difference. I think I'm actually relieved that it
didn't fix it; I had little desire to edit every page on the site.
Even with search and replace it would have been tedious, because the
menu changes from page to page.

--
Brian
follow the directions in my address to email me

Jul 20 '05 #3
Brian wrote:
Peter Foti wrote:
"Brian" <us*****@mangym utt.com.invalid-remove-this-part> wrote in message
news:pwncb.5697 76$o%2.254678@s ccrnsc02...
http://people.umass.edu/btrembla/ (html 4.01/strict)

li a {display: block}
so that the link would extend across the li element. In MSIE
5.0/Win2k, there is extra space below each li
Try removing all whitespace surrounding the <a></a> element.


Tried that. No difference.


I think you also need to remove white space between list items, too:
<li><a...></a></li><li>...
I think I'm actually relieved that it
didn't fix it; I had little desire to edit every page on the site.
Even with search and replace it would have been tedious, because the
menu changes from page to page.


That's where something like a preprocessor or some form of server-side
processing comes in handy. :)

--
To email a reply, remove (dash)un(dash). Mail sent to the un
address is considered spam and automatically deleted.

Jul 20 '05 #4
kchayka wrote:
Brian wrote:
http://people.umass.edu/btrembla/ (html 4.01/strict)

li a {display: block}
so that the link would extend across the li element. In MSIE
5.0/Win2k, there is extra space below each li

Try removing all whitespace surrounding the <a></a> element.


Tried that. No difference.


I think you also need to remove white space between list items, too:
<li><a...></a></li><li>...


I just tried that, too. Still no difference. I read some list
examples posted in another thread. I notice several used width: 100%
for li a {width: 100%}, I suppose to correct an error in MSIE 5/win (I
have borders, so those are being added perhaps?). But this screws
things up in Mozilla, so there's body>li a {width: auto}. I added to
my stylesheet something similar. li a {width: 100%}, li>a {width:
auto}. It's better now -- there is not an extra line of space -- but
there is still some space where there ought not be, below and to the
left <a> element in a <li> element. I've uploaded the changes.

http://people.umass.edu/btrembla/
http://people.umass.edu/btrembla/css/
I had little desire to edit every page on the site. Even
with search and replace it would have been tedious, because
the menu changes from page to page.


That's where something like a preprocessor or some form of
server-side processing comes in handy. :)


I tried two, but couldn't make them work. Since then, someone
suggested a few others, but they require a linux emulator. I
downloaded that, but haven't made the time to install it and learn the
new programs.

--
Brian
follow the directions in my address to email me

Jul 20 '05 #5
Brian wrote:
http://people.umass.edu/btrembla/ (html 4.01/strict)


there is still some space where there ought not be, below and to the
left <a> element in a <li> element.


Update: I put the ul menu in a div#nav to include other navigational
stuff, and to my suprise the the space in the left of each <li>
element disappeared. It was the result of me floating the parent
<ul>, but went away when I floated the parent div of the ul.

The vertical spacing is there on other sites that use similar markup,
so that appears to be how MSIE 5/Win (mis?)renders it. Other sites
degrade a little better because of their color scheme. Mine doesn't
degrade quite as well, but it's nothing I can't live with.

--
Brian
follow the directions in my address to email me

Jul 20 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
7559
by: Skip Hollowell | last post by:
I am working on a menu bar for a site, and am using buttons in the bar (because the customer wants to use accessKeys for each selection, apparently it is too much work to click on them with a mouse, but I digress) It seems that the longer the text is in a button, the more padding there is around that text in the button, thus making the button itself much to wide, and wasting too much space on the page. I have tried width:auto in the...
12
9411
by: skeeterbug | last post by:
http://www.geocities.com/operationsengineer1/test2.htm the extra space between the logoHeader and the menu bar occurs when i add the <ul>. if i comment out the ul and and all the li, the 1em space disappears in firefox. http://www.geocities.com/operationsengineer1/test3.htm it never shows in ie6. if i increase the margin of hmenu to 1 em, there is no effect on the top and bottom, but the right and left are
3
2434
by: A.Translator | last post by:
This page http://www.xs4all.nl/~hogen/MenNew/voorpagina.htm behaves as intended in FF 1.01 and Opera 7, but when viewed in IE 6 the menu 'buttons' in the left sidebar, get way too much white at the bottom. I have been fiddling with margins and paddings, but cannot get rid of the extra white. Can someone please help me out? Thank you. -- Groet, Adriana
1
2067
by: Matt Bush | last post by:
Using .NET Framework 1.1 and Visual Studio .NET 2003. Language is VB.NET. When loading an XML String using XMLDocument.LoadXml we are getting an extra space inserted into abbreviated end tags: objXmlDoc.XmlResolver = Nothing objXmlDoc.LoadXml(XmlData) .... .... objXmlDoc.InnerXml (gets written to database)
1
2569
by: Sean Howard | last post by:
Dear All, As is my want I need to do something in Access that seems simple but cannot fathom out. I have main form with two subforms, both datasheets with an almost identical table structure. I want to add the functionality to copy records from subformA to subformB WITHOUT USING COPY/PASTE. The reasonfor this is that I must
5
1936
by: dw | last post by:
hello - first, let me state that i am an Asp.Net rookie. here is the situation: i have a page that looks good in the vs.net designer, but when the page renders there are extra amounts (vertically) of space between controls. i have all of the controls in a table, to help line them up, and I have reviewed the html to verify that there are no extra spaces or paragraphs or breaks between the controls. however, when i run the web site,...
0
1268
by: andrew.dawes | last post by:
For a site I'm working on now, I've given up on full cross-compatibility but since the site has 97% IE6 users, 2% Firefox and 1% Other, hitting IE6 is critical. The development site is: www.trianglevolleyball.org/cmsmadesimple What I have is a basic layout with header, menu, and three lower columns. In order to paste the background together (from slices out of illustrator) I also have a thin box (called "topedge" that holds the image...
8
1998
by: dancer | last post by:
Using ASP.net 1.1 to create user input form. When I put a RequiredFieldValidator I have extra space at the bottom of the cell, as if I had put a <br>. When I comment out the RequiredFieldValidator, the extra space goes away. Don't want that extra space, but want the validator. What can I do?
0
10426
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10207
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9993
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7537
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6776
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5430
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5558
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4109
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3713
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.