sircharlo Posted September 13, 2007 Share Posted September 13, 2007 I would like to align this text vertically in the middle.How do I get it to work ?Thanks Link to comment Share on other sites More sharing options...
justsomeguy Posted September 13, 2007 Share Posted September 13, 2007 Vertical-align works fine, it's aligning the text in the middle of the line, but the line itself isn't being aligned. Use the CSS line-height property to change the height of the line to match the height of the container. Link to comment Share on other sites More sharing options...
jason Posted September 15, 2007 Share Posted September 15, 2007 use line-height propertymaybe Link to comment Share on other sites More sharing options...
jlhaslip Posted September 15, 2007 Share Posted September 15, 2007 Works fine, just as justsomeguy said it would... #navcontainer ul li a { padding-left:10px; padding-right:10px; background-color: transparent; color: White; font-variant: small-caps; text-decoration: none; float: left; border-right: 1px solid black; line-height:26px; } Might want to look into using UTF-8 instead of char-set iso-8859-1 for those French language characters. They didn't work too well in my copy. Link to comment Share on other sites More sharing options...
sircharlo Posted September 15, 2007 Author Share Posted September 15, 2007 So i don't need the height attribute at all ? Link to comment Share on other sites More sharing options...
jlhaslip Posted September 15, 2007 Share Posted September 15, 2007 remove it and see. Link to comment Share on other sites More sharing options...
sircharlo Posted October 6, 2007 Author Share Posted October 6, 2007 Okay, I fixed line-height, but it is still not centered Link to comment Share on other sites More sharing options...
jlhaslip Posted October 6, 2007 Share Posted October 6, 2007 margins?Paddings?Top?Bottom?Which of those have you tried? Where is the code?This is an old thread, so please update us. Thanks. Link to comment Share on other sites More sharing options...
sircharlo Posted October 11, 2007 Author Share Posted October 11, 2007 Sorry, never mind. Found it. Thanks ! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.