Advertisement

03.23.2008 at 06:32PM PDT, ID: 23263238
[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.0

Hielo? How do I get no margin in one DIV when the main DIV has margin: 10px

Asked by NEILPH in Cascading Style Sheets (CSS), JavaScript, RSS

Tags: ,

Hielo. The snippet example includes solutions you previously provided. It now also includes Javascript that adds a Wordpess blog feed [via Feedburner\Buzzboost] near the end of the page.

Feedburner\Buzzboost requires that add this CSS style to display it...

div.feedburnerFeedBlock ul {
margin-left:0;
padding-left:0;
list-style-type: none
img{display:none;}
}

I have surrounded the Feedburner javascript with my existing <div id="noshowpic">, so that the Feedburner logo doesn't show.

So far so good. BUT HERE'S THE PROBLEM: Earlier in my CSS I have
div
{
      font-family: Times New Roman, Times, serif;  
      font-size: 12px;
      line-height: 115%;
      margin: 10px;
}

I want to keep this margin: 10px; because I need a margin between the two columns of my page main table. However, margin: 10px; makes my Feedburner display with a list bullet point and a 10px margin.

If you try you'll see that this can be fixed easily by making   margin: 0px; in my main CSS div {. But, that removes the 10px: margin between the table columns.

So can you keep margin: 10px; throughout all the DIVs as is, but make the Feedburner margin: 0px; ?

I suspect its easy. I've tried a few things but they don't work.


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:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
201:
202:
203:
204:
205:
<html>
<head>
<title>hielo_final_and_feedburner.htm</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
 
 
<style type="text/css">
 
p
{
	font-family: Times New Roman, Times, serif;  
	font-size: 12px;
	line-height: 115%;
	margin: 10px;
}
 
div
{
	font-family: Times New Roman, Times, serif;  
	font-size: 12px;
	line-height: 115%;
	margin: 10px;
}
 
 
h1
{
	font-family: Times New Roman, Times, serif;
	font-size: 20px;
	font-weight: bold;
	margin: 10px;
}
 
h2
{
	font-family: Times New Roman, Times, serif;
	font-size: 60px;
	font-weight: bold;
	margin: 10px;
}
 
#noshowpic img{ 
display:none; 
} 
 
#noshowpic embed{ 
display:none; 
} 
 
#showtrimpic img{ 
  margin: 10px;
  max-width:350px;
  width: expression(this.width > 300 ? 300: true);
} 
 
 
#showonepic img{ 
  margin: 10px;
  max-width:350px;
  width: expression(this.width > 300 ? 300: true);
} 
 
 
a:link
{
display: none;
}
 
div.feedburnerFeedBlock ul { 
margin-left:0;
padding-left:0; 
list-style-type: none 
img{display:none;} 
}
 
</style>
 
 
 
			<script type="text/javascript" src='http://127.0.0.1:1027/js.cgi?pa&r=8281'></script>
 
<script type="text/javascript">
//"schedule" the function init to be executed once the document loads
window.onload=init;
 
 
function init()
{
	//attempt to obtain a reference to the container
	var masterContainer = document.getElementById("mastercontainer");
	
	//make sure you actually obtained a reference to it
	if( masterContainer)
	{
		//attempt to get an array of references to the divs containing the images
		var container=masterContainer.getElementsByTagName("div");
 
		for( var j=0,outerlimit=container.length; j < outerlimit; ++j)
		{
			var cont_images = container[j].getElementsByTagName("img");
 
			//make sure that at least one img element was returned
			if(cont_images.length)
			{
				//iterate through the list
				for( var i=0, limit=cont_images.length; i < limit; ++i )
				{
					//"remove" every single image from the screen
					cont_images[i].style.display='none';
				}
			
				//now "activate" ony the first image on the list
				cont_images[0].style.display="";
			}
		}
		return true;
	}
return false;
}
</script>
 
 
</head>
<body>
 
<table width="100%" border="0" cellspacing="0" cellpadding="0" name="holdit" bordercolor="#FF0000">
  <tr valign="top" align="left"> 
    <td id="masterContainer"> 
	
	<div id="showtrimpic"> 
		<h1><b>hello showtrimpic</b></h1>
     	<p><img id="image3467" height=200 width=390 alt="cat power" 
 
src="http://www.spareroom.co.nz/wp-content/uploads/2008/02/Catp.jpg" /><p class="image-caption">Cat Power -- playing 
 
Auckland's Powerstation next Tuesday</p>
     	<p><img id="image3467" height=200 width=390 alt="cat power" 
 
src="http://www.spareroom.co.nz/wp-content/uploads/2008/02/Catp.jpg" /><p class="image-caption">Cat Power -- playing 
 
Auckland's Powerstation next Tuesday</p>
	</div>
 
	<p>&nbsp;<br><br></p>
 
	<div id="noshowpic">
		<h1><b>hello noshowpic</b></h1>
     	<p><img id="image3467" height=200 width=390 alt="cat power" 
 
src="http://www.spareroom.co.nz/wp-content/uploads/2008/02/Catp.jpg" /><p class="image-caption">Cat Power -- playing 
 
Auckland's Powerstation next Tuesday</p>
     	<p><img id="image3467" height=200 width=390 alt="cat power" 
 
src="http://www.spareroom.co.nz/wp-content/uploads/2008/02/Catp.jpg" /><p class="image-caption">Cat Power -- playing 
 
Auckland's Powerstation next Tuesday</p>
	</div>
 
 
	<p>&nbsp;<br><br></p>
 
 
	<div id="showonepic">
		<h1><b>hello showonepic1</b></h1>
<p>Cat PowerCat PowerCat PowerCat PowerCat PowerCat PowerCat PowerCat PowerCat PowerCat PowerCat PowerCat PowerCat Power</p>
     	<p><img id="image3467" height=200 width=390 alt="cat power" 
 
src="http://www.spareroom.co.nz/wp-content/uploads/2008/02/Catp.jpg" /><p class="image-caption">Cat Power -- playing 
 
Auckland's Powerstation next Tuesday</p>
     	<p><img id="image3467" height=200 width=390 alt="cat power" 
 
src="http://www.spareroom.co.nz/wp-content/uploads/2008/02/Catp.jpg" /><p class="image-caption">Cat Power -- playing 
 
Auckland's Powerstation next Tuesday</p>
	</div>
	<p>&nbsp;<br><br></p>
 
</td>
<td>
 
	<div id="showonepic">
		<h1><b>hello showonepic2</b></h1>
<p>Cat PowerCat PowerCat PowerCat PowerCat PowerCat PowerCat PowerCat PowerCat PowerCat PowerCat PowerCat PowerCat Power</p>
		<p><img id="image3467" height=200 width=390 alt="cat power" 
 
src="http://www.spareroom.co.nz/wp-content/uploads/2008/02/Catp.jpg" /><p class="image-caption">Cat Power -- playing 
 
Auckland's Powerstation next Tuesday</p>
	</div>
 
<p>&nbsp;<br><br></p>
<div id="noshowpic">
        <script 
 
src="http://feeds.feedburner.com/wordpress/DoKH?format=sigpro&dateFormat=MM/dd/yyyy&nItems=1&displayTitle=false" 
 
type="text/javascript" ></script>
</DIV>
    </td>
</tr>
</table>
</body>
</html>
[+][-]03.23.2008 at 06:43PM PDT, ID: 21191437

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.

 
[+][-]03.23.2008 at 06:44PM PDT, ID: 21191448

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.

 
[+][-]03.24.2008 at 07:25AM PDT, ID: 21193702

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.

 
[+][-]03.24.2008 at 03:42PM PDT, ID: 21198047

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.

 
[+][-]03.25.2008 at 08:35AM PDT, ID: 21202856

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.

 
[+][-]03.25.2008 at 10:35AM PDT, ID: 21204106

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.

 
[+][-]03.25.2008 at 09:37PM PDT, ID: 21208913

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.

 
[+][-]03.26.2008 at 12:56AM PDT, ID: 21209565

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), JavaScript, RSS
Tags: CSS, IE6+
Sign Up Now!
Solution Provided By: ivan_nieto
Participating Experts: 3
Solution Grade: A
 
 
[+][-]03.26.2008 at 09:08AM PDT, ID: 21213144

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.

 
[+][-]03.26.2008 at 01:46PM PDT, ID: 21216021

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 / EE_QW_2_20070628