Vertically Align Links In Lists November 16, 2024 Post a Comment I've got the following HTML markup; item 1item 2<Solution 1: Use line-height in your <a>(css) To get your link vertical aligned, you need to set it as the same height as the <li>. Your <li>height is 150px. So your line-height should be 150px to. Like in the DEMO and code below here.Css: .blockmenulia { .... line-height:150px; /* The height of your li */ } CopyDEMOBaca JugaCaption Does Not Work After Centering ImageHow To Align Pseudo Element :before :after And Span ElementHow To Check If An Html5 Validation Was Triggered Using Selenium?More information about Line-height Share You may like these postsWhy Does Applying Uk-width-1-1 Effect Child Divs Of Uk-grid But Not Nested Divs Of Child?Multiple Identical Ids In The Same Html DocumentMaking Retina Bullet Points With ImagesHow To Stop Images Within A Flexbox Container Ignoring The Heigth Set By Parent? Post a Comment for "Vertically Align Links In Lists"
Post a Comment for "Vertically Align Links In Lists"