Why is the below situation happening? Can’t the hyperlink display inline with the rest of the text?
.test {
padding: 25px;
display: flex;
height: 100%;
text-align: center;
font-size: 25px;
font-weight: 600;
line-height: 1.2;
opacity: 0.7;
align-items: center;
}
<div class="test">No results found. Looks like you may need some expert advice from our Customer Care team! Please <a href="https://ggogle.com">contact us</a> or check your selections.</div>
>Solution :
Just wrap your text with "p" tag. because it is like bare without it. it can fall apart.
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<style>
.test {
padding: 25px;
display: flex;
height: 100%;
text-align: center;
font-size: 25px;
font-weight: 600;
line-height: 1.2;
opacity: 0.7;
align-items: center;
}
</style>
<body>
<div class="test">
<p>No results found. Looks like you may need some expert advice from our Customer Care team! Please <a href="https://ggogle.com">contact us</a> or check your selections.</p>
</div>
</body>
</html>