jrthor2
04-22-2008, 08:58 AM
I have the below css that i am uing for an image rollover:
.rollover a {
display:block;
position: relative;
width: 100px;
height: 16px;
background: transparent url("cb_get_started2.png") 0 0 no-repeat;
text-decoration: none;
margin-top: 10px;
}
.rollover a:hover {
background-position: 0 -16px;
}
.rightTop {
background-color: #FDFFBE;
text-align: center;
margin-bottom: 47px;
padding: 10px;
}
And my code looks like this:
<div class="rightTop">
<h1>Not a member yet?</h1>
<p><strong>Create a new account.</strong></p>
<p>Membership is free. Sign up today.</p>
<div class="rollover">
<a href="registration.jsf?id=UEhPVHxGTEFTSHxUT0tFTjEyMzQ1Njc4OQ==" title="Get Started"> </a>
</div>
</div>
The problem is, is that the Heading and Text are centered, but the link is not in FireFox,
it's left aligned. How can I get the link centered in FireFox? IE seems to be fine, it centers
the link.
Thanks!
.rollover a {
display:block;
position: relative;
width: 100px;
height: 16px;
background: transparent url("cb_get_started2.png") 0 0 no-repeat;
text-decoration: none;
margin-top: 10px;
}
.rollover a:hover {
background-position: 0 -16px;
}
.rightTop {
background-color: #FDFFBE;
text-align: center;
margin-bottom: 47px;
padding: 10px;
}
And my code looks like this:
<div class="rightTop">
<h1>Not a member yet?</h1>
<p><strong>Create a new account.</strong></p>
<p>Membership is free. Sign up today.</p>
<div class="rollover">
<a href="registration.jsf?id=UEhPVHxGTEFTSHxUT0tFTjEyMzQ1Njc4OQ==" title="Get Started"> </a>
</div>
</div>
The problem is, is that the Heading and Text are centered, but the link is not in FireFox,
it's left aligned. How can I get the link centered in FireFox? IE seems to be fine, it centers
the link.
Thanks!