Vertically Align Links In Lists May 17, 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 JugaTooltip Appears Over The Element In Intro.js Mobile ViewHow To Execute Css3 Animation Onload Instead Of Hover?Overriding Percentage Font-size Attribute From Html TagMore information about Line-height Share You may like these postsAlign Link To Bottom Of Card In Bootstrap 4Html On Page Totally BrokenGet Value From Select -- ReactIdentifier Already Declared - Identifier 'userscore' Has Already Been Declared Post a Comment for "Vertically Align Links In Lists"
Post a Comment for "Vertically Align Links In Lists"