473,809 Members | 2,719 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IE shows more space between paragraph

254 Contributor
Hi

I have written some code which works fine as I intend to work in Mozilla but not in IE. In IE it shows more space between two lines "Franchise Support" "Store Environment".

so what is wrong in this code. here is code

Expand|Select|Wrap|Line Numbers
  1.  
  2. <div id="mainNav">
  3.         <ul>
  4.             <li><a href="about.html" class="on">About Jamba</a></li>
  5.             <li><a href="support.html">Franchise Support</a></li>
  6.             <li><a href="store.html">Store Environment</a></li>
  7.             <li><a href="products.html">Jamba Products</a></li>
  8.             <li><a href="brands.html">Jamba Brands</a></li>
  9.         </ul>
  10.     </div>
  11.  
  12.  
Expand|Select|Wrap|Line Numbers
  1.  
  2. #mainNav{
  3.     width: 181px;
  4.     height: 130px;
  5.     float: left;
  6.     background:url(../images/mainNavBg.gif) left bottom no-repeat;
  7. }
  8.  
  9. #mainNav ul{
  10.     color: #572600;
  11.     list-style: none;
  12.     height:10px;
  13. }
  14. #mainNav li{
  15.     font-size: 10px;
  16.  
  17. }
  18. #mainNav ul li a{ padding-left: 30px; color: #572600; text-decoration: none;}
  19. #mainNav ul li a:hover{color: #ffffff;}
  20. #mainNav ul li a.on{color: #ffffff;}
  21.  
  22.  
May 30 '09
10 4033
tpeck
1 New Member
The line-height fix doesn't seem to work on the spacing between the paragraphs. It just squashes everything (except the space we want to make equal in all browsers).

The solution that seems to work perfectly is:

p {margin: 0px 0 20px;}

..though someone else provided it, not me!
Nov 11 '10 #11

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

Similar topics

21
4034
by: Christian Seberino | last post by:
Linux kernel style guide, Guido's C style guide and (I believe) old K&R style recommends 8 SPACES for indent. I finally got convinced of wisdom of 8 space indentation. Guido also likes 8 space indentation FOR C CODE. Why style guide (PEP-8) for Python says 4 space indents??? Is breaking rule to use 8 space indents everywhere
2
2249
by: Malcolm Dew-Jones | last post by:
I am looking at xslt 1.0 and trying to understand if empty text nodes are supposed to be stripped or not as the default behaviour. 3.4 starts by listing rules for when white space is not stripped and then says "Otherwise the text node is stripped". which appears to contradict a later paragraph that discusses the details of the selection of nodes to be stripped ("Initially ... preserve ... all element names").
0
1623
by: Timo | last post by:
Should e.g. a paragraph to be consired as a replaced element when it has a css-property 'white-space: pre'. I ask this because this effects the width calculations of the element. I think a <p> with 'white-space: pre' should somehow be replaced because its dimension are defined by the element itself (after the font sizes etc. has been taken in account) Timo
3
9020
by: Simon Dean | last post by:
Hello! Im looking to try and get into CSS for formatting my sites. Seems like a nice premise, and should allow easier design for the future. But gees, Im having a hard time of it. I would like to create something like at http://www.blargle.co.uk or http://www.celebrityresearcher.co.uk without the tables. I figure should be easy, to have two DIV rows, 100% width, and then have
8
6880
by: lkrubner | last post by:
Am I wrong, or do paragraphs have extra space on top in FireFox, when compared to Microsoft IE. The top of this page is an example: http://www.publicdomainsoftware.org/index.php?pageId=299 The text in the box at top looks like it has an extra 10 or 20 pixels of padding at the top, when FireFox is compared to IE. Why is that?
38
24016
by: Xah Lee | last post by:
sometimes i wish to add white space in <p> as to achived effects similar to tab. what should i do? using empty image seems the sure way but rather complicated. (and dosen't change size with font) Woudl some of the space character in unicode work? (my html files uses unicode) Xah
2
12183
by: Petr Jakes | last post by:
Hi, I am trying to set-up communication to the coin change-giver from my Linux box using the Python code. The change giver uses MDB (Multi Drop Bus) serial protocol to communicate with the master. MDB protocol is the 9bit serial protocol: (TX, RX lines only) 9600bps, 9bits, No Parity, 1 Start, 1 Stop. I would like to control the UART "parity bit" to try to simulate 9bit communication.
7
22000
by: JohnBirch | last post by:
I am new to CSS and have spent many unsuccessful hours trying to find a way to remove the space above the beginning of a paragraph. What I want to do is to have a bold heading <H3> in 12pt followed immediately on the next line by text in normal 10pt. I'm sure there is a simple answer that escapes me but how do I do it?
5
11747
by: RetroMIDI | last post by:
I notice that the <ptag does not always allow the same amount of space. Some websites have about half a line only. When I check their code, they have used just <p>. On other occasions it seems that <p> has left not just one line of space as per the current font size, but as much as 20 or 30 pixels. Can someone please explain to me how to control what <pdoes in terms of space after a paragraph using a CSS.
0
9602
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10376
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
9200
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...
1
7661
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
6881
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
5550
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
5688
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3861
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3015
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.