The issue I'm facing is that the paragraph element is not displaying on a separate line from the other paragraph element.
body {
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background: #000;
}
p {
position: relative;
font-family: sans-serif;
text-transform: uppercase;
font-size: 2em;
letter-spacing: 4px;
overflow: hidden;
background: linear-gradient(90deg, #000, #000fe6, #000);
background-repeat: no-repeat;
background-size: 80%;
animation: animate 3.75s linear infinite;
-webkit-background-clip: text;
-webkit-text-fill-color: rgba(45, 45, 45, .05);
}
@keyframes animate {
0% {
background-position: -500%;
}
100% {
background-position: 500%;
}
}
<body>
<p>Title</p>
<p>Tag Line</p>
</body>
I am looking for a solution where Tag Line appears below the Title, rather than beside it in the HTML code.
This problem arises because the paragraph element does not go onto a new line after the preceding paragraph element.