Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 29th, 2004, 10:30 PM
Authorized User
 
Join Date: Jun 2004
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to create label with vertical text?

Hi, I have tried and find the elements of the "label" in html but none of it can set the text into vertical.

I am thinking of the code maybe look like this?
<asp:label id="abc" xxxxxx= "vertical" ........</asp:label>

Is it possible? Or in other way of doing so?

Thanx in advance.

 
Old July 30th, 2004, 01:47 AM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 345
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to gokul_blr Send a message via Yahoo to gokul_blr
Default

create the table width smaller and height more for the textbox/row to display the text


 
Old July 30th, 2004, 02:40 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 463
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to madhukp
Default

You can do this with the help of stylesheets. Here is the style to use.

        <style>
        .vertical
        {
            writing-mode: tb-rl;
            filter: flipH flipV;
        }

    </style>

Here is the complete code.

<html>
<head>
    <title>Vertical text</title>
    <style>
        .vertical
        {
            writing-mode: tb-rl;
            filter: flipH flipV;
        }

    </style>
</head>
<body>
<div class="vertical">Test-1</div>
</body>
</html>

In the case of ASP.Net, you can give it like this.

In the document properties, you define the external css file. Then modify the label tag like this.

<asp:label id="abc" class="vertical" ........</asp:label>
 
Old July 30th, 2004, 03:31 AM
Authorized User
 
Join Date: Jun 2004
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yup I just found it in another way by using CCS to display vertical text, but I am thinking is it possible to do it just in the label format?

 
Old July 30th, 2004, 04:37 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 463
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to madhukp
Default

As far as I know ASP.Net, there is no property (other than css) for the label which make it render the text vertical. May somebody else help us.

If it is VB.Net, it is possible. There is a property by name "wordwrap" which you can set and then reduce the width of label to one character wide. This property is not there in asp.net, I think.
 
Old August 1st, 2004, 11:03 PM
Authorized User
 
Join Date: Jun 2004
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am very new to .Net, I am wondering if VB.Net=ASP.Net? Coz u see, when I create a new project(I am using VB.Net), I choose "ASP.NET Web Application". So far I had assumed it is a "combine" technology?

 
Old August 2nd, 2004, 04:34 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Dragonist,

This is a classic ASP forum. You can always post your queries related to .Net in a dotnet forum of this website.

Cheers!

_________________________
- Vijay G
Strive for Perfection
 
Old August 4th, 2004, 07:56 PM
Authorized User
 
Join Date: Jun 2004
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Oops... sorry

 
Old January 18th, 2006, 06:11 PM
Registered User
 
Join Date: Jan 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

I have been using the following code successfully online; but when I try to print the page, it reverses the vertical text. I am printing to networked laser printers that all have the latest drivers installed. Does anyone know a fix for my printing problem?

<style>
        .vertical
        {
            writing-mode: tb-rl;
            filter: flipH flipV;
        }

    </style>
 
Old January 18th, 2006, 06:22 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

mmmmm, madhukp I like that. Ill be looking for a place to use that style...

Wind is your friend
Matt





Similar Threads
Thread Thread Starter Forum Replies Last Post
Vertical Text Header in MSFLEXGRID Andraw Beginning VB 6 0 October 16th, 2008 10:08 PM
Vertical Text - How to stop wrap? mat41 CSS Cascading Style Sheets 26 December 19th, 2006 08:05 AM
how does one get vertical text in HTML? lcsgeek Classic ASP Professional 3 September 9th, 2004 08:47 PM
Create dynamic label in vb.net snowydust VB How-To 1 July 24th, 2004 05:32 AM
ever seen vertical text on a web site? lcsgeek Classic ASP Basics 5 September 23rd, 2003 12:46 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.