Advertisement

07.06.2008 at 12:05PM PDT, ID: 23541931
[x]
Attachment Details

The margin of div containers are acting funny in IE

Asked by jabrthel in Cascading Style Sheets (CSS), Hypertext Markup Language (HTML)

Tags: html css

The margins for the div elements of class contentBox seem to be of varible size in IE. I'm trying to get them to be uniform... but I'm at a complete loss.

div.contentBox {
border-style:solid;
border-width: 1px;
border-color: #eeeeee;
background-image: url(images/contentbox.gif);
background-repeat: repeat-x;
width: 180px;
height: 150px;
margin: 5px;
float: left;
}

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:
<div id = "mainContainer">
	<div onclick="document.getElementById('form1').submit();" class="contentBox">
		<h2 class = "contentTitle">$conTitle[0]</h2>
 
		<p class = "description">$content[0]</p>
		<p class = "click">CLICK TO COMMENT</P>
	</div>
	<form id='form1' method='get' action='content.php'>
		<input type='hidden' name='date' value='$date'/>
		<input type='hidden' name='order' value='1'/>
	</form>
	
	<div onclick="document.getElementById('form2').submit();" class="contentBox">
		<h2 class = "contentTitle">$conTitle[1]</h2>
 
		<p class = "description">$content[1]</p>
		<p class = "click">CLICK TO COMMENT</P>
	</div>
	<form id='form2' method='get' action='content.php'>
		<input type='hidden' name='date' value='$date'/>
		<input type='hidden' name='order' value='2'/>
	</form>
	
	<div onclick="document.getElementById('form3').submit();" class="contentBox">
		<h2 class = "contentTitle">$conTitle[2]</h2>
 
		<p class = "description">$content[2]</p>
		<p class = "click">CLICK TO COMMENT</P>
	</div>
	<form id='form3' method='get' action='content.php'>
		<input type='hidden' name='date' value='$date'/>
		<input type='hidden' name='order' value='3'/>
	</form>
	
	<div class="contentBox">
		<h2 class = "contentTitle"></h2>
 
		<p class = "description"></p>
		<p class = "click"></P>
	</div>
	
	<div onclick="document.getElementById('form4').submit();" class="contentBox">
		<h2 class = "contentTitle">$conTitle[3]</h2>
 
		<p class = "description">$content[3]</p>
		<p class = "click">CLICK TO COMMENT</P>
	</div>
	<form id='form4' method='get' action='content.php'>
		<input type='hidden' name='date' value='$date'/>
		<input type='hidden' name='order' value='4'/>
	</form>
				
	<div class="contentBox">
		<h2 class = "contentTitle"></h2>
 
		<p class = "description"></p>
		<p class = "click"></P>
	</div>
				
	<div onclick="document.getElementById('form5').submit();" class="contentBox">
		<h2 class = "contentTitle">$conTitle[4]</h2>
 
		<p class = "description">$content[4]</p>
		<p class = "click">CLICK TO COMMENT</P>
	</div>
	<form id='form5' method='get' action='content.php'>
		<input type='hidden' name='date' value='$date'/>
		<input type='hidden' name='order' value='5'/>
	</form>
	
	<div onclick="document.getElementById('form6').submit();" class="contentBox">
		<h2 class = "contentTitle">$conTitle[5]</h2>
 
		<p class = "description">$content[5]</p>
		<p class = "click">CLICK TO COMMENT</P>
	</div>
	<form id='form6' method='get' action='content.php'>
		<input type='hidden' name='date' value='$date'/>
		<input type='hidden' name='order' value='6'/>
	</form>
	
	<div onclick="document.getElementById('form7').submit();" class="contentBox">
		<h2 class = "contentTitle">$conTitle[6]</h2>
 
		<p class = "description">$content[6]</p>
		<p class = "click">CLICK TO COMMENT</P>
	</div>
	<form id='form7' method='get' action='content.php'>
		<input type='hidden' name='date' value='$date'/>
		<input type='hidden' name='order' value='7'/>
	</form>
				
	<div onclick="document.getElementById('form8').submit();" class="contentBox">
		<h2 class = "contentTitle">$conTitle[7]</h2>
 
		<p class = "description">$content[7]</p>
		<p class = "click">CLICK TO COMMENT</P>
	</div>
	<form id='form8' method='get' action='content.php'>
		<input type='hidden' name='date' value='$date'/>
		<input type='hidden' name='order' value='8'/>
	</form>
	
	<div class="contentBox">
		<h2 class = "contentTitle"></h2>
 
		<p class = "description"></p>
		<p class = "click"></P>
	</div>
	
	<div onclick="document.getElementById('form9').submit();" class="contentBox">
		<h2 class = "contentTitle">$conTitle[8]</h2>
 
		<p class = "description">$content[8]</p>
		<p class = "click">CLICK TO COMMENT</P>
	</div>
	<form id='form9' method='get' action='content.php'>
		<input type='hidden' name='date' value='$date'/>
		<input type='hidden' name='order' value='9'/>
	</form>
	
	<div class="contentBox">
		<h2 class = "contentTitle"></h2>
 
		<p class = "description"></p>
		<p class = "click"></P>
	</div>
				
	<div onclick="document.getElementById('form10').submit();" class="contentBox">
		<h2 class = "contentTitle">$conTitle[9]</h2>
 
		<p class = "description">$content[9]</p>
		<p class = "click">CLICK TO COMMENT</P>
	</div>
	<form id='form10' method='get' action='content.php'>
		<input type='hidden' name='date' value='$date'/>
		<input type='hidden' name='order' value='10'/>
	</form>
				
	<div onclick="document.getElementById('form11').submit();" class="contentBox">
		<h2 class = "contentTitle">$conTitle[10]</h2>
 
		<p class = "description">$content[10]</p>
		<p class = "click">CLICK TO COMMENT</P>
	</div>
	<form id='form11' method='get' action='content.php'>
		<input type='hidden' name='date' value='$date'/>
		<input type='hidden' name='order' value='11'/>
	</form>
	
	<div onclick="document.getElementById('form12').submit();" class="contentBox">
		<h2 class = "contentTitle">$conTitle[11]</h2>
 
		<p class = "description">$content[11]</p>
		<p class = "click">CLICK TO COMMENT</P>
	</div>
	<form id='form12' method='get' action='content.php'>
		<input type='hidden' name='date' value='$date'/>
		<input type='hidden' name='order' value='12'/>
	</form>
</div>
[+][-]07.06.2008 at 01:25PM PDT, ID: 21941500

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.

 
[+][-]07.06.2008 at 01:26PM PDT, ID: 21941507

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.

 
[+][-]07.06.2008 at 01:44PM PDT, ID: 21941554

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

 
[+][-]07.06.2008 at 01:50PM PDT, ID: 21941573

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

 
[+][-]07.06.2008 at 02:49PM PDT, ID: 21941734

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.

 
[+][-]07.06.2008 at 08:12PM PDT, ID: 21942579

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

 
[+][-]07.07.2008 at 04:12AM PDT, ID: 21943982

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.

 
[+][-]07.07.2008 at 12:28PM PDT, ID: 21947870

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), Hypertext Markup Language (HTML)
Tags: html css
Sign Up Now!
Solution Provided By: scrathcyboy
Participating Experts: 3
Solution Grade: A
 
 
[+][-]07.07.2008 at 10:29PM PDT, ID: 21951129

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

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