This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Rotation of text Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Rotation of text" Watch "Rotation of text" New topic
Author

Rotation of text

Naseem Khan
Ranch Hand

Joined: Apr 25, 2005
Posts: 809
Hi,

I want to rotate a character of an html text. Say in Javaranch, I want to rotate J by 180, then rest of the character as it is in the same line.

Currently what I am getting:

[Inverted j]
avaranch (comes in the next line)

By following code:



How to get the rest of the character in the same line instead of the next line?

Regards,
Naseem Khan

Edited: Code added
[ July 12, 2007: Message edited by: Naseem Khan ]

Asking Smart Questions FAQ - How To Put Your Code In Code Tags
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
What is the code you are using? Guessing an IE's DXImageTransform.

Eric
Naseem Khan
Ranch Hand

Joined: Apr 25, 2005
Posts: 809
Hi,

Finally I am able to add code. Not fully because its not allowing me. I did all sort of rnd. Replaced all html tags with [ and ], then with { and }, < with and without internal space, but its not allowing html tags. Could be problem with attrbiute as well. I renamed all attributes.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
hint for future posting, replace the o in onload with &#111;

Eric
[ July 12, 2007: Message edited by: Eric Pascarello ]
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
The problem is you are using a block element. A div is a block element so it has a line break after it. You need to use an inline element. Try a span. If that does not work than I have another idea.

For that you can use css float.

Eric
Naseem Khan
Ranch Hand

Joined: Apr 25, 2005
Posts: 809
Yeah, Thanks first with span it worked. I just changed my div tag with span.

Secondly as per your post I did the same by changing o of onload and then I am able to post my html tag.



[ July 12, 2007: Message edited by: Naseem Khan ]

[ July 12, 2007: Message edited by: Eric Pascarello ]
[ July 12, 2007: Message edited by: Naseem Khan ]
Naseem Khan
Ranch Hand

Joined: Apr 25, 2005
Posts: 809
Hi Eric,

I have one concern regarding HTML post on Javaranch. Most of the time I face problem in posting html tags on Javaranch. Is this problem related to parsing html tags? Even the suggestion, which it gives, is not very helpful.

In my case, it says replace < with & lt; (without internal space) which I did, but still it was giving the same error with the same suggestion. Next it says problem could be using name cookie. There is no cookie used in my html code.

Problem was actually with onload attribute of body tag which you pointed out.

I faced a problem in using html tags in xml file. There is a mail tag that I have to use in an xml file. That mail tag is having certain mailing attributes like from, to, cc, subject and body.

In the body attribute, we want to use html tags. Since it�s an xml file so I have to escape < in the xml. There what I did is I used [ in the xml file instead of < tag. Then in java code, I replaced all [ with < by regex pattern in order to get correct html code.

Why Javaranch is not having that flexibility in posting HTML codes?

Warm Regards,
Naseem Khan
Naseem Khan
Ranch Hand

Joined: Apr 25, 2005
Posts: 809
Originally posted by Eric Pascarello:
The problem is you are using a block element. A div is a block element so it has a line break after it. You need to use an inline element. Try a span. If that does not work than I have another idea.

For that you can use css float.

Eric


Hi Eric,

I have one more query. Now I want to rotate the same charater by 180 degree by css float which you are talking about.

For that do I have to write a css for that?

Regards,
Naseem Khan
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Rotation of text