Site icon Puneet Sharma – Freelance Web Developer

Text aligning center vertically and horizontally in an anchor tag – CSS

Add the following styles to the anchor tag to center/middle align it both horizontally and vetically.

a.center-align{
	display: flex;
	flex-direction: column;
	justify-content: center;
	text-align: center;
}
Exit mobile version