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
Related
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.
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
Newbie Alert! I'm asking this question, because management is in a hurry! They want seven pages done by yesterday. So I need some advice, quickly.
I have requirements to create a div that looks similar to the following picture:
This question is about Layout. I'm using the standard HTML dropdowns.
First: I started off by using 1 row with 4 columns. But then I found it difficult to align my labels (black squares on the left) with the dropdowns.
Second: Then I thought maybe I should create 7 rows, each with 4 columns, so I could better align the contents of each row.
Third: But given that I have to add the Help "?" button with the text, I started wondering if I should use an in-line-block. Also, by this time, I think I may be making the code more complicated than it needs to be.
So, what I am asking is:
What is the simplest and (or) most effective method to create a layout like this?
Perhaps, I need only 2 columns; one for the labels, Help buttons, and dropdowns, and the second column for the text boxes. My idea is that if I'm trying too hard, I'm probably doing it wrong! How would you do this?
Thanks for suggestions.
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/
I'm new here and to Bootstrap so apologies for any stupidity.
In Bootstrap I'm trying to display .span4 in a row over 2 columns, this is because of page width, which should eventually nest into each other and leave no space. However with all I have tried at the moment I can still only manage to get each .span4 to lineup with the bottom-line of the longest span4 I have created. The site will eventually be dynamic and the size of the list could change frequently.
Looked at many different questions on here but no joy yet.
I have an example of my tryings here http://jsfiddle.net/joebarr/YJunh/
I think you're looking for jQuery Masonry. See for example: How can I float elements with different size in a tile or How to Create Grid/Tile View with CSS?
In case it must be CSS only, the accepted answer for the first link above ( https://stackoverflow.com/a/15320187/1449799 ) shows a good approximation.