wienerdog
05-24-2006, 05:45 PM
I am trying to get a section of text to be colored white with an orange background and 6 px of surrounding orange background. I had relative positioning originally, and it worked in IE but not Firefox. I changed it to absolute, and now it works in neither. Anyone know this stuff well-enough to take a quick look and lend a hand?
Here's my CSS that controls it:
.orange_background {
position: absolute;
color: #FFFFFF;
background-color: #FF6600;
text-align: left;
padding: 6px 6px 6px 6px;
width: 160px;
font-weight: bold;
}
Here's a snippet of my HTML:
<div id="leadership">
<div class="orange_background">Team</div>
<p>
<a href="about_leadership.html">Rob Rush</a><br />
President & CEO <br />
<br />
<a href="about_leadership_lashner.html">Stan Lashner</a><br />
Chief Operating Officer <br />
<br />
<a href="about_leadership_rubin.html">Paul Rubin</a><br />
Chief Financial Officer <br />
<br />
<a href="about_leadership_roberto.html">John Roberto</a><br />
Executive Vice President – <br />
Quality Assurance Group<br />
<br />
<a href="about_leadership_bell.html">Bush Bell</a><br />
Vice President – <br />
Consulting Services Group<br />
<br />
<a href="about_leadership_bille.html">Constance
Billé, M.Ed.</a><br />
Director of Organizational Development & Training <br />
<br />
<a href="about_leadership_conen.html">Zachary Conen</a><br />
Director of Marketing <br />
<br />
<a href="about_leadership_fisch.html">Ted Fisch</a><br />
Director of Business Development <br />
<br />
<a href="about_leadership_lyons.html">Bob Lyons</a><br />
Director of CEM <br />
Strategy Consulting<br />
<br />
<a href="about_leadership_lusch.html">Robert Lüsch</a><br />
Director of Information Technology <br />
<br />
<a href="about_leadership_mcdade.html">Sean McDade,
Ph. D.</a><br />
Director of Research <br />
<br />
<a href="about_leadership_peel.html">Nancy Peel</a><br />
Director of Standards Development and Content Management </p></div>
</div>
Here's my CSS that controls it:
.orange_background {
position: absolute;
color: #FFFFFF;
background-color: #FF6600;
text-align: left;
padding: 6px 6px 6px 6px;
width: 160px;
font-weight: bold;
}
Here's a snippet of my HTML:
<div id="leadership">
<div class="orange_background">Team</div>
<p>
<a href="about_leadership.html">Rob Rush</a><br />
President & CEO <br />
<br />
<a href="about_leadership_lashner.html">Stan Lashner</a><br />
Chief Operating Officer <br />
<br />
<a href="about_leadership_rubin.html">Paul Rubin</a><br />
Chief Financial Officer <br />
<br />
<a href="about_leadership_roberto.html">John Roberto</a><br />
Executive Vice President – <br />
Quality Assurance Group<br />
<br />
<a href="about_leadership_bell.html">Bush Bell</a><br />
Vice President – <br />
Consulting Services Group<br />
<br />
<a href="about_leadership_bille.html">Constance
Billé, M.Ed.</a><br />
Director of Organizational Development & Training <br />
<br />
<a href="about_leadership_conen.html">Zachary Conen</a><br />
Director of Marketing <br />
<br />
<a href="about_leadership_fisch.html">Ted Fisch</a><br />
Director of Business Development <br />
<br />
<a href="about_leadership_lyons.html">Bob Lyons</a><br />
Director of CEM <br />
Strategy Consulting<br />
<br />
<a href="about_leadership_lusch.html">Robert Lüsch</a><br />
Director of Information Technology <br />
<br />
<a href="about_leadership_mcdade.html">Sean McDade,
Ph. D.</a><br />
Director of Research <br />
<br />
<a href="about_leadership_peel.html">Nancy Peel</a><br />
Director of Standards Development and Content Management </p></div>
</div>