Windows 10: RichTextBox Vertical Alignement of Text is Too Low

Discus and support RichTextBox Vertical Alignement of Text is Too Low in Windows 10 Software and Apps to solve the problem; I have a RichTextBox that I am using instead of a TextBox because I wish to color code certain characters in the text. When the text is displayed, it... Discussion in 'Windows 10 Software and Apps' started by Tony_Hedge, Dec 23, 2023.

  1. RichTextBox Vertical Alignement of Text is Too Low


    I have a RichTextBox that I am using instead of a TextBox because I wish to color code certain characters in the text. When the text is displayed, it is displayed too low, such that the 'descenders' of characters are cut off. In the example below the text should display as 13, 14. But it looks like 13. 14 as the descender of the comma character is cut off.I have tried making the height of the RTB much greater and keeping the font size the same, but the descender is still cut off. It seems to me that the line height is too small for the font size. But if I reduce the font size from 9.25 to 8, t

    :)
     
    Tony_Hedge, Dec 23, 2023
    #1
  2. temp02 Win User

    Vertically align text in search button...

    Is this what you wanted?
    PHP: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="XHTML namespace"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Joseph Leckie Academy - Walsall</title> <link href='http://fonts.googleapis.com/css?family=Lato:400,300' rel='stylesheet' type='text/css' /> <style type="text/css"> #txtSearch { border: 2px solid #980434; border-radius: 15px; height: 26px; vertical-align: middle; width: 180px; font-family: "Comic Sans MS"; line-height: 26px; text-align: center; } #btnSearch { background: none repeat scroll 0 0; color: #FFFFFF; height: 30px; width: 80px; border: 2px solid #980434; background-color: #994878; text-shadow: 0 -1px 0 rgba(0, 0, 0, .3); font-family: Lato; font-weight: bold; font-size: 10px; padding: 7px 0px 7px 0px; text-align: center; vertical-align: middle; } #apDiv1 { position: absolute; left: 50%; top: 0px; width: 1024px; height: 800px; z-index: 1; margin-left: -512px; } #apDiv2 { left: 0px; top: 0px; width: 1024px; height: 34px; z-index: 2; line-height: 30px; background-color: #994878; text-align: left; color: white; vertical-align: middle; } body, td, th { font-family: 'Lato'; font-size: 12px; font-weight: bold; } </style> </head> <body> <div id="apDiv1"> <div id="apDiv2"> <table cellpadding="0" cellspacing="0" width="100%" align="left" border="0"> <tbody> <tr> <th scope="col" height="34" width="569"> &nbsp;&nbsp;&nbsp; <? echo (date("l j F , Y")); ?> </th> <th scope="col" height="34" width="75"> &nbsp; </th> <th scope="col" height="34" width="380"> <form id="form1" name="form1" method="post" action=""> <div align="right"> <input name="txtSearch" id="txtSearch" value=" Search Website" type="text" /> &nbsp; <input name="btnSearch" id="btnSearch" value="SEARCH" type="submit" /> &nbsp;&nbsp; </div> </form> </th> </tr> </tbody> </table> </div> </div> </body> </html>[/quote] There where a couple of minor errors that could cause IE to parse the elements wrongly.
    other than that, it looks fine in FF, but I still slapped a couple of text-aligns.
    Also move all your CSS to an external file, than include it on the header, it's not only cleaner but also easier to maintain.
    Good luck.
     
    temp02, Dec 23, 2023
    #2
  3. Akumos Win User
    Vertically align text in search button...

    Hi All.. I'm trying to centre the text on my sear ch button but it's not working... tried everything!!

    Also, IE8 puts a line break before the date... so annoying!

    Thanks for looking!!

    http://www.josephleckie.site88.net

    PHP: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="XHTML namespace"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Joseph Leckie Academy - Walsall</title> <link href='http://fonts.googleapis.com/css?family=Lato:400,300' rel='stylesheet' type='text/css'> <style type="text/css"> <!-- #txtSearch { border: 2px solid #980434; border-radius: 15px; height: 26px; vertical-align: middle; width: 180px; font-family: Comic Sans MS; line-height: 26px; } #btnSearch { background: none repeat scroll 0 0#; color: #FFFFFF; height: 24px; width: 80px; border: 2px solid #980434; background-color: #994878; text-shadow: 0 -1px 0 rgba(0, 0 ,0, .3); font-family: Lato; font-weight: bold; font-size: 10px; padding: 7px 0px 7px 0px; } #apDiv1 { position:absolute; left:50%; top:0px; width:1024px; height:800px; z-index:1; margin-left: -512px; } #apDiv2 { left:0px; top:0px; width:1024px; height:34px; z-index:2; line-height: 30px; background-color: #994878; text-align: left; color: white; vertical-align: middle; } body,td,th { font-family: 'Lato'; font-size: 12px; font-weight: bold; } --> </style> </head> <body> <div id="apDiv1"> <div id="apDiv2"> <table width="100%" border="0" align="left" cellpadding="0" cellspacing="0"> <tr> <th width="569" height="34" scope="col">&nbsp;&nbsp;&nbsp;<? echo (date("l j F , Y")); ?></th> <th width="75" height="34" scope="col">&nbsp;</th> <th width="380" height="34" scope="col"><form id="form1" name="form1" method="post" action=""> <div align="right"> <input name="txtSearch" type="text" id="txtSearch" value=" Search Website" /> &nbsp; <input type="submit" name="btnSearch" id="btnSearch" value="SEARCH" /> &nbsp;&nbsp; </div> </form> </th> </tr> </table> </div> </div> </body> </html>[/quote]
     
    Akumos, Dec 23, 2023
    #3
  4. Rose Cal Win User

    RichTextBox Vertical Alignement of Text is Too Low

    Vertical lines behind text cursor. HELP!

    Hi,

    It is possible that the vertical lines behind text cursor that you see, is can be due to corruptions. To better isolate your concern, kindly answer the following questions:

    • Is there a way for you to provide us a screenshot?
    • What troubleshooting steps have you done so far?

    In the Meantime, we suggest that you follow the steps in this article by clicking on this

    link
    . It will let you scan for corruptions and restore corrupted files.

    Let us know if you need further assistance.
     
    Rose Cal, Dec 23, 2023
    #4
Thema:

RichTextBox Vertical Alignement of Text is Too Low

Loading...
  1. RichTextBox Vertical Alignement of Text is Too Low - Similar Threads - RichTextBox Vertical Alignement

  2. text alignment problem

    in Windows 10 Gaming
    text alignment problem: I am having a problem with text alignment in more than one internet explorer. Text appears from left to right, even when I write in Arabic.I tried using ctrl+shift. It only works for word and in google search box, not in other sites, like chatgpt, claud. The Arabic text...
  3. text alignment problem

    in Windows 10 Software and Apps
    text alignment problem: I am having a problem with text alignment in more than one internet explorer. Text appears from left to right, even when I write in Arabic.I tried using ctrl+shift. It only works for word and in google search box, not in other sites, like chatgpt, claud. The Arabic text...
  4. REMOVAL OF TASKBAR VERTICAL ALIGNMENT PERSONALIZATION IN WINDOWS 11

    in Windows 10 Gaming
    REMOVAL OF TASKBAR VERTICAL ALIGNMENT PERSONALIZATION IN WINDOWS 11: TASKBAR VERTICAL ALIGNMENT PERSONALIZATION REMOVED IN WINDOWS 11 : I've had taskbar vertically aligned on left side of my monitor for some time, more efficient for me and the way I work. What is the purpose of removing this capability in Windows 11 to personalize the taskbar?...
  5. REMOVAL OF TASKBAR VERTICAL ALIGNMENT PERSONALIZATION IN WINDOWS 11

    in Windows 10 Software and Apps
    REMOVAL OF TASKBAR VERTICAL ALIGNMENT PERSONALIZATION IN WINDOWS 11: TASKBAR VERTICAL ALIGNMENT PERSONALIZATION REMOVED IN WINDOWS 11 : I've had taskbar vertically aligned on left side of my monitor for some time, more efficient for me and the way I work. What is the purpose of removing this capability in Windows 11 to personalize the taskbar?...
  6. Text not aligned and power schemes unavaible

    in Windows 10 Software and Apps
    Text not aligned and power schemes unavaible: Hello,I have a problem with the text in home screen before login.I've already tried some things like changing themes, deactivating and re-activating login screen but there is still the problem.And I also have a problem in Settings where I don't have choice for default power...
  7. RichTextBox Vertical Alignement of Text is Too Low

    in Windows 10 Gaming
    RichTextBox Vertical Alignement of Text is Too Low: I have a RichTextBox that I am using instead of a TextBox because I wish to color code certain characters in the text. When the text is displayed, it is displayed too low, such that the 'descenders' of characters are cut off. In the example below the text should display as...
  8. Window 11 Taskbar icon Vertical Alignment

    in Windows 10 Gaming
    Window 11 Taskbar icon Vertical Alignment: Hello, I have installed Windows 11 Enterprise Evaluation and the Action center, battery status, sound, wifi and clock icons on the taskbar is showing on the button as showed on the screenshot, I want to change the alignment to center.My Question is:How to change the vertical...
  9. Window 11 Taskbar icon Vertical Alignment

    in Windows 10 Software and Apps
    Window 11 Taskbar icon Vertical Alignment: Hello, I have installed Windows 11 Enterprise Evaluation and the Action center, battery status, sound, wifi and clock icons on the taskbar is showing on the button as showed on the screenshot, I want to change the alignment to center.My Question is:How to change the vertical...
  10. Vertical Taskbar too wide

    in Windows 10 Customization
    Vertical Taskbar too wide: Why is taskbar twice the width when moved to the vertical? I have it set at small icons but it is still twice as wide when compared to a horizontal taskbar. 172353