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
2 answers

How to set html element padding color same as body color

I've a fixed element at the bottom of the page that stays on top of every other element. It's about 33% of the page's width. As I scroll the page, other elements keep on going behind this element. What I want is a little bit of distance between the…
manisar
  • 103
  • 1
  • 7
1
vote
1 answer

Maybe sometimes box-sizing:border-box' it doesn't work properly?

html { box-sizing: border-box; } *, *::before, *::after { box-sizing: inherit; } .box { height: 100px; width: 500px; padding: 20px; border: 40px solid black; background-color: blue; }
With border-box - with…
1
vote
2 answers

The text inside my HTML button goes outside the button

I have a 'Download' button on my HTML webpage and I have set some attributes for it. Whenever I refresh my page, the button appears like this, very rarely: Text Outside the Button But then, it will look like this and this is the normal-looking…
user14355661
1
vote
1 answer

How to do 'same' padding in PyTorch if (n - 1) / 2 is no integer value

I am trying to reconstruct a neural network written in tensorflow. For the convolutional layer, they just use padding='SAME'. This doesn't exist in pytorch. I know, that I can calculate the padding with p = (n - 1) / 2 for stride=1. But what if this…
spadel
  • 998
  • 2
  • 16
  • 40
1
vote
1 answer

Understanding JSEncrypt

I have been exploring various JavaScript libraries for RSA encryption and decryption and have came across one, JSEncrypt at https://cdnjs.cloudflare.com/ajax/libs/jsencrypt/2.3.1/jsencrypt.min.js. However, I face great difficulty in trying to…
Kalainde V
  • 55
  • 1
  • 9
1
vote
3 answers

How can I append zeroes in place of empty spaces after the decimal in a number?

This is the question and I am stuck that how can I append zeroes in place of empty spaces after the decimal in java. enter link description here
NmdvDisha
  • 57
  • 6
1
vote
4 answers

Is there a way to access members of a struct

I want to be able to find the size of the individual members in a struct. For example struct A { int a0; char a1; } Now sizeof(A) is 8, but let's assume I am writing a function that will print the alignment of A as shown below where "aa"…
taho
  • 67
  • 1
  • 1
  • 6
1
vote
1 answer

Background Color in CSS Going Over in Table

In my HTML project, I set the background color of a table tr to white, but it goes over the edge of the table with padding = 10px; --!
user14210589
1
vote
1 answer

Image has unwanted padding/space around it

I'm trying to position a circular image using css but it turn out it has some transparent space/padding around it! Here's the image: I tried padding: 0; and margin: 0; but it isn't working! This space is messing the layout and position of every…
Kashi
  • 99
  • 2
  • 11
1
vote
1 answer

How do I make a margin which collapses responsively?

I have three cards in the middle of my page: ------ ------ ------ | | | | | | | | | | | | | | | | | | ------ ------ ------ I have set a 15% margin on the left and…
Matt
  • 105
  • 7
1
vote
2 answers

AES 256 with PKCS7 padding

The GST Council has approved the implementation of ‘e-Invoicing’ or ‘electronic invoicing’ of Business to Business (B2B) invoices to GST System if company turnover is greater that 500 crore. Ref of gst portal API…
Ashish gupta
  • 31
  • 1
  • 7
1
vote
1 answer

Differences in padding on browsers

I tried to ignore it initally, but its gotten up to a point where its fairly annoying. I have quite a few forms in my webiste and im applying a css padding of 3px for the submit buttons. They all look fine on Firefox, but none of these styling are…
Ben
  • 1,233
  • 2
  • 14
  • 17
1
vote
0 answers

Codename One Popup Dialog reduce Padding

I have an Android App that uses several popup dialogs. I could figure out quite well how to style them, but there is still a big padding that looks odd on the screen. Especially the top padding is huge. Seems to me that this the space for the title…
rainer
  • 3,295
  • 5
  • 34
  • 50
1
vote
2 answers

Padding/width issue - Can I use box-sizing with a grid system e.g. 960 grid system?

I have been using the 960 grid system for a while and I always have the problem when adding padding to my divs. I am wondering if it is a good/safe practice to modify the grid system CSS and add box-sizing: border-box to my *grid_x* classes. Are…
tif
  • 1,109
  • 2
  • 12
  • 32
1
vote
1 answer

Size of RTP padding h264 over rtp

According to RFC 6184 in 5.6. Single NAL Unit Packet : 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0…
MicrosoctCprog
  • 460
  • 1
  • 3
  • 23