Vertically Align Links In Lists January 26, 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 JugaHow Do I Use Logo Plugin In VideojsHow To Convert An Html String To A Pdf Inputstream?Safari 6 (ios 6) Flex Layout Doesn't Wrap ElementsMore information about Line-height Share You may like these postsGet Text Followed By Certain TextCharacters Being Rendered Strangely In HTML/PHPXML To HTML (XSLT): Copy A Node Replacing Some Lines And Adding New OnesPrototype Not Defined When Accessing Children On Creation Of Custom-tag Post a Comment for "Vertically Align Links In Lists"
Post a Comment for "Vertically Align Links In Lists"