473,395 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

to display string in vertical order in ASP

I want to display a string like GOOGLE in following format:
G
O
O
G
L
E

Please guide.
Nov 6 '09 #1
4 2693
Frinavale
9,735 Expert Mod 8TB
You can do this using CSS if you want to.

Place the text into a <div> or a <span> (with a style of display:block) and set the width to the same width of 1 character. Put spaces in between the characters in the string. This will display each character on it's own line....

For example:
Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4.   <title>Verticle Text</title>
  5.   <style type="text/css">
  6.     /*<![CDATA[*/
  7.     .verticle{
  8.       width:10px; 
  9.       padding:0;
  10.       font-size:1.4em; 
  11.       font-family:georgia, "times new roman", serif;
  12.     }
  13.     /*//]]>*/
  14.   </style>
  15. </head>
  16. <body>
  17.   <div id="TextSpace" class="verticle">
  18.     G O O G L E
  19.   </div>
  20. </body>
  21. </html>
-Frinny
Nov 9 '09 #2
GazMathias
228 Expert 128KB
Another (VBScript) way:

Expand|Select|Wrap|Line Numbers
  1. function vertString(string)
  2. dim temp
  3.  
  4. temp = "<p>"
  5.  
  6. for i = 1 to len(string)
  7.   temp = temp & mid(string,i,1) & "<br />"
  8. next
  9.  
  10. vertString = temp & "</p>"
  11.  
  12. end function
  13.  
  14. response.write vertString("Some text to display vertically!")
  15.  
Gaz
Nov 9 '09 #3
Thanks Frinny!!!
But I need this format in ASP not in HTML
Nov 25 '09 #4
GazMathias
228 Expert 128KB
Hi

Did you miss my post, above?

Gaz
Nov 26 '09 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Jeff Thies | last post by:
I'm trying to do a nav list using list items. Roughly this is putting links styled display: block and with a background color. In IE5 (windows, haven't tried Mac yet), adding the display:...
8
by: Harry Haller | last post by:
The right arrow in IE is displayed aligned to the bottom of the line. Is there any way I can display it aligned vertially in the middle? Example: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01...
10
by: John Baker | last post by:
Hi: I have a user who has labels that are set up 3 across and 11 vertical (which is unusual at best), and he wants me to print names and addresses on them. I have already set up for labels 10...
0
by: David Laub | last post by:
When I bind a collection to a DataGrid (with teh single statement DataBind), I love that the property names become the column names/values for the grid. But I HATE that the columns are (seemingly?)...
13
by: Benjamin Smith | last post by:
I am controlling the display status of a table row using the following code. <TR id="CCRow" style="DISPLAY:none"> Instead of hard coding "none" above, I would like to change that value using a...
19
by: jimatqsi | last post by:
I'm using Access 2000 (and also 2003 with same result) in a Windows XP Professional environment on a peer-to-peer network. Files in this system are relatively small. There are about 1,200 rows in the...
2
by: dvomsaal | last post by:
This may be a simple request, but I can't find documentation on it. My page looks like the following: Header information Data Set A Data Set B Footer information
11
by: =?Utf-8?B?UmF5IE1pdGNoZWxs?= | last post by:
Hello, I know I sound like a one-note Johnny on this but I'm still looking for a solution. I need to display characters coming in from a serial port or a socket. I also need to be able to type...
1
by: tuman | last post by:
I am making a project which is related to classified web site. I have used a gridview control. In which put some sqltable data. And i want to show a image which is store in my project folder,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.