Home     SSI Lab     CSS Templates     CSS     Htaccess     Web Design     XHTML

CSS Tutorials

graphic-img   

SSI-D HOME

SSI LAB

CSS Templates

CSS

Introduction

IE Related

General

.Htaccess

Web Design

(X)HTML

HTML-Kit

Resources





Vertical Text

Introduction

Very simply, this guide shows how to make your text vertical using some simple CSS. If the examples below are not vertical then you are not using IE. This technique makes use of "Visual Filters" which are an IE only technology at present.

Tested in IE6 Icon



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 class="verticaltext">Test-1</div>

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

  vertical1 (1K)

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:

  vertical2 (1K)


It is also advised to specify the width otherwise you may get word wrap.


It's not entirely useful but what the heck...




Advertisement Sign up for free to PayBox.me today and get $25 just for joining AND earn up to $20 per day for participating.