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.

3939 questions
1
vote
1 answer

Display inline-block not growing horizontally with child having padding in per cent

When I put an img tag inside a inline-block element and give padding to it the parent isn't growing as it should. article { background: fuchsia; display: inline-block; } img { padding: 5%; }
1
vote
2 answers

How can I change

through

to have same padding as

using em instead of px while keeping them all the same?

No code, just a simple concept I need help with: I want the padding above/below all text items (h1-h6, p, blockquote, code, etc.) to be the same. I want it to be 1em=16px. But, if I set them all to have 1em paddings then the larger-text items like…
Tuckertcs
  • 29
  • 5

1
vote
2 answers

My question is about those pesty HTML borders

I have been creating a web-page to display some images using fancybox. The tables I've built are working fine except for a gap under each row. https://codepen.io/michael-wutzke/pen/MWgMwmd I've tried CSS: table { border-collapse: collapse; /*…
1
vote
1 answer

Python: zfill with rsub padding zeroes

I wrote a script to standardize a bunch of values pulled from a data bank using (mostly) r.sub. I am having a hard time incorporating zfill to pad the numerical values at 5 digits. Input FOO5864BAR654FOOBAR Desired…
physlexic
  • 826
  • 2
  • 9
  • 21
1
vote
3 answers

How to address nested selector in css?

The padding of the table should be 8px, but when there is a modal, the padding should be zero, so that it fills up the whole cell, see picture How can I address that specific selector nested in the table and under different sorts of class and…
Leo
  • 135
  • 10
1
vote
1 answer

Keras padding replaces all my values by 0

In order to adapt a sequence of data I want to use in a univariate LSTM and that have a "multi-step time", The simplest way is to do some padding. My initial dataset looks like this, it's a numpyarray: X [0.295046, 0.325147,…
Nour
  • 117
  • 1
  • 2
  • 10
1
vote
1 answer

How to write an integer x in its unique xLen-digit representation in base 256?

I want to transform the cypher in its base 256 of length xLen cypher (cypher is an instance of mpz_class). In order to do this I use the code below: //Write the integer x in its unique xLen-digit representation in base 256 string str; …
user11903678
1
vote
1 answer

Why do we need padding in seq2seq network

To handle sequences of different, I would like to know. Why do we need padding the sequence the word to the same length? If the answer is "Yes, you need padding.". Can I set the padding in other indexes? For example, if I have an index word like…
Pisit Nakjai
  • 141
  • 1
  • 1
  • 10
1
vote
2 answers

Is there a property or workaround for padding-radius?

I am using a circular button, border-radius:50%; And I have an element inside of my element, in order to make the entire button clickable, and not just the content inside of my element. When I add padding to the element, it makes it so that the…
Nick
  • 155
  • 2
  • 11
1
vote
4 answers

Horizontal Inline List Padding

I've got a horizontal html inline list, which is used for navigation, and I want to remove the padding between the list items. This is because there are images inside each box which need to be touching. I've tried setting margins/padding to 0 for…
Sparkles
  • 191
  • 1
  • 2
  • 9
1
vote
1 answer

Exception/exclusion for -Wpadded warning

I have -Wpadded warning option on (gcc/g++) and getting these warnings for non-padded C/C++ structures as expected. Now, I want to exclude some of the structures from that warning without having to actually pad them. To make things even more…
OpalApps
  • 149
  • 13
1
vote
2 answers

How to padded strings with zero`s in java?

According to the requirement i want to get a unique reference according to following format. Reference should be = 15 Chars Date Format(yyyy-MM--dd) + ZERO`s + Id ; ex 1 = 201911070000181 ex 2 = 201911070000090 In the code sample i have shown date…
Das_J
  • 71
  • 2
  • 9
1
vote
1 answer

Possibility of padding in fundamental types

As stated at cppreference (emphasis mine): The value of std::numeric_limits::digits is the number of digits in base-radix that can be represented by the type T without change. For integer types, this is the number of bits not counting the sign bit…
Mestkon
  • 3,532
  • 7
  • 18
1
vote
3 answers

firefox issue with the padding-right of the container box

there's a container with background-color and padding specified. there's an image inside it. in a full screen browser window it looks like as it should look like: http://img263.imageshack.us/img263/4792/61536769.png but after resizing the window…
pogi
  • 13
  • 3
1
vote
0 answers

is there any method to get the row and column number in a uitextview

I am trying to achieve a task in which the user the will create notes just like iNotes.app, for this i have to give some padding from left, in my case the padding is little more than the actual iNotes(app) and the problem with this is, If I complete…
yunas
  • 4,143
  • 1
  • 32
  • 38
1 2 3
99
100