Vertically Align Links In Lists August 27, 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 JugaIs It Possible To Apply A Blur Filter To A Background-image Of A Div With Position:fixed, From Another Div Rendered On Top Of It?Hint.css Manual Line Break In HintHow To Hide Multiple Jquery Toggle() When I Click Outside Of The Menu?More information about Line-height Share You may like these postsPolymer Iron-form Not SubmittingHow To Remove Blank Space On Top Of Page?Type In String On Website ProgrammaticallyIs There An Oncomplete Event For HTML5 Audio? Post a Comment for "Vertically Align Links In Lists"
Post a Comment for "Vertically Align Links In Lists"