Solved

Trying to get text to grow to the left in a webbrowser control.

Posted on 2013-12-25
2
320 Views
Last Modified: 2013-12-25
I am trying to use a web browser like a label to try and display text.  I need this text to be displayed right to left.

The syntax that I am using is webbrowser1.DocumentText="<p dir=""RTL"">" & "Hello world" & "</p>".  

Now this seems to work except the only character in the string that is displayed is "H".  I think that the text is growing to the right (out of view) instead of to the left.  How do I make the text grow to the left?
0
Comment
Question by:NevSoFly
2 Comments
 
LVL 52

Accepted Solution

by:
Scott Fell,  EE MVE earned 500 total points
ID: 39739630
You will want to show us the rendered html and not your asp code. You can always back out the answer to asp.  In this case, if we just take your example as html it works. The code is below and working sample at http://jsbin.com/eCiMAgek/1/edit?html,output

Your problem will have to do with other css or possibly js that are manipulating the output.  If you can create a demo page and a link for us to see, we can help.  Just a simple example with the one word as you have but include all of your css and js code.

<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
  <p dir="RTL">Hello world</p>  

</body>
</html>

Open in new window

0
 

Author Closing Comment

by:NevSoFly
ID: 39739686
Thank you for your fast response especially on xmas!  The problem turned out to be coder error due to too much Cabernet.

Merry Holidays!
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Someone recently asked me about how to display a progress indicator on a page while an iframe is loading. And I remember when I first came across this myself. It was a bit tricky to get my head around, but really, it's very simple. The most impor…
This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…

762 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now