Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Rotation of text

 
Naseem Khan
Ranch Hand
Posts: 809
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the code you are using? Guessing an IE's DXImageTransform.

Eric
 
Naseem Khan
Ranch Hand
Posts: 809
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hint for future posting, replace the o in onload with &#111;

Eric
[ July 12, 2007: Message edited by: Eric Pascarello ]
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 809
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 809
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 809
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic