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
Solved

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

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

Suggested Solutions

Title # Comments Views Activity
tiny glitch in my main slider 3 39
Code enhancement 4 21
Button on Table, name table1 not working 4 21
Toolbar to format all windows forms controls at design time needed 5 13
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
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 …

856 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