
October 11th, 2012, 09:50 AM
|
|
|
|
Margin-top for text
Hi, I have a footer with some text. Unfortunately, the text is aligned to the bottom of the footer bar. So, my solution was to add "margin-top:-12px;" to the footer text. This isn't working.
Here's my CSS:
Code:
a.footer{
color:#ffffff;
font-family:arial, helvetica, sans-serif;
font-size:10pt;
text-decoration:none;
padding:0px 4px 2px 4px;
margin-top:-12px;
display:inline
}
a.footer:hover{
color:#89c6e6;
font-family:arial, helvetica, sans-serif;
font-size:10pt;
text-decoration:none;
padding:0px 4px 2px 4px;
margin-top:-12px;
display:inline;
}
and here is the code for my footer:
Code:
<div id="footer">
<img src="images/common/nav/line.gif" />
<span class="footer"> © 2007 MaxiFlex LLC </span></div>
<img src="images/common/nav/line.gif" />
<a class="footer" href="http://www.maxiflexllc.com/ControlPanel/">MaxiFlex Webmail</a> </div>
<img src="images/common/nav/line.gif" />
<a class="footer" href="http://www.maxiflexllc.com/reps/">MaxiFlex Reps</a> </div>
<img src="images/common/nav/line.gif" />
<!-- end #footer --></div>
Can anyone see what I'm doing wrong?
thanks!
|