Remove padding from text input [closed] - html

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 years ago.
Improve this question
Is it possible to change the inner padding of text field? Currently when you take a normal text field in html and write something in there it'll have padding in the beginning and in the end of it. The numbers written in my text field have at most 3 digits and currently the padding pretty much covers the width of 1.5 to 2 digits and already with 2 digits (see number 10 on image) it'll get a bit dragged out.
Added image of it as well, in the first field the padded area is marked with red line.

I dont have code but
.my_input_class{
padding:0;
}
Or, really, the size of the text box needs to be a bit larger, or you put a character limit on it

Related

Changing the column labels color based on width of chart [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
I have created a bar chart that has the values of each of the columns at the end of each bar. The color of the bars is the same as the text of the values. The problem is that based on the width of the container/browser by default the values move inside the bar. But then you can't read the text as the bar and text are the same. I would prefer to have the values outside the bar but when they have to move inside the bar due to space is there a way to change the font color to white so that it is readable? Here is an example of the chart.
https://playground.anychart.com/DAlu15WO/2
Unfortunately, there's no possibility to detect if the label was moved inside the bar or not. But you can enable label background to increase its readability like in the sample.
Pay attention to lines 96-97.
All available background settings you can find in the list.

The width of non breaking space ( 160 ) and normal space ( 32 ) are different [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
The width of the first line is not equal to the second line and the reason is clearly the width of the &nbsp and normal space is different. The font is Lato and this occurs only for some characters only.
Is this a Lato bug ? or is there any way to resolve this? no luck with letter-spacing or word-spacing CSS
[codepen.io/mark-t-m/pen/eYJyEMm][2]
The spacing in black color text is non breaking space ( 160 ).
The spacing in red color text on top of the black color text is normal space ( 32 ) .
The font is Lato and this happens only for some characters only
( f, r, v, w, y )
When we talk about a font’s spacing, or letter fit, we’re referring to the amount of space between the characters, which in turn gives the typeface its relative openness or tightness. A font’s spacing is initially determined by the manufacturer or designer and is somewhat size-dependent. Text designs tend to be spaced more openly than display faces. The reason? The smaller the point size, the more space is needed between letters to keep the characters legible. Conversely, as a typeface is set larger, a snugger fit between letters creates word-shapes that are easier to read.
Please check https://www.fonts.com/content/learning/fyti/using-type-tools/spacing-and-kerning-1

How to change the rate of increase/decrease in an HTML slider [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
If I have a slider and the minimum value is 0, and the maximum value is 10, then you can drag it and move it from 0 to 10, and everywhere in between. Is there any way I could make it "jump" from 0, to 1, to 2, like only moving 1 at a time? Or moving 0.1? As in it wouldn't slide fluidly, it would jump along ten spaces, or 100 spaces.
Sure, just set a step attribute like:
<input type="range" min="0" max="10" step="1">

Hot to center those 3 divs into the body [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 3 years ago.
Improve this question
Im wondering how to center those 3 divs into he body, i created 2 versions of the row, one with an extra outer wrap around the column and one without, Unfortuinatly since this html created with a page builder (WP visual composer) so i dont have 100% freedom to control the html structure. I tried margin: auto but couldn't make it to work.
You can find the divs im talking about on this page.
https://bonmedico.de/test/
Thanks
This question will be closed very soon because it's not according to SO rules. ( Read comments to your question to find about that ). You really should put more effort when writing questions.
But i took a look at your website. You can solve your problem in 2 ( maybe more ) ways.
add justify-content:center to the parent row of those 3 columns. Being a display: flex element it will center them horizontally.
using visual composer is easy. Just add 2 small columns ( empty ) left and right and a larger column in the middle. Something like 1/4 1/2 1/4. And in that ' bigger ' column you can add a new row continaing 3 columns ( like you have now ). Or there are more possibilities to do this. Just ' play ' around with visual composer

Responsive design: How to adjust number of columns? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
My client wants to have a screen that, on a sufficiently high resolution monitor, lays out like this:
First name [textbox1a] Translation [textbox1b]
Last name [textbox2a] [textbox2b]
Street [textbox3a] [textbox3b]
Etc. (The screen shows information in 2 languages, but we needn't get into the details of what that's all about for purposes of this question.)
When the screen is too narrow for this to fit -- say on a tablet -- they want this to change to:
First name Translation
[textbox1a] [textbox1b]
Last name
[textbox2a] [textbox2b]
Street
[textbox3a] [textbox3b]
And on a very narrow screen -- say a cell phone:
First name
[textbox1a]
Translation
[textbox1b]
Last name
[textbox2a]
[textbox2b]
Street
[textbox3a]
[textbox3b]
I really don't want to make the labels fixed width because that would prevent a user from resizing the text. With variable width, I can't make everything float:left because then the columns don't line up. I'm tinkering with using display:table-cell et al but this gets tricky because what goes in each row changes. I think I can make that work if I use #media to switch from 4 column to 2 to 1 but that assumes I know the exact number of pixels when to switch layouts, which I don't without making assumptions about the width of the labels.
Any ideas how to do this?
So, the solution I came up with is to check and see which column is the widest. Then apply that width to every column while making the columns 'float'. That way they always line up.
var maxWidth = 0;
$('.box').each(function() {
var width2 = $(this).width();
if(width2 > maxWidth){
maxWidth = width2;
}
});
$('.box').css("width", maxWidth);
Here is a full JSFiddle for you, you can edit the contents of the boxes to change the size of them to test it out.
http://jsfiddle.net/na50mxtj/