1,126 questions
1
vote
1
answer
158
views
Subplot spacing with scaleanchor and constrain in plotly
I am trying to create a figure with three subplots. The bottom left subplot is supposed to be a 2D histogram with projections on the top and right sides.
The 2D histogram is supposed to be square (...
0
votes
1
answer
68
views
Spacing property still enacts on empty children
looking for a solution to a render pattern I am finding myself in.
We tend to prefer spacing items with rows or columns using the spacing property instead of wrapping the child elements in their own ...
0
votes
1
answer
42
views
How can you apply auto format to method calls in variable declarations in Visual Studio?
My auto format rules are set to add a space before and after parens in method calls, but they do not apply if the method call is in the same line as a declaration.
I've gone through the formatting ...
1
vote
2
answers
276
views
How to add padding or increase size of indicator in flutter NavigationRail?
I have this simple code of NavigationRail
NavigationRail(
destinations: [
NavigationRailDestination(
icon: FaIcon(FontAwesomeIcons.list),
...
0
votes
0
answers
22
views
Spacing in ContraintLayout
I m building Android Application, so this is my Activity xml file:
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:...
0
votes
1
answer
94
views
CSS text inside anchor tag seems slightly off center on IOS
I've recently started my CSS journey and I'm currently working on my first project for a friend. While testing I noticed my text inside my anchor tag was slightly off center, see comparison below.
The ...
2
votes
1
answer
87
views
VBA Even spacing of Command button on UserForm
I have several Userforms (of various sizes depending on user input - how many features they selected).
My problem is, that I want to align the "Next" command button with even spacing from ...
1
vote
1
answer
63
views
mimic photos app collectionview spacing when not scrolling
Please use this gif as reference for expected result
Work is in progress and public in this github
I'm using default UICollectionViewFlowLayout and set custom sizing for the selected cell when ...
1
vote
1
answer
62
views
How do I group Xs in ggplot2?
I need to work on this plot so that the values on the x axis are grouped two-by-two plot I have now.
To be clearer I attached a picture of what I would needplot I'd need:
I simply edited it with ...
0
votes
0
answers
395
views
vertical alignment of text in multicols environment
I am trying to get the text in both columns to align vertically.
I've been trying to eliminate the spaces/skips I'm aware of (parskip, before/after section skip).
After beginning the section 'Results' ...
0
votes
1
answer
81
views
How to get stretch factor for QSpacerItems
When you addStretch() or insertStretch() to a QBoxLayout, a QSpacerItem is added/inserted to the layout and you can set the stretch factor while doing so.
Now I would like to retrieve that stretch ...
0
votes
1
answer
58
views
main content not starting at the top, being pushed off the page in desktop view
using a media query I set a min-width of 680px. I have set it to where my navbar stays on the left portion on the screen. The problem is that is all you see. The main content that should be on the ...
0
votes
0
answers
11
views
Make sure elements break to a new line without gaps [duplicate]
I am adjusting a suggestions box on a website which shows up when using the search function. It can display a maximum of 12 suggestions but depending on the search it can show 1, 2, 3, 4 etc at a time....
0
votes
1
answer
43
views
Setting flexible spacing increments for margins based off root em variable
Currently I have a theme files that looks something like this:
export const Theme = {
//Primary is accessible on white or beige bckgrnd, others are not //
primary: "#036c5f",
...
0
votes
1
answer
430
views
Split out numbers in a column
I'm trying to split out the two numbers in the cell into separate columns
I've tried "text to columns", using the delimitator "space" but it removes the second number in each of ...
-1
votes
2
answers
86
views
how to properly give spacing to input fields of a form?
I have been unable to give spacing betweenb the column of texts and input fields in a form. I want my web page to look likle my design in the first image but i got the second image below that as my ...
-2
votes
1
answer
79
views
Bootstrap class mx-auto does not center an element
So I've been working on a website that utilizes the Bootstrap 5 navbar. I basically have 3 navbar-navs, one with me-auto, one with mx-auto and one with ms-auto. The me-auto and ms-auto navbar-navs (...
0
votes
0
answers
31
views
horizontal spacing between subplots [duplicate]
I would like to increase the horizontal spacing between two subplots, otherwise the ylabel of the second one (the right one) overlaps with the right plot itself (I prefer to do that rather than change ...
0
votes
3
answers
236
views
Flutter Best way to create form with a button on the bottom?
Here is what I'm trying to achieve:
On a smaller device, where all the input fields can't be displayed on a single page, the form should be like this:
But on a bigger screen, where all the Input ...
0
votes
0
answers
48
views
Applying spacing between selected lines in a lyrics view
I'm working on a SwiftUI view that displays lyrics and allows users to select up to 5 lines by tapping on them. I want to increase the bottom spacing between the lyrics
I've tried applying padding and ...
0
votes
1
answer
102
views
Top and bottom alignment Swiftui
How to put a Header and Footer to the Top and Bottom of a View, respectively
I need the header and footer to stay at the top and bottom of a view, but I can't get it to work.
The view is this:
...
0
votes
3
answers
120
views
Adjust vertical spacing in Flow in QML
I can adjust the horizontal spacing of elements inside a flow in QML,
But i cannot adjust vertical spacing between elements
Suggest a way to adjust vertical spacing in QML
Vertical spacing in FLOW in ...
0
votes
0
answers
158
views
Text truncated when setting spacing in SwiftUI
I created a view for card. But whenever I try to add 20px spacing between first text (Heading) and middle text (description) limit to 3 lines and button, the middle text automatically truncated. I ...
1
vote
0
answers
43
views
HTML table adds 4px around cells [duplicate]
I might be missing something stupid, but I need someone to assist.
I took an image and cut it into blocks using Photoshop. And I am trying to rebuild it using HTML Tables.
I managed to recreate the ...
0
votes
2
answers
47
views
Unwanted Space Between Multiple Children of Column in Flutter
I am having a problem removing space between the expanded widgets which are inside a column this is my code for up to 4 expanded widgets there are 3 more i have tried many things it still doesn't work....
4
votes
2
answers
4k
views
How to change the paragraph spacing in Typst?
How to change the paragraph spacing in Typst? Do we have any codes to perform it? It seems the function par() is not the case.......
I tried to look for the relevant codes, but I failed to find them. ...
0
votes
1
answer
65
views
how to reduce spacing between cards in bootstrap-5 using CSS
how to reduce the spacing between cards in bootstrap-5 using CSS. this is HTML code of the cards section.
<section id="services">
<div class="container">
<div ...
0
votes
1
answer
30
views
Why is spacing around not loading image removed in Firefox?
In Firefox, the spacing around images that don't load is removed.
Code to reproduce:
<h2>If image loads, padding is fine</h2>
<img src="https://picsum.photos/200" alt="...
1
vote
1
answer
201
views
How do I adjust the spacing to print chords from chordpro format to be aligned above the lyrics?
const fs = require('fs');
const fileName = 'songs/Sister Golden Hair.txt';
fs.readFile(fileName, 'utf8', (err, data) => {
if (err) {
console.error(err);
return;
}
// Split the file ...
-1
votes
1
answer
50
views
Spacing in my blog's mobile view is non existent
Please help me to fix the spacing on my blog's mobile view. The website is factbud.com. The desktop view is fine. Thank you in advance.
I did not try anything because I am afraid to mess the whole ...
2
votes
0
answers
928
views
vscode: disable spaces addition inside brackets in JSON files
I'm editing a JSON file in VSCode. Everytime I save the document, spaces are added to the begining and end of the brackets. For ex, if I've the following code.
{
"one": ['1', '11']
}
It ...
1
vote
0
answers
151
views
how to custom material ui all components size?
i want set all material mui components size,like Button,TextField,ButtonGroup,all of it.
for now,i use createTheme
const theme=createTheme({
components:{
MuiButtonGroup:{
...
0
votes
1
answer
326
views
Coefplot overlaps coefficient estimations
I am trying to fix this plot made with coefplot in Stata.
enter image description here
I tried to estimate foreign trade elasticities using different proxies for relative price. I used conventional ...
3
votes
1
answer
2k
views
geom_sankey in R: spacing and aligning nodes
I have successfully created a Sankey image using R's ggplot + geom_sankey following the ggsankey tutorial. However, I followed this post (How to skip nodes with NA value in ggsankey?) to work around ...
0
votes
1
answer
217
views
How to increase space between axis line and bars in a bar plot using ggplot2
How could I increase the space between the y-axis line and the first bar in the following bar plot?
# Load ggplot
library(ggplot2)
# Load the Titanic dataset
data("Titanic")
Titanic <- ...
0
votes
1
answer
55
views
NavBar Issues - Hover and Spacing
I currently have 2 issues with the navbar I'm working on. The first issue is regarding the hover feature on navbar links.My intention is to have an underline appear in the color purple (#9908ff) when ...
-2
votes
2
answers
48
views
My True or False function is working but how do I alternate the rows with consistent spacing in the True statement?
I have tried rearranging the code around and I am very close to figuring this out but in my True statement the results are close to aliging correctly but I can't figure it out. This homework ...
0
votes
2
answers
99
views
Why there is a gap between the elements, without a gap command
I'm doing my second project in HTML and CSS and I'm losing my mind trying to figure out why there is a spacing where it shouldn't. It is so specific I don't even know how to search for it.
Basically I ...
0
votes
0
answers
53
views
My elements from index.html are not distanced properly
I am a complete beginner, I learned HTML and CSS for a month or two. I follow a course and I must compile this sass code and this must show exactly as figma. Sadly, I don't know how to make those ...
0
votes
0
answers
222
views
How can I set the height of a v-card independently from the content, without setting a static height?
I have a Vuetify 3 application with a header, a navigation drawer and a v-main with a v-card inside where my router-view is placed.
My problem is that the card gets bigger when the content takes more ...
0
votes
1
answer
61
views
Removing added spacing from join statement
I have been tasked with to:
Write a program that first reads in the name of an input file and then reads the input file using the file.readlines() method. The input file contains an unsorted list of ...
1
vote
0
answers
852
views
How to add spacing between slides in react-slick without using padding?
I am using react-slick to create a slider in my React project. I am displaying three slides at a time. I want to add some space between these slides, but I'd like to avoid using padding. How can I ...
0
votes
2
answers
401
views
How do I make my title bar take up the intended space in CSS?
Hello!
I'm having problems with my title bar not taking up the intended space. Here's a diagram:
Diagram of my problem
The area I highlighted in red is where I want my title bar to be (Next to the ...
0
votes
1
answer
276
views
CSS lobotomized owl -VS- :not(:first-child)?
The owl * + * looks nice(though not as readable in my opinion), but is that the only reason it's popular?
Is there otherwise no difference between this:
div > * + * {margin-top: 20px;}
And this?:
...
0
votes
1
answer
63
views
Add spacing inbetween the bars in a grouped bar- chart with matplotlib
my current code looks like this:
import matplotlib.pyplot as plt
import numpy as np
def create_grouped_bar_chart():
# Daten für die Balken
groups = 3
bar_width = 0.35
x = np.arange(...
0
votes
1
answer
52
views
Custom proportional spacing in UIStackView without of additional subviews?
I know that I can add transparent subviews to UIStackView and set their widths with constraints. The problem is if I want to hide some opaque subviews all the spaces between them remain (and I don't ...
3
votes
1
answer
568
views
Align item .trailing without stretching container in SwiftUI
I have a button which is nested in some other components. I want the button to be aligned to the right (trailing), even though the rest of the VStack items are leading.
When I use a Spacer() in an ...
0
votes
1
answer
408
views
LazyVGrid with Text() affects spacing when content is empty
Total newbie, in Swift and SwiftUI but I couldn't find a straightforward answer hence, asking here.
I have a LazyVGrid that contains a ForEach that renders RoundedRectangle that contains Text. The ...
0
votes
1
answer
55
views
How do I center elements on a page on every device? iPad, iPhone, Desktop & any other device
My website's home page contains nav elements, social media icons under the nav, and a logo that lays on top of the nav elements with a gap. It could look perfect on mobile, but have the most atrocious ...
0
votes
2
answers
47
views
Flex Box Whitespace Issue (Right Side)
I'm having some issues making this flex box span 100% of the width of the page.
https://jsfiddle.net/yfhbuwc3/
<html></html>
On the right hand side is whitespace (I have no idea where ...