473,771 Members | 2,394 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Cannot adjust margins between <p>'s

2 New Member
I have a very simple page with a left menu column, and for some reason I just cannot tighten up the spacing between the <p>'s in the left column (the "Item #1" etc)...setting both margins and padding to 0 has no effect. Its driving me crazy! Currently its in a <blockquote> which I thought was the problem but removing the <blockquote> doesn't help. Any ideas? Here's the style sheet:

Expand|Select|Wrap|Line Numbers
  1. body {
  2.     font-family:Arial, Helvetica, sans-serif; 
  3.     background-color:#c0e1e6; 
  4.     margin:0; 
  5.     padding:0;
  6.     }
  7.  
  8. #wrapper {
  9.     overflow:auto;
  10.     }
  11.  
  12. #top {
  13.     background-image:url(homepage-top.gif); 
  14.     background-repeat:no-repeat; 
  15.     height:108px; 
  16.     display:block;
  17.     }
  18.  
  19. .colorbar-top {
  20.     height:38px; 
  21.     background-image:url(colorbar-top.gif); 
  22.     background-repeat:repeat-x;
  23.     }
  24.  
  25. .colorbar-bottom {
  26.     height:22px; 
  27.     background-image:url(colorbar-bottom.gif); 
  28.     background-repeat:repeat-x;
  29.     }
  30.  
  31. .maincontent {
  32.     background-color:#FFF; 
  33.     background-image:url(homepage-centerbkg.jpg); 
  34.     background-repeat:no-repeat; 
  35.     background-position:top left; 
  36.     height:293px; 
  37.     margin:0; 
  38.     padding:0;
  39.     }
  40.  
  41. .interiorcontent {
  42.     background-color:#fff; 
  43.     margin:0; 
  44.     padding:20px; 
  45.     overflow:auto;
  46.     }
  47.  
  48. a {
  49.     color:#0072b1; 
  50.     text-decoration:none; 
  51.     font-weight:bold;
  52.     }
  53.  
  54. .bluetext {
  55.     color:#0072b1; 
  56.     font-weight:bold;
  57.     }
  58.  
  59. .footer {
  60.     font-size:11px; 
  61.     color:#FFF; 
  62.     margin:0 100px 10px 100px; 
  63.     padding:10px; 
  64.     float:right;
  65.     }
  66.  
  67. .leftmenu {
  68.     float:left; 
  69.     width:170px; 
  70.     font-size:14px; 
  71.     font-weight:bold; 
  72.     padding:0 10px 0 10px;
  73.     }
  74.  
  75. .rightcolumn {
  76.     border-left-color:#c0e1e6; 
  77.     border-left-style:solid; 
  78.     border-left-width:1px; 
  79.     margin-left:200px; 
  80.     padding:0 0 0 25px;
  81.     }
  82.  
  83. .goldtext {
  84.     color:#FF9C00;
  85.     }
  86.  
  87. .graytext {
  88.     color:#C1C1C1;
  89.     }
  90.  
  91. .smalltext {
  92.     font-size:10px; 
  93.     color:#B4B4B4;
  94.     }
  95.  
  96. .clear {
  97.     clear:both;
  98.     }
Mar 30 '11 #1
1 1562
drhowarddrfine
7,435 Recognized Expert Expert
What you are fighting is the height of the line for the text. Add 'line-height' to the css of that paragraphs and you can either set the px or, maybe better, adjust by less than 1em; ie, .8em
Mar 30 '11 #2

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

Similar topics

9
2961
by: Francesco Moi | last post by:
Hello. I'm trying to build a RSS feed for my website. It starts: ----------------//--------------------- <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN" "http://my.netscape.com/publish/formats/rss-0.91.dtd"> <rss version="0.91"> ----------------//----------------------
34
11077
by: Mark Moore | last post by:
It looks like there's a pretty serious CSS bug in IE6 (v6.0.2800.1106). The HTML below is validated STRICT HTML 4.01 and renders as I would expect in Opera, FrontPage, and Netscape. For some reason, there's an annoying vertical gap between adjacent rules that doesn't go away. This looks like IE6 is incorrectly setting the margin to some arbitrary value. Does anyone know if this is a known bug at MS? If you know of one, post the...
1
1874
by: Ram | last post by:
Hey, I have a solution that is built from both C# and VB.Net projects that some C# projects are referenced to VB.Net projects and vise versa. Whenever I try to rebuild my solution I get the following errors: "Cannot Copy Assembly <Assembly> - The Process Cannot Access The File Because It Is Being Used By Another Process". I tried to "kill" the ASPNET_WP process in a pre-built event and had no success... I read in more than a few old...
11
13725
by: Les Paul | last post by:
I'm trying to design an HTML page that can edit itself. In essence, it's just like a Wiki page, but my own very simple version. It's a page full of plain old HTML content, and then at the bottom, there's an "Edit" link. So the page itself looks something like this: <HTML><HEAD><TITLE>blah</TITLE></HEAD><BODY> <!-- TEXT STARTS HERE --> <H1>Hello World!</H1> <P>More stuff here...</P>
8
2220
by: Gee | last post by:
I get the above error with this code and I can't figure out why? Any ideas please? See code below - the actual error is included in the code: public struct NETRESOURCE { public Int32 dwScope ; public Int32 dwType; public Int32 dwDisplayType;
21
8541
by: hemant.singh | last post by:
Hello all, I am try'g to send window.location.href to the server script who will generate dynamic javascript according to the referral name comg in as param Now bcz <script language="javascript" src="NO JAVASCRIPT CAN BE USED HERE" /> So I am see'g If I can use eval todo something what I am doing I have tried almost everything, following is being last one
9
17098
by: Michael A. Covington | last post by:
C# won't let me do something elegant. I'm creating a class and want to give it "write to file" and "read from file" methods. I'm actually using the XML serializer, but that's not the problem. The problem is that I cannot, after reading the data from a file, assign it to 'this'. So even though I have a fine method for foo.WriteToFile(filename), I can't implement foo.LoadFromFile(filename).
7
3627
by: Nathan Sokalski | last post by:
Something that I recently noticed in IE6 (I don't know whether it is true for other browsers or versions of IE) is that it renders <br/and <br></br> differently. With the <br/version, which is what most people use when they write static code (some people use <br>, but with xhtml you are required to close all tags), IE6 simply breaks to the next line like it is supposed to. However, with <br></br>, which is what is sometimes generated by...
4
11952
by: mark4asp | last post by:
I have an element, report which contains tags which have been transformed. E.g. <pis &lt;p&gt <myXml> <report>This text has html tags in it.&lt;p&gt which but <has been changed to &lt;&gt</report> </myXml> I there a way that the XSLT transformation can render the content as html rather than text?
1
5497
by: VaidehiPawar | last post by:
I am a beginner level in xml..my output page does not convert &gt &lt it shows something like this " &lt;b&gt;Location.&lt;/b&gt;&lt;br /&gt; &lt;UL&gt;&lt;LI&gt;Park Central New York " can anyone help? here is my code <?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/">
0
9619
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
10260
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
10102
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
9910
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
6712
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
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4007
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
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2850
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.