I've got a mock-up (img) that I'm attempting to replicate and I'm having a hard time getting everything in just the right place (img).
If I didn't have the gradient over the top this would be easy -- I would just use two separate h1 elements and move them around as needed. The problem is if I do that, the gradient doesn't persist over both elements (img).
I can do other styling changes to the second word (like making it smaller or changing its colour) by wrapping it inside of another tag but I just want to move it slightly up and slightly to the left and that doesn't seem to work.
Here is some working code, does anyone have any thoughts?
#foo {
font-family: 'Fugaz One', 'arial black', sans-serif;
position: relative;
transform: rotate(-7.7deg);
color: transparent;
-webkit-background-clip: text;
background-clip: text;
background-image: -webkit-linear-gradient(7.7deg, #ef8181, #fa9551);
background-image: -moz-linear-gradient(7.7deg, #ef8181, #fa9551);
background-image: -ms-linear-gradient(7.7deg, #ef8181, #fa9551);
background-image: -o-linear-gradient(7.7deg, #ef8181, #fa9551);
background-image: linear-gradient(7.7deg, #ef8181, #fa9551);
font-size: 16vw;
left: -2vw;
top: -10vh;
}
<h1 id="foo">TEXT<br>THERE</h1>
TEXT
` – Rafael Dec 07 '18 at 04:23THERE
`and control the line breaking manually. This can be done by applying `display: flex`, `flex-direction: column`, and `line-height: 14vw` to `#foo`. Now the span tags are flex children and margin top/bottom will work. – Rafael Dec 07 '18 at 04:44
TEXT HERE