Advertisement

05.02.2008 at 07:18PM PDT, ID: 23373368
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.1

CSS: closing spacing between elements

Asked by michaelshavel in Cascading Style Sheets (CSS), Extensible HTML (XHTML)

Tags:

Hi,

I'm playing around with CSS, trying to get a better understanding of it. All the coding I'm doing is by hand, I'm not using Dreamweaver or some such tool -- just plain VI and a text document.

Here's the thing; whenever I create new elements, they have a space between them. I've included the complete code of a simple example of this.  So, in the example I've attached I'd like the links "link1 link2 and link3" area to butt up against the bottom of the "top1, top2, etc" bar.

I'm guessing it has to do with margins. I have tried using negative margins and it worked fine using FireFox on a Mac. But when I switched over the IE and FireFox on Windows, the 'spacing' that I thought I fixed just looked really crammed together.

This must be a common problem... I'm hoping.
Thanks!
mike
Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>test</title>
 
<style type="text/css">
 body {
 font-family: small Verdana, Arial, Helvetica, sans-serif;
 margin: 0 0 0 0;
 }
 
 a {
 text-decoration:none;
 }
 
 a img { border: 0;
 }
 
#midnavlinks {
background-color: #88813b;
height: 25px;
width: 702px;
margin-top: 0;
margin-left: 80px;
 
 
}
 
#midnavlinks li {
display: inline;
list-style: none;
height: 30px;
margin-left: .5em;
margin-bottom: 10px;
border-right: 1px solid #FFF; padding-right: .75em;
border-bottom: none;
color:#FFFFFF;
 
 }
#midnavlinks li.last {
border-right: 0;
}
 
#midnavlinks ol.listlinks  {
margin-left: 3em;
padding-top: 0.25em;
}
 
#leftmenulist li  {
list-style: none;
margin-left: 40px;
margin-right: 626px;
background-color: #d0cdaa;
}
 
</style>
</head>
 
<body>
<div id="midnavlinks">
  <ol class="listlinks">
    <li class="first">top1</li>
    <li>top2</li>
    <li>top3</li>
    <li>top4</li>
    <li class="last">top5</li>
    </ol>
 
</div>
<div id="leftmenu">
  <ol id=leftmenulist>
    <li>link1</li>
    <li>link2</li>
    <li>link3</li>
</ol>
</div>
</body>
</html>
[+][-]05.02.2008 at 07:26PM PDT, ID: 21491060

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.02.2008 at 07:28PM PDT, ID: 21491063

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Cascading Style Sheets (CSS), Extensible HTML (XHTML)
Tags: CSS
Sign Up Now!
Solution Provided By: RQuadling
Participating Experts: 3
Solution Grade: A
 
 
[+][-]05.02.2008 at 10:11PM PDT, ID: 21491374

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628