Advertisement

09.11.2008 at 09:51AM PDT, ID: 23723672
[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.3

Alignment of Divs <p> CSS in IE

Asked by jay_eire in Cascading Style Sheets (CSS)

Hi Guys,

Ive put together a HTML page that's made up with some divs. I'm having two problems I hope you can help me with.

1. Link DIV
   I have a DIV named: LogoLink how do i increase the height of this DIV upwards more within the red section rather than being pushed down into the green section
   within this DIV i have another div called click area how do i align this DIV to be in the bottom right hand corner?

2. Paragraph Spacing
    within the DIV BodyText how Ive changed the line height of the <p> tag it looks fine in Firefox but in IE there is still massive spaces, how do I get them to look the same as in Firefox?

3. Review CSS
   Am I going about things the right way by creating container divs for each section and then creating inner divs for text etc am i aligning things correctly when using margins?

Ive uploaded the HTML and CSS code.

Thanks
Jay Eire
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:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
HTML PAGE
<!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 Divs</title>
 
<link rel="stylesheet" href="test.css" type="text/css" />
</head>
 
<body>
 
 
<center>
<div id="HeaderContainer">
    <div id="spacer5">&nbsp;</div>
    <div id="NavigationFrame">
    
        <div class="navlinks">Navigation: Link 1 | Link 2 | Link 3 | Link 4 |</div>
    
    </div>
    <div id="NewsBar">
        <div class="marquee"><marquee>text text text text</marquee></div>
    </div>
    
    <div id="LogoLink">
        <div class="clickarea"><a href="http://www.google.com"><img src="images/spacer.gif" width="100" height="25" /></a></div>
        
    </div>
</div>
<div id="BodyContainer">
 
    <div class="BodyTitle">Page Title</div>
    <div class="BodyText">
        <h1>Text Section Title</h1>
        <p>text text text text text text text text text text text text text text text text text </p>
                <p>text text text text text text text text text text text text text text text text text </p>
                        <p>text text text text text text text text text text text text text text text text text </p>
                                <p>text text text text text text text text text text text text text text text text text </p>
    
    
    </div>
 
</div>
<div id="Footer">
    <div class="text">Footer Text Copy Right Small Text</div>
</div>
 
</center>
</body>
</html>
 
CSS
html,body{
 border:0;
 margin:0px;
 padding:0px;
 background-color:#ffffff;
 background-repeat:no-repeat;
 font-family:Tahoma;
 font-size:11px;
 line-height:12px;
 color:#000000;
}
body{
	overflow-y:scroll;
}
#spacer5 
{
   height:30px;
}
 
/* HEADER STYLES */
#HeaderContainer {
background-color:Red;
height:130px;
width:800px;
position:relative;
text-align:right;
z-index:5;
}
 
#NavigationFrame {
background-color:Yellow;
height:50px;
width:400px;
position:relative;
float:left;
text-align:left;
z-index:5;
}
    #NavigationFrame .navlinks
        {
            background-color:Blue;
            font-size:x-small; font-family:Verdana; color:White;
            width:252px;
            float:left;
            margin-top:25px;
        }
 
#NewsBar {
background-color:lime;
height:50px;
width:550px;
position:relative;
float:left;
text-align:left;
z-index:5;
}
    #NewsBar .marquee
    {
        background-color:Purple;
        font-size:x-small; font-family:Verdana; color:White;
        width:300px;
        float:right;
        margin-top:25px;
    }   
 
#LogoLink {
background-color:Aqua;
height:50px;
width:250px;
position:relative;
float:right;
z-index:5;
}
    #LogoLink clickarea
    {
        padding:20px 0px 0px 0px;
    }
        
/* ************* */
 
/* BODY STYLES */
#BodyContainer {
background-color:green;
height:400px;
width:800px;
position:relative;
text-align:left;
z-index:5;
}
    #BodyContainer .BodyTitle
    {
        background-color:Yellow;
        width:500px;
        height:20px;
        text-align:center;
        margin:0 auto;  
    }
    #BodyContainer .BodyText
    {
        padding: 10px;
    }
        #BodyContainer .BodyText h1
        {
             font-family:Verdana, Geneva, Arial, helvetica, sans-serif; font-size:10px; font-weight:bold; color:white; line-height:14px;
        }
        #BodyContainer .BodyText p
        {
             font-family:Verdana, Geneva, Arial, helvetica, sans-serif; font-size:9px; color:white; line-height:4px;
        }
/* ************* */
 
 
/* FOOTER STYLES */
 
#Footer {
background-color:Maroon;
height:50px;
width:800px;
position:relative;
text-align:center;
z-index:5;
}
    #Footer .text{
          margin:0 auto;
          color:White;
          padding:25px;
          
    }
/* ************* */
[+][-]09.11.2008 at 11:10AM PDT, ID: 22452752

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.11.2008 at 11:18AM PDT, ID: 22452847

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

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

 
[+][-]09.11.2008 at 11:54AM PDT, ID: 22453290

View this solution now by starting your 30-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

Zone: Cascading Style Sheets (CSS)
Sign Up Now!
Solution Provided By: julianmatz
Participating Experts: 1
Solution Grade: A
 
 
[+][-]09.11.2008 at 12:47PM PDT, ID: 22453893

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

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

 
[+][-]09.11.2008 at 02:08PM PDT, ID: 22454881

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-44 / EE_QW_2_20070628