I have been able to vertically align: middle multiple lines of text (navigation) and it works in FF. This does not work in IE7. I have seen multiple ways to align right in IE7 but I have not found one that worked for me. Any suggestions?
bjdmb
0
Newbie Poster
Recommended Answers
Jump to PostThe element vertical align is depended on it's height and line-height property. If height and line-height were the same, the content it would be stay vertically middle. Add line-height to your '.navlinks' property:
.navlinks{ background-image:url(../slices/navbutton.png); background-repeat:no-repeat; height:32px; line-height: 32px; margin-left:-15px; }
Remove 'vertical-align:middle' from anchor link.
All 3 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.