Vertical Text - Javascript - Web Dev. - Neils Resource Web |
Summary of Content |
A property that I came across that struck me as being very useful, however I've yet to find out where. It allows the placing of text vertically left or right of a page or section using the DIV element. |
| |
Using this property with a bit more CSS and a bit of javascript, control of positioning is much better....... | |
Header Section | |
<style type="text/css"> .verticaltext{ | open statement |
font: bold 11px Arial; | font weight and size |
color: navy; | font colour |
position: absolute; | position static |
right: 3px; | distance from the right |
top: 120px; | distance from the top |
width: 15px; | width of text block |
writing-mode: tb-rl; | (t)op to (b)ottom - (r)ight to (l)eft |
} </style> | close statement |
Body Section | |
<script type="text/javascript">
<a href="http://www.macpherson-neil.co.uk">Neil MacPherson.</a></div>'
</script> | |
This example is shown at the top right (of this table) |
Last Update: 19/01/2008 - Javascripts - Vertical Text (e.g Copyrights etc.) - Neils Resource Web