I play with some vertical text as a range inside a title element. The problem is that I cannot figure out how to eliminate the space created between the vertical spacing and the rest of the text content.
Looking at the violin, I am looking to hide “We're just” next to S in Small and “Pursuit of A” next to “B” in Big Feeling.
Now it looks like this:

What i want to do

HTML:
<h2>
<span class="smallVertical orangeText">We're Just A</span>
Small<br/>Company<br/>
<span class="smallVertical">Striving For A</span>
<span class="orangeText">Big Feel</span>
</h2>
CSS:
@import 'https://fonts.googleapis.com/css?family=Oswald';
h2 {
text-align:right;
font-family:'Oswald', sans-serif;
text-transform:uppercase;
font-size:8em;
line-height:1.1em;
}
h2 span.smallVertical {
font-size:12%;
transform: rotate(-90deg);
letter-spacing:0.1em;
float:left;
}
h2 span.orangeText {
color:#FF9900;
}
Fiddle
So basically: How do I eliminate the horizontal space between rotated and non-rotating text using CSS?
source
share