Questions tagged [spacing]

Refers to the blank space (page or screen) between two objects or entities.

Refers to the blank space (page or screen) between two objects or entities.

1104 questions
1435
votes
40 answers

How do I set distance between flexbox items?

To set the minimal distance between flexbox items I'm using margin: 0 5px on .item and margin: 0 -5px on container. This seems like a hack. Is there another property or method intended to accomplish this goal? #box { display: flex; width:…
Sasha Koss
  • 15,129
  • 4
  • 20
  • 27
288
votes
29 answers

Evenly space multiple views within a container view

Auto Layout is making my life difficult. In theory, it was going to be really useful when I switched, but I seem to fight it all of the time. I've made a demo project to try to find help. Does anyone know how to make the spaces between views…
nothappybob
  • 3,097
  • 4
  • 16
  • 15
261
votes
25 answers

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

When I have a TextView with a \n in the text,, on the right I have two singleLine TextViews, one below the other with no spacing in between. I have set the following for all three TextViews. android:lineSpacingMultiplier="1"…
700 Software
  • 85,281
  • 83
  • 234
  • 341
131
votes
11 answers

Why isn't my justify-content property working?

I'm trying to add some space between the sidebar and content area of the template by applying the "justify-content" property to the parent div, but it's not adding that space between the sidebar and content area. I'm not sure what it is that I'm…
VEDA0095
  • 1,575
  • 4
  • 11
  • 13
99
votes
7 answers

Spacing between thead and tbody

I have a simple html table like this: 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…
Alexandru Vlas
  • 1,355
  • 3
  • 18
  • 30
38
votes
5 answers

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

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…
Andre
  • 4,417
  • 8
  • 32
  • 37
36
votes
3 answers

Bootstrap 4 responsive spacing not working

I'm using the classes as defined Applies margin to an element using responsive breakpoints {property}{sides}-{breakpoint}-{size} m(t,b,r,l,x,y)-(sm, md, lg, xl)-(0, 1, 2, 3, 4, 5) Meaning that
Should produce a…
Luis Alves
  • 1,315
  • 1
  • 10
  • 16
33
votes
3 answers

How do I reduce the line spacing between text in my Android layout?

I'd like to decrease the line spacing between the text (User12, 5 movies, 2.5% improved) in the attached layout. Here's the xml below (I tried removing the singleLine="true" statement and tried setting it to false):
user836200
  • 655
  • 2
  • 12
  • 20
31
votes
3 answers

Changing spacing between paragraphs and inside of paragraphs

I found a similar topic, to this, but I can't find the specific CSS to change in WordPress. If you go to my homepage. Or blog. I want to change the spacing within and between paragraphs and am not sure which element I need to modify in my CSS. I…
Dan
  • 423
  • 1
  • 4
  • 5
1
2 3
73 74
Column 1Column 2
Value 1Value 2
Value 3Value…
Ben
  • 2,365
  • 4
  • 22
  • 29
84
votes
9 answers

Spacing between flexbox items

This is what I want: But this is the closest I've got: body{ margin: 0; padding: 0; border: 1px solid red; } .flex{ display: -ms-flexbox; display: -webkit-box; display: -webkit-flexbox; display: -webkit-flex; …
nice ass
  • 16,471
  • 7
  • 50
  • 89
81
votes
3 answers

Remove extra button spacing/padding in Firefox

See this code example: http://jsfiddle.net/Z2BMK/ Chrome/IE8 look like this Firefox looks like this My CSS is button { padding:0; background:#080; color:white; border:solid 2px; border-color: #0c0 #030 #030 #0c0; …
700 Software
  • 85,281
  • 83
  • 234
  • 341
54
votes
4 answers

HTML image bottom alignment inside DIV container

I have a div tag with a fixed height. Most of the images have the same height and width. I want to align the images at the bottom of the div so that they are nicely arranged. Here is what I have so far:
Patric
  • 2,789
  • 9
  • 33
  • 60
53
votes
15 answers

How to adjust space between two UIBarButtonItem in rightBarButtonItems

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…
Bob
  • 2,263
  • 5
  • 21
  • 30
49
votes
14 answers

Center text in div?

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?
Rifki
  • 893
  • 1
  • 11
  • 22
38
votes
5 answers

How to delete border spacing in table

I have a table, first row is like
1 2