Solved

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

Posted on 2013-12-25
2
327 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 53

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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

688 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