Solved

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

Posted on 2013-12-25
2
324 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
This article discusses how to create an extensible mechanism for linked drop downs.
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…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

815 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

8 Experts available now in Live!

Get 1:1 Help Now