spacing

Change spacing of snaplines in Visual Studio

梦想的初衷 提交于 2019-11-27 07:39:11
问题 Is it possible to change the amount of space snaplines put between controls in a WinForms project in Visual Studio? For example, when I slide a textbox up to another textbox (one above the other), there's 6 pixels of space between the controls. I'd like there to be 5 pixels of space between them when they snap to each other. Thanks. EDIT: Thanks for all of the answers. I thought it might be helpful to summarize the approaches: Option 1 Set the Layout Mode to SnapLines (default) under Tools >

How to adjust text kerning in Android TextView?

最后都变了- 提交于 2019-11-27 06:21:09
Is there a way to adjust the spacing between characters in an Android TextView ? I believe this is typically called "kerning". I'm aware of the android:textScaleX attribute, but that compresses the characters along with the spacing. AFAIK, you cannot adjust kerning in TextView . You may be able to adjust kerning if you draw the text on the Canvas yourself using the 2D graphics APIs. I built a custom class that extends TextView and adds a method "setSpacing". The workaround is similar to what @Noah said. The method adds a space between each letter of the String and with SpannedString changes

How to delete border spacing in table

陌路散爱 提交于 2019-11-27 03:44:55
问题 I have a table, first row is like <tr> <th>1</th> <th>2</th> </tr> I put a black background to "th". Now the 1 and 2 cells have some kind of border between/separating them... I had a look in source code and I think I found something: border-collapse: separate; border-spacing: 2px; This CSS code is listed in source code as "user agent stylesheettable" and I couldn't enable/disable it to test if this is the problem, but I tried and added the same code but with "none" and "0" parameters but it

Center text in div?

混江龙づ霸主 提交于 2019-11-27 01:45:48
问题 I have a div 30px high and 500px wide. This div can contain two lines of text one under the other, and is styled (padded) accordingly. But sometimes it only contains one line, and I want it to be centered. Is this possible? 回答1: To center horizontally, use text-align:center . To center vertically, one can only use vertical-align:middle if there is another element in the same row that it is being aligned to. See it working here. We use an empty span with a height of 100%, and then put the

How to adjust space between two UIBarButtonItem in rightBarButtonItems

元气小坏坏 提交于 2019-11-27 01:35:56
问题 I am using the following codes to add two button to self.navigationItem.rightBarButtonItems, and I think in iOS7, the space between two buttons are too wide, is there a way to decrease the space between these two buttons? UIBarButtonItem *saveStyleButton = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"save.png"] style:UIBarButtonItemStyleBordered target:self action:@selector(saveStyle)]; UIBarButtonItem *shareStyleButton = [[UIBarButtonItem alloc] initWithBarButtonSystemItem

CSS horizontal menu - equally spaced?

帅比萌擦擦* 提交于 2019-11-27 01:23:50
问题 I have a standard CSS menu, made with UL and LI tags. I need them to get to cover the whole page, horizontally (not my real case, but I'll take this to simplify the situation). However, the items are created dynamically and so I'm not able to hardcode any with to LI items, nor margins. I've seen solutions using JavaScript to set those values but I would really love to avoid them. Lastly, I've seen a pretty good solution which is setting #menu { width: 100%; /* etc */ } #menu ul { display:

Spacing between thead and tbody

给你一囗甜甜゛ 提交于 2019-11-26 18:08:06
问题 I have a simple html table like this: <table> <thead> <tr><th>Column 1</th><th>Column 2</th></tr> </thead> <tbody> <tr class="odd first-row"><td>Value 1</td><td>Value 2</td></tr> <tr class="even"><td>Value 3</td><td>Value 4</td></tr> <tr class="odd"><td>Value 5</td><td>Value 6</td></tr> <tr class="even last-row"><td>Value 7</td><td>Value 8</td></tr> </tbody> </table> And I would like to style it the following way: header row with a box-shadow whitespace between the header row and the first

How to change an UILabel/UIFont's letter spacing?

感情迁移 提交于 2019-11-26 18:00:50
问题 I've searched loads already and couldn't find an answer. I have a normal UILabel, defined this way: UILabel *totalColors = [[[UILabel alloc] initWithFrame:CGRectMake(5, 7, 120, 69)] autorelease]; totalColors.text = [NSString stringWithFormat:@"%d", total]; totalColors.font = [UIFont fontWithName:@"Arial-BoldMT" size:60]; totalColors.textColor = [UIColor colorWithRed:221/255.0 green:221/255.0 blue:221/255.0 alpha:1.0]; totalColors.backgroundColor = [UIColor clearColor]; [self addSubview

Android: TextView: Remove spacing and padding on top and bottom

白昼怎懂夜的黑 提交于 2019-11-26 14:58:08
When I have a TextView with a \n in the text,, on the right I have two singleLine TextView s, one below the other with no spacing in between. I have set the following for all three TextView s. android:lineSpacingMultiplier="1" android:lineSpacingExtra="0pt" android:paddingTop="0pt" android:paddingBottom="0pt" The first line of the left TextView lines up perfectly with the top right TextView . The second line of the left TextView is a little higher than the second line of the bottom right TextView . It seems that there is some kind of hidden padding on the top and the bottom of the TextView s.

How to adjust text kerning in Android TextView?

こ雲淡風輕ζ 提交于 2019-11-26 11:57:44
问题 Is there a way to adjust the spacing between characters in an Android TextView ? I believe this is typically called \"kerning\". I\'m aware of the android:textScaleX attribute, but that compresses the characters along with the spacing. 回答1: AFAIK, you cannot adjust kerning in TextView . You may be able to adjust kerning if you draw the text on the Canvas yourself using the 2D graphics APIs. 回答2: I built a custom class that extends TextView and adds a method "setSpacing". The workaround is