Vertically Align Links In Lists December 23, 2023 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 JugaSelect2 Doesn't Render ProperlyHow Can I Force All Rows In A Table To Have The Same HeightBootstrap Navbar Is Displaying Vertically Instead Of HorizontallyMore information about Line-height Share You may like these postsAlign-middle QuestionVertically Alignment Of A Text Inside A Button With An ImageVertical Alignment For Two Inline-block Elements Not Working As ExpectedVertically Align Text Within Div Element Post a Comment for "Vertically Align Links In Lists"
Post a Comment for "Vertically Align Links In Lists"