Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Display text in vertical direction

Posted on 2003-10-21
6
Medium Priority
?
10,022 Views
Last Modified: 2008-01-09
How do you display text in vertical direction instead of left to right or rigfht to left?
I have a very wide table. Displaying text horizonatlly will end up in huge width for page. So I was thinking of displaying values in vertical direction.
0
Comment
Question by:naveenkohli
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 31

Assisted Solution

by:seanpowell
seanpowell earned 400 total points
ID: 9593592
Here's a basic sample (for IE). You'll need to modify it to fit your needs of course...

<html>
<head>
<title>Landscape Printing</title>
<style type="text/css" media="print">
<!--
div.page  {
writing-mode: tb-rl;
height: 80%;
margin: 10% 0%;
}
-->
</style>
</head>
<body>
<div class="page">
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed
diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam
erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation
ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.
Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie
consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto.</p>
</div>
</body>
</html>
0
 
LVL 23

Author Comment

by:naveenkohli
ID: 9593626
I am not looking for "rl" mode. I need a true vertical display of text.
0
 
LVL 31

Assisted Solution

by:seanpowell
seanpowell earned 400 total points
ID: 9593756
Sorry, I must have printing on the brain.

You can do this with absolute positioning and the MS filter...

<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Rotate table</title>
</head>
<body>
<DIV ID="oFilterDIV" STYLE="position:absolute; top:0px; left:0px; filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=1)">
<table border="1" cellpadding="0" cellspacing="0" width="200">
  <tr>
    <td>1</td>
    <td>4</td>
  </tr>
  <tr>
    <td>2</td>
    <td>5</td>
  </tr>
  <tr>
    <td>3</td>
    <td>6</td>
  </tr>
</table>
</DIV>
</body>
</html>
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 15

Assisted Solution

by:VincentPuglia
VincentPuglia earned 200 total points
ID: 9600546
Hi,

  Why don't you simply place the text within its own table and set the widths to whatever you want?

<script>
txt = "<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exercitation  ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto.</p>"
</script>
<body>
<table width="100%" border="1">
<tr>
<td width="33%">
<table>
<tr><td><script>document.write(txt)</script></td></tr></table>
</td>
<td>1</td>
</tr></table>
</body>

Vnny
0
 
LVL 2

Accepted Solution

by:
Yavor_01126 earned 400 total points
ID: 9679430
Hi !

I was making that in my own project but never remember it how I do that       :-(

But as I now think there are a few ways of doing it :

1.   Give the text just as simply typing an enter from ASCII code
2.   Just make the text in field and for each letter set it in the bottom field and so on  (I am a BG and may not understand my english in some places  sorry !)
3.   Make a script ! I will not think yet of a script because I retired doing JScripts but may help you by
starting MS Front Page and just as in ms word click the button for vertincal alignment


Hope I helped !

Regards!!!
 Yavor
0
 
LVL 23

Author Comment

by:naveenkohli
ID: 9732008
I ended up implementing a control that converts the text into images on the fly. And then I rotate the image at any angle I wish.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

722 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question