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

Combing ScrollView's adjustPan and adjustResize feature

I am facing an issue in Scrollview.On Keyboard input of Bottommost EditText, I want adjustPan feature to occur and that is working fine if I use "stateHidden|adjustPan" in Manifest file. The problem is if I click on any middle element of scrollbar…
user9683713
  • 185
  • 2
  • 13
1
vote
2 answers

HTML input field placeholder text cut off at the end

I have an HTML input form with a field with placeholder text that gets cut off at the end, beyond the padding. I can't locate what's causing it.
SUM1
  • 771
  • 8
  • 13
1
vote
1 answer

Why is padding not being applied on the list item element?

This is my html code:
1
vote
0 answers

How do I code for a new line with spacing on submit?

Right now, when you press enter in the text field it causes a carriage return. You can then type on the next line. But, when you press the button to submit the text, the result gives no spacing between the characters found on the separate lines. How…
1
vote
2 answers

margin and padding are causing issues calculating layout

I am having this issue where I am not getting the true offset in IE6. I am using the offset to position a pop-in. The CSS is something like this: .container50-50-right-border { } .container50-50-right-border .title {padding: 0px;…
John Daly
  • 480
  • 2
  • 4
  • 13
1
vote
1 answer

Alignment when using a long double in a structure

I know in general, a struct instance will have the alignment of its widest scalar member. I declared a structure having a member of long double data type. struct try { char a; long double b; }; struct try obj; When i tried to check…
LocalHost
  • 910
  • 3
  • 8
  • 24
1
vote
2 answers

Remove black paddings in List (SwiftUI)

This is code of my List: import SwiftUI struct PaymentScreen: View { init() { UITableView.appearance().separatorStyle = .none UITableViewCell.appearance().backgroundColor = .black // I can change color of this paddings here …
alexbayker
  • 882
  • 9
  • 19
1
vote
3 answers

Is an Option type smaller than the wrapped type plus a boolean?

use std::mem::size_of; struct Position { x: f32, y: f32, z: f32, } struct PoolItem { entity_id: u32, // 4 bytes used: bool, // 1 bytes + 3 (padding) component: Position, // 12 bytes } assert_eq!(size_of::(),…
Narann
  • 819
  • 2
  • 8
  • 20
1
vote
1 answer

How to make padding spaces results of a similar length when using non alphanumeric characters?

I am using javascript, and I want the output of the following console.log() to be of a same length. const str1 = 'English'; console.log(str1.padEnd(10, '.')); const str2 = '日本語'; console.log(str2.padEnd(10, '.')); However, the current output is…
philippos
  • 1,142
  • 5
  • 20
  • 41
1
vote
2 answers

Padding Not Showing?

On this page, the text under the photos in the main section (a.event) isn't showing the 5px padding top and bottom. Any ideas why? Thanks guys =) a.event { width:315px; height:auto; border:0; padding: 5px 0; }
Tara
  • 1,528
  • 4
  • 20
  • 28
1
vote
2 answers

how to add 0 padding only on mobile device using bootstrap

I want padding: 0 only on mobile sm devices I tried this as reference and I also tried below code, but nothing works Since col-*-12 has default padding of 15px on right and left i want this col- value to be zero only on mobile. in more detail only…
sanoj lawrence
  • 951
  • 5
  • 29
  • 69
1
vote
0 answers

Flutter SliverAppBar titlepadding blocks back button

The problem is that I want to have a custom padding for my title in my SliverAppBar. I set it in the FlexibleSpaceBar. The problem is that if you set the custom padding, the title goes under the back button when it collapses. It should go back to…
tobias
  • 71
  • 1
  • 2
  • 8
1
vote
3 answers

SQL padding 0 to the left of a number in string

I am a beginner in SQL language and I am using postgre sql and doing little exercices to learn. I have a column of strings named acronym from a destination table: DO1 ES1 ES2 FR1 FR10 FR2 FR3 FR4 FR5 FR6 FR7 FR8 FR9 GP1 GP2 IN1 IN2 …
sqll
  • 13
  • 3
1
vote
4 answers

Responsive text padding

I have a little menu and I want to make the padding from a specific link responsive. How can I do that? The CSS part is actually SCSS, but I think you can figure out what should I change to solve the problem. I tried to use percenteges instead of…
kevx
  • 79
  • 9
1
vote
0 answers

Is there a system metric for listview text padding?

In Explorer, when viewing items in details view, there's a little bit of left padding before the text in any given column. I was wondering if there's a way to obtain that padding value. I was checking out GetSystemMetrics, but I'm not sure if any…
user12381459