Post by telrean on May 18, 2014 15:36:49 GMT
These are a few text tricks I use frequently, along with ways in which I've used them. Please note, however, that these breakdowns are provided as is and are intended to show you how to build up code effects and as such I am under no obligations to explain the quirks of my coding. Such questions may be answered if you catch me in the Cbox or via pm, depending on my mood.
You can use px or the percentage to control the above effect, but the percentage requires less guesswork.
Just a little trick that works wonders in removing dead space, which is something of a personal annoyance....
[div style="width: 400px; font: normal 11/10px kartika;"]Just a little trick that works wonders in removing dead space, which is something of a personal annoyance....[/div]
Pretty much the same code, only without the /10 so you can see the difference.
Closing the gap
♢ Between lines
♢ Between lines
[div style="font: normal 11/1px kartika; text-transform: uppercase; line-height:75%;"]Closing the gap
♢ Between lines[/div]
You can use px or the percentage to control the above effect, but the percentage requires less guesswork.
Changing the spacing of a font to seemingly create a new one and no I don't understand why the text-align is needed, but it doesn't work correctly without it.
[div style="width: 400px; font: normal 11px kartika; letter-spacing: -1px; text-align: color: #960018; text-shadow: 0 0 0.2em #F87, 0 0 0.2em #F87;"]Changing the spacing of a font to seemingly create a new one and no I don't understand why the text-align is needed, but it doesn't work correctly without it.[/div]
Without the text-align
Of course hand in hand with letter-spacing is word-spacing....
[div style="width: 400px; font: normal 11px kartika; letter-spacing: -1px; word-spacing: -3px; text-align: color: #960018; text-shadow: 0 0 0.2em #F87, 0 0 0.2em #F87;"]Of course hand in hand with letter-spacing is word-spacing....[/div]
Just for the fun of it here's a bit of text with all of the above tricks utilised, just to show the kind of uses you can get by mixing those codes with others.