Tutorials
CSS
Web Design
XHTML
Javascript
PHP

CSS Tutorials
Satement Terminology
Colour Scrollbars
The Box Hack
Link Styles
Vertical Text
Non scrolling table
Visual Filters
Seperate Style Sheets
Rollover Effect 1
Rollover Effect 2


More information

Tutorials
Vertical Text

This css code shows can one can arrange to have text appear vertically

CSS Code
You can easily make vertical text with the following css:


In to the <head> section put your CSS:

<style>
<!--
#verticaltext {
writing-mode: tb-rl;
filter: flipv fliph;
}
-->
</style>

And into the body:

<div id="verticaltext">Test-1</div>

The result, if it works in your browser, should be:


Test-1

If we want to play with this a little we can, for example, change the filter from 'flip vertical - flip hotizontal' to 'flip vertical - flip vertical'. Combining this with the first example we can have the following:


Test-1Test-2

It is also useful to specify the width otherwise you will get wordwrap.


Discuss this in the Forum  

Search HeaphyDesigns



Stored Pages



Change Site Style
Select a style for the site:




More information