ubonline
12-17-2010, 02:18 PM
Hi, I am having touble with vertical alignment in IE vs Firefox.
In the header of my blog, I have links that appear inside an image. In Firefox the links are centered vertically, but in IE they move to the top. I've tried changing the padding, but can't get it to work right in both at the same time. How do I get them centered vertically in both IE and Firefox?
Here is my code:
<div style="clear: both; margin:0 auto; "></div>
<div style="background-image: url(http://www.mysite.com/images/sidebar_center.jpg); border: #000000 1px solid; height: 30px; width: 850px; padding: 6px; margin: 0px auto; font-size: 11px; ">
<p><font face="verdana" color="#ffffff">
<a href="http://www.mysite.com.com/"><font color="#ffffff">Home</font></a> |
<a href="http://www.mysite.com.com/blog/"><font color="#ffffff">Blog</font></a> |
<a href="http://www.mysite.com/contact/"><font
color="#ffffff">Contact</font></a> |
</font></p>
</div>
Any help is appreciated.
In the header of my blog, I have links that appear inside an image. In Firefox the links are centered vertically, but in IE they move to the top. I've tried changing the padding, but can't get it to work right in both at the same time. How do I get them centered vertically in both IE and Firefox?
Here is my code:
<div style="clear: both; margin:0 auto; "></div>
<div style="background-image: url(http://www.mysite.com/images/sidebar_center.jpg); border: #000000 1px solid; height: 30px; width: 850px; padding: 6px; margin: 0px auto; font-size: 11px; ">
<p><font face="verdana" color="#ffffff">
<a href="http://www.mysite.com.com/"><font color="#ffffff">Home</font></a> |
<a href="http://www.mysite.com.com/blog/"><font color="#ffffff">Blog</font></a> |
<a href="http://www.mysite.com/contact/"><font
color="#ffffff">Contact</font></a> |
</font></p>
</div>
Any help is appreciated.