underline

Add a border only to the bottom of wrapped text

放肆的年华 提交于 2019-12-10 09:28:15
问题 I'm trying to achieve an underline on some wrapped text that fits to the width of the bottom row of text whilst only appearing underneath that bottom line. Figure 1 illustrates the desired effect Figure 1 Using this HTML: <h2><span class="inline-block">optatur, volendit inum simolor</span></h2> and setting the span to display:inline; I can get the underline to fit perfectly with the width of the text but it underlines all of the text. Or , setting the span to display:inline-block; I can get

UITextView underlined text

笑着哭i 提交于 2019-12-08 06:11:38
问题 I have UITextView and want to underline selected text. It is working by this code NSRange range = selectedTextView.selectedRange; NSTextStorage *textStorage = selectedTextView.textStorage; [textStorage addAttribute: NSUnderlineStyleAttributeName value:[NSNumber numberWithInt:NSUnderlineStyleSingle] range:range]; But letters which have "a tail" under baseline (as q y g p) are not underlined (screenshot: http://i.stack.imgur.com/dRrEH.png). Also I noticed that space between baseline and

Underlining Text in an <input> Box

心已入冬 提交于 2019-12-07 06:41:14
问题 I've gotten a request from a client to underline text in a text field. Both single and double lines. Is this even possible? I assume with some obscure plugin but I haven't found it yet. :P I've thought about there being 2 possibilities, if this is possible. Underlining the text in the actual field. Doing some crazy hack with text just underneath the text field. Thanks for any help and/or commentary. ^_^ 回答1: The following works in Chrome 6.0.472.55/Ubuntu 10.04, and Firefox 3.6.9 (also Ubuntu

Changing the color of EditText's underline

馋奶兔 提交于 2019-12-07 02:02:44
问题 I have tried to change the underline color of my EditText with the help of this thread. I did the same thing - this is the EditText with the android:background set as @drawable/edt_bg_selector . <EditText android:layout_width="wrap_content" android:layout_height="wrap_content" android:ems="10" android:id="@+id/editText4" android:layout_weight="1" android:elevation="0dp" android:background="@drawable/edt_bg_selector" /> My edt_bg_selector : <?xml version="1.0" encoding="utf-8"?> <selector

How to make Label Text Underline?

旧城冷巷雨未停 提交于 2019-12-06 17:59:42
问题 How can I make Label text Underline in WPF? I am stucked and could not find any property for underline: <Label Name="lblUserName" Content="Username" FontSize="14" FontWeight="Medium" /> 回答1: In Label no TextDecorations, therefore try this: <Label Width="100" Height="30"> <TextBlock TextDecorations="Underline">TestText</TextBlock> </Label> Edit: more universal solution In this case, instead of Label.Content using Label.Tag , because Content property can be set only once: <Label Tag=

UITextField underlines from NSAttributedString are only 1 pixel high?

青春壹個敷衍的年華 提交于 2019-12-06 12:37:26
问题 The label (bottom of the picture) and the text field (top) have the same same attributedText. But look at the underlines. The ones in the text field are only one pixel high. This looks terrible. Does anyone know what is causing this or how to prevent it? - (id)initWithFrame:(CGRect)frame { self = [super initWithFrame:frame]; if (self) { UITextField* textField = [[UITextField alloc]initWithFrame:CGRectMake(100, 100, 600, 200)]; NSMutableAttributedString* string = [[NSMutableAttributedString

Underline fixed in input text

戏子无情 提交于 2019-12-06 10:41:13
I'm trying to fixed the underline in all input text type, but without success. Example: My code: input { width: 100%; background-color: #fcfcfc; border: 0; padding: 10px; } <div class="col-lg-6 col-md-6 col-xs-12 col-sm-12"> <label for="endereco">Endereço:</label> <input class="" id="endereco" type="text" tabindex="2" minlength="5" required> </div> Use linear-gradient as background to create a line and you can easily control its size and position like this: input { width: 300px; background: linear-gradient(to right, #000, #000) 5px calc(100% - 5px)/calc(100% - 10px) 2px no-repeat; /* <5px calc

StaticMenuItemStyle vs. StaticSelectedStyle - Does one overwrite the other?

末鹿安然 提交于 2019-12-06 08:41:24
问题 I am building a custom asp:menu control in ASP.NET using C# code behind. It is based on the sitemap to my website. Here's the basics of the menu: <%@ Control language="C#" autoeventwireup="true" codefile="Control.ascs.cs" inherits="menuClass" %> <asp:menu id="myMenu" datasourceid="sitemap" runat="server"> <staticmenuitemstyle font-underline="true" /> <staticselectedstyle font-bold="true" font-underline="false" /> </asp:menu> It should be pretty obvious that I want the clicked menu item to be

Winforms MenuStrip Underlined Hotkey Letter

寵の児 提交于 2019-12-06 01:27:17
问题 Typically the hotkey letters on a MenuStrip are underlined. (&File, &Open, etc) On a project I'm working on the underline shows up in the designer, but not at run time. I can't find the property that controls this. Anyone out there know? 回答1: In Windows, there is a setting whether or not to show the underline. To change the setting, Right click on the desktop Select "Properties" Click on the "Appearance" tab Click the "Effects" button Uncheck the box labeled "Hide underlined letters for

CSS linked images are being underlined (“a” display is set to block)

烂漫一生 提交于 2019-12-06 01:17:23
I have a menu for which I wanted all of the space around the text, within each individual item, to take the user to the specified page. I looked around on the web and found that the best solution is to set the "a" display to block, as follows: a { display: block; height: 100%; text-decoration: underline; } I have managed to get this working perfectly but want to put images in some of them - like a calendar icon for the events option. I notice it is now underlining the links too. Is there any way to get rid of this? The links have padding-right set to 5px if that helps narrow down the cause /