Questions tagged [padding]

Extra space inserted into memory structures to achieve address alignment -or- extra space between the frame and the content of an HTML element -or- extra spaces or zeros when printing out values using formatting print commands like, in C, the printf*-family of functions.

Padding in memory structures is the insertion of additional bytes of unused space to make the internal fields of a structure align to desirable address boundaries.

Padding in HTML layout is extra space inserted between the content of the element and its border or frame. Padding is space added to the interior of the element; margin is space around the exterior of the element.

In arrays, padding is addition of extra 0's (zeros) in one or more dimension of the array in a symmetric, circular or replicating manner. This is important for signal and image processing, in the context of and convolution.

3517 questions
1
vote
2 answers

Google Chrome Bug with CSS Padding style applying to empty cells

I have a problem only in Google Chrome (Firefox, IE, Netscape, Safari and Opera are Okay) where a padding property which should be applied to text in a cell, is being applied to all empty cells aswell. It's easy to solve by adding more specific…
Supernovah
  • 1,756
  • 12
  • 32
  • 49
1
vote
2 answers

how do you have css padding around a multiline div

i have the following css to put padding around a div: .orangeAllDay, .orangeAllDay a { background: #fab384 !important; color: white; padding: 5px; } it works great until the content (which happens to be inside a cell in an html table…
leora
  • 163,579
  • 332
  • 834
  • 1,328
1
vote
0 answers

MySQL Append Padding, Encrypting, Persisting and Retrieving

I'm dealing with some small data, which needs padding to help with its security. I need to add random padding to the original string before encrypting it and storing it in a database. Can someone provide a clean/standard way of doing this? Update I…
James Oravec
  • 16,761
  • 25
  • 77
  • 145
1
vote
3 answers

Create a list of button which is the same width

The effect I would like to create is like this On desktop, there are case that have 1 to 3 buttons. If 3 buttons , it should match the full width of the body , and leave a margin between button. If less than 3 buttons , it should align…
user782104
  • 12,011
  • 51
  • 154
  • 289
1
vote
1 answer

angular modal how to change .modal-body padding

enter image description hereCSS:the picture shows that the first css works but the second one not works. .large-Modal .modal-dialog{ width:800px; } .large-Modal .modal-dialog .modal-content .modal-body { padding: 10px!important; } JS: var…
Zeren LI
  • 13
  • 4
1
vote
1 answer

container wont display padding

My .container won't display padding. I have tried multiple methods and it won't pad. CSS: nav{ border-style: solid; border-color: green; float: left; padding-left: 10px; padding-right: 10px; display: inline-block; height:…
Adam
  • 27
  • 5
1
vote
1 answer

is padding ViewPager in order to view multiple pages bad practice?

Basically, I'm trying to create a 3 day calendar view. My example is working so far as shown in the screenshot. The pages 'snap' as well. screenshot on ViewPager with multiple views In order to achieve multiple pages visible at the same time I used…
ovg
  • 1,056
  • 1
  • 11
  • 25
1
vote
0 answers

Why padding-top disapears after a line break of the content inside a div at a certain media-query?

In my note app I have a dashboard which shows me all the notes. I making it responsive now and I have a media query at 520px which changes the font sizes of the content of the div. As soon as the content breaks a line padding-top disappears?…
trickydiddy
  • 507
  • 5
  • 20
1
vote
1 answer

What's a compact way of casting a struct into a byte slice in Go?

When writing network code we often find ourselves populating structs from byte slices to access the data in form of an object. Let's take this struct type PACKETHEAD struct { Type uint16 Size uint16 Hash uint32 } and a byte slice that…
I .
  • 73
  • 1
  • 8
1
vote
3 answers

Add margin on top of the background image

I want to add margin on top of the background image. Here is my background-image css code body { background-image:url(Images/Home.png); background-position:top; background-repeat:no-repeat; background-attachment:fixed; } I tried to add…
Ruffy R
  • 11
  • 1
  • 5
1
vote
2 answers

Is possible to add some padding into an Array?

I was wandering..... Is possible to add some padding into an array? For example: if i have something like var array:[NSDate] = [] What kind of data can i put inside the array as padding to obtain an array of 5 elements like array[NSDate, padding,…
Swalsz
  • 33
  • 2
1
vote
1 answer

HTML automatically adding padding?

My problem with this HTML script is that I'm always get a padding-bottom in each div. Can anybody see why? * { margin: 0px; padding: 0px; } body { width="1920px"; height="1080px"; } …
vinzenzb
  • 11
  • 2
1
vote
0 answers

odoo8+pgpool2 ParseError: "Incorrect padding

i try to connect my odoo8 to my pgpool. I write into the odoo-server.conf corrects paramters to connect with my pgpool and it work fine.. but, when I create a new database trought odoo, it begins to create tables, index, .. but give me next error: …
Juan R.
  • 11
  • 2
1
vote
3 answers

Android InputText Padding not working properly

I have a problem with the padding of a EditText from an alertDialog. I want it to not touch the sides but it does despite the setPadding I put.. Here's my code: EditText temp = new EditText(this); temp.setInputType(InputType.TYPE_CLASS_TEXT…
dequec64
  • 883
  • 1
  • 7
  • 25
1
vote
2 answers

Equal height columns with padding

Hey. I have the following markup:
ManiSto
  • 638
  • 1
  • 8
  • 23
1 2 3
99
100