473,761 Members | 9,477 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

links with padding problems

1 New Member
hi guys, hopefully you can help me out with this one! I have a menu:

<div id="menu">
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Online Shop</a></li>
<li><a href="#">Potted Shrimps</a></li>
<li><a href="#">About Us</a></li>
<li><a href="#">The History of Fishing</a></li>
<li><a href="#">Show Dates</a></li>
<li><a href="#">Boroug h Market</a></li>
<li><a href="#">FAQs</a></li>
<li><a href="#">Contac t Us</a></li>
</ul>
</div>

and I have my style:

#menu ul { margin: 10px 0; padding: 0; }
#menu ul li { list-style: none; margin: 10px 0; display: block; }
#menu ul li a { color: #B2C8D1; text-decoration: none; padding: 10px; background: #F4F7F9; border-right: 1px solid #D7E4EA; border-bottom: 1px solid #D7E4EA; border-left: 1px solid #D7E4EA; }
#menu ul li a:hover { background: #FFF; text-decoration: none; }

but it's overlapping the links. can anyone think of a way of getting a nice 10px margin between each item? thanks! you can see it online at http://www.16-10-1972.com

darren.
Nov 25 '06 #1
2 1233
snowdonkey
37 New Member
I don't quite understand the effect you're going for. Is this better?

Expand|Select|Wrap|Line Numbers
  1. #menu ul li { list-style: none; margin: 20px 0; display: block; }
  2.  
Nov 25 '06 #2
AricC
1,892 Recognized Expert Top Contributor
Looking at your site I don't see anything overlapping IE 6 but you should give those buttons a width.
Nov 25 '06 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

17
4508
by: Klaus Schulz | last post by:
Hello, for a project I am currently working at, I have to use form-buttons and normal links (a href...) in the same pages together. Both should look the same. No problem with IE and Opera but I cannot get this to work with Mozilla. If anyone would like to give me an hint, he can find an example here: http://www.wiesodenn.de/problem/problem.html
7
4729
by: Jonas Smithson | last post by:
Hello all, I have an absolute positioned parent div, and nested inside it is an absolute positioned child div -- I mean the div *code* is nested inside, but the child is physically positioned so that it's completely outside the parent div (to the left of its parent, in a left-side margin area). The child div contains hyperlinks. Explorer 6 (on Windows) has no problem with this. However, in Netscape 6, the links are unclickable. I...
3
2609
by: michelle koen | last post by:
Hi Folks, on <a href="http://donbrice.com/new/page.php?section=schools">this page</a> and for all the sections I can't get Safari(2.02) or Firefox-PC(1.5) or the latest vers. of Opera-Mac to recognise that the navigation links (menucol) if the div behind it (container-page) overlaps. As far as I've tested it renders as desired in IEmac, FfoxMac1.0.6, NNmac7.2, and IE6-PC.
15
1528
by: Alan Silver | last post by:
Hello, I have just been trying a CSS-based design that works as I expected in FF and Opera, but has a problem with IE. If you look at my current version at http://www.kidsinaction.org.uk/FredsBoots/Freds.html in FF or Opera, the links in the left margin appear close together as expected. If you look at the same page in IE, these links are quite spaced out, with more vertical space between them than I want. Any idea why this is? I...
9
5134
panachepad
by: panachepad | last post by:
I arrived here from a websearch that found this thread from your archives: http://www.thescripts.com/forum/thread97805.html It helped me to understand that I am on the right track, but I still have one problem surrounding this issue. I am trying to make a <div> block that contains a) a link b) an arrow or an image of an arrow c) another link d) another link floated off to the far right All of this must be on one horizontal line. The...
0
1270
by: johkar | last post by:
If you add a background image to a link, the spinning Microsoft logo stops spinning in IE 6 after you click the link and move the mouse off it. Most people never notice this, but in applications where there is a slight delay before going to the next page, the logo stops spinning and the progress bar stops working if you mouse off the link. I am using the "sliding doors" technique to add rounded corners to tabs. I have been unable to...
2
2070
by: Krustov | last post by:
The question of how to create thumbnails with clickable links gets asked on this newsgroup every so often - like clock work . Just really posing this script here for google to archive it & so users can be pointed to it in the future via a link to google groups . <html> <head>
4
5595
by: justabeginner | last post by:
First of all, let me say I've had very little training in html and probably know just enough to be dangerous. I designed a website for my alumni association last summer using XHTML Transitional and CSS. I finally got around to posting it, but in the meantime IE7 came out. Everything looks fine in IE6 and FF, but when the page is opened in IE7 the links are dead. I've tried several fixes, but can't get anything to work. Any help you could give me...
5
1952
by: EmmaEliza | last post by:
I have coded my css so that my text links have a background and border which I want to keep but I cant seem to edit the css so that my image links dont have the same thing.... http://www.teenagedq.forever-in-love.org/blends.php If you click on the link that says leonardo dicaprio the java script will come up that shows the blend but the close button on the java script is surrounded by the same background and border as my text links... is...
0
9554
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9988
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...
1
9923
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9811
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...
0
8813
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6640
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
5266
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...
1
3911
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
3
2788
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.