962 questions
1
vote
1
answer
66
views
Why does `line-height:1` cause overflow in this CSS grid?
I'm a little new to CSS grid stuff, so forgive me if this is obvious, but I haven't found a good explanation for this so far.
In my mind, line-height:1 basically means "use the normal value."...
0
votes
1
answer
95
views
Flutter TextField with trailing button: text gets cropped or misaligned when overlaying arrow button
I’m building a pill-shaped email input in Flutter with an arrow button on the right side (like the screenshot below).
The design requires the arrow to overlay inside the border, not outside.
I need ...
2
votes
1
answer
103
views
Have long text scroll to the right when using JTextField .setText()
I have a JTextField for displaying the path of a selected folder. It's intentionally disabled (as the folder is supposed to be chosen with a JFileChooser), and when the program starts, a default ...
0
votes
0
answers
70
views
How can I display Quranic text (word-by-word) with accurate formatting in Flutter?
I'm building a Quran app using Flutter, and I'm using word-by-word data taken from the Tarteel project.
The problem is that I can't get the words to align correctly or resemble the structure of a real ...
2
votes
4
answers
236
views
How to align two string's offset given a list of substrings offsets?
Given a and b relating to a list of substrings in c:
a = "how are you ?"
b = "wie gehst's es dir?"
c = [
("how", "wie"),
("are", "gehst's&...
-3
votes
3
answers
127
views
C++17: Alignment of a second column of text
I have seen several similar questions, but haven't found any that quite answers what I need, and most of these use std::cout along with iomanip
I'm using libfmt (although a c++20 answer would likely ...
2
votes
1
answer
103
views
How to put justified paragraph alignment in Java
A quick help here, I was reading the library's manual but couldn't find any help.
I have the below code where I used the alignment BOTH in order to achieve the justified alignemnt that Word has, but ...
1
vote
1
answer
577
views
How to center text vertically in tabular cells using Beamer?
The text is bottom-aligned in tabular cells using the Beamer class.
I've tried solutions from answers to previous questions, but none works for me.
They include using multicolumn, multirow, parbox, ...
0
votes
1
answer
95
views
"How to Center Text in the Middle of a Black Overlay in SwiftUI?"
I'm having trouble positioning text in the center of a black overlay in SwiftUI. I want the white text to be aligned in the middle of the black box where I marked with a red line in the image below. ...
0
votes
3
answers
89
views
Align to right for h1 element to right not working
I can not get the title h1 element to be aligned to the right-side of page.
html,
body {
height: 100%;
margin: 0;
font-family: Arial, sans-serif;
}
body {
display: flex;
flex-direction: ...
1
vote
1
answer
33
views
Can't get text centered horizontaly in quadrants
I am practising Kotlin with Android Developer and got stuck with Compose quardant project. Everything is working an looks just like it is supposed to except for some of texts. The screen is devided to ...
-1
votes
3
answers
80
views
unresponsive container flexbox not reaching height of 100 % and width of 50n %
I have problems not being able to make a container display a height of 100% and a width of 50% on tmy screen despite my CSS already mentioning those specified measurements in the appropriate div ...
1
vote
0
answers
145
views
Waterman-Smith-Beyer implementation in Python
I am working on a text aligner to help me get a better understanding of specific steps necessary to perform sequence alignment. So far, things have been going great but I noticed yesterday that my ...
0
votes
1
answer
377
views
Using the forestploter R package, how can I specify the alignment of a specific column in a forest plot?
I have the following sample data and would like to left align all columns with text except for the column with "Direction of effect size from other study".
df <- tibble(Outcome="CAD&...
1
vote
1
answer
60
views
Multi-line Banner Text Not Aligning to the Left Equally [duplicate]
I'm having trouble aligning the text content equally on a ribbon banner to the left side.
Codepen
The issues I'm hoping to fix:
The first line of text seems to be slightly more indented on the left ...
1
vote
1
answer
53
views
Aligning Text in SwiftUI Horizontally
I have text coming from an API call. I want to display it. The issue is as below:
Dummy data provided to run
struct SampleTypeBox: View {
var sampleType : [SampleTypeList]
VStack(alignment: ....
3
votes
1
answer
250
views
Hotkey for equal sign and colon alignment?
I joined a company recently where they seem to like to align the = and : on consecutive lines in python, e.g., instead of
a = 0
bb = 2
ccc = 3
they do
a = 0
bb = 2
ccc = 3
and likewise for :. I ...
2
votes
1
answer
916
views
how to center text vertically in relation to an icon in jetpack compose?
I'm trying to center a text vertically in jetpack compose but the baseline always begins at the bottom of the icon and i can't figure out why.
Row of the elements already has verticalAlignment = ...
0
votes
1
answer
355
views
how to Customize autoformatting of C# Code in visual Studio 2022
I want to format C# code in visual studio as image shows:
but once auto formatted run on save I get below code
I want auto save keep working but keep such alignment as is
tried to format code as ...
1
vote
0
answers
87
views
Why is TextAlign.Center and TextAlign.Ellipsis in compose shifting the text to the right on each composition?
Column {
var isNextVisible by remember {mutableStateOf(false) }
Row(
modifier = Modifier.fillMaxWidth(),
verticalAlignment = Alignment.CenterVertically
) {
...
0
votes
2
answers
94
views
How to make three texts position on top of each slots respectively?
Description
I am developing a random name picker web app and I'd like to know how to make three texts positioned on top of each slot and aligned center in each slot simultaneously.
The current image ...
0
votes
0
answers
89
views
How can I change the label values inside the barplot in Julia?
The script I used is:
using Plots
numbers = [2, 4, 2]
colors_1 = ["white", "red", "white"]
colors_2 = ["white", "yellow", "white"]
...
2
votes
1
answer
2k
views
How do I get a SwiftUI Text view to lay out my text top-left aligned?
I figured out how to make a text view's contents scroll by enclosing it in a ScrollView.
However, when there is not enough content to fill a line, it ignores my request to use leading alignment and ...
3
votes
1
answer
936
views
SwiftUI TextField with vertical axis does not align to firstTextBaseline when text is empty
I have a difficult time to find a workaround to align multiline TextField with another Text in HStack. I want to align it firstTextBaseline. The problem is, TextField jumps down when its text becomes ...
0
votes
0
answers
49
views
React Native second line of text shifted left
image of the problem
As you can see in the screenshot, the text is not properly aligned on the left. The component looks like this:
<View style={s.title}>
<Text style={s.titleText}> {...
0
votes
1
answer
521
views
T-SQL statement to Print and Email full table with aligned data
For context, I'm trying to create an email where users can see the queried data as a table. I want the data (from each column) to align at the same position for each row (hence, a table). The data in ...
1
vote
1
answer
187
views
How to center text in a custom arc shape in SwiftUI?
I want to center textView in ArcShape, currently textView's startAngle is set to ArcShape's startAngle. So far, I've tried finding the midpoint of the ArcShape's startAngle and endAngle, but this ...
1
vote
0
answers
48
views
Using JavaScript .join() results in misaligned vertical characters
I'm using the following code to wrap every word inside two span elements:
<p data-anim="wrap-words">Lorem ipsum dolor sit amet.</p>
function wrapWords() {
const strings = ...
0
votes
3
answers
159
views
How to change the direction of text in a Word document using Excel VBA
I created a program in Excel VBA, to copy Word document content to a mail body.
I want to change the direction of one text.
I tried .ParagraphFormat.Alignment.
Sub sendMail()
Dim ol As Outlook....
0
votes
2
answers
71
views
Title Alignment Off Centre
I am writing this code, first webpage I have built. I have learning along the way but I have hit a block, I feel like it may be a simple block but in my 'scallop' H1 & P I can't get them the align ...
0
votes
1
answer
111
views
How to align two inputs horizontally [duplicate]
I am currently a very beginner in css and html. I am trying to make a login page, but i just can't align my two inputs. I want to have the labels "Username :" and "Password :" on ...
0
votes
1
answer
275
views
Superscripted ggplot x-axis labels not aligning properly
I'm trying to add superscripted labels using either expression or bquote along the x-axis. The labels are a bit long and the space a bit tight, so I've placed it at a 45 degree angle, and broke it ...
0
votes
1
answer
598
views
How to align the table data to "centered" and format specific column to % values
I am trying to create a daily email that sends daily report in a table format. Unfortunately, I am facing 2 problems with the code:
The table data is not aligned to center. Instead all the data are ...
0
votes
2
answers
63
views
Align text in toString
I want to keep the order as it is in this code, but I don't know how to make the value of degree under the value of university
@Override
public String toString() {
return "Education&...
0
votes
1
answer
434
views
How to align text at bottom of <input> element
Is there a way to get the text in an <input> to NOT be vertically aligned in the center of an <input>?
I am working on a form that has an <input> element inside of an <iframe>. ...
-2
votes
1
answer
41
views
Text alignment for navigation bar [closed]
I am following a tutorial and then changing what I can to experiment and create something of my own. I knew I would get to a point where I wanted something different that what was in the tutorial.In ...
0
votes
0
answers
1k
views
How to use forced alignment in windows (python)?
I'm wanting to create a application using forced alignment in windows using python 3.11. The problem is that I cannot find any forced alignment package for windows.
I tried aeneas but couldn't figure ...
-1
votes
2
answers
48
views
text in label incorrectly displayed
I'm unable to correctly display a text on a QLabel, here's how it looks:
How do I modify it to get this result:
0
votes
1
answer
81
views
How to indent/center texts of different classes on the same line through CSS?
so I have three recipes that I am doing for a project: "Bruschetta" "Italian Meatball" & "Seafood Risotto."
I put them on different classes in CSS as I thought that ...
0
votes
2
answers
64
views
Why does my text field does net appear in the centre? [closed]
I am building a website for a project at college but somehow I do not get the paragraph aligned in the centre on the top of the webpage.
I tried inline, but that did not work, then I tried CSS, but it ...
0
votes
1
answer
52
views
Please advise why my text is not aligned?
This question is about chain alignment.
Program the function void align_str(char \*output, char \*in, unsigned int size, int align) which equals the input string according to the following rules and ...
1
vote
1
answer
104
views
Datagrid cells align Left & Center, but not Right. Right resutls in Center alignment
I have tried removing the styles, and making columns not ReadOnly, with no difference. No matter what I change, the text in the cells will only align Left or Center UNLESS the text is formatted as ...
2
votes
4
answers
2k
views
How to center labels within a flexbox form container in HTML and CSS?
i tried multiple times to align my label to the middle but for some reason its not working.
i have my form div set to flex with both align items and justify content to center.
but still, no matter ...
0
votes
2
answers
93
views
CSS adding extra spaces instead of wrapping correctly
Does anyone know why the text in this div adds all that extra white-space on the ends of each line, instead of having the border wrap "tightly" around the text as expected?
https://jsfiddle....
1
vote
4
answers
912
views
Vertically align ul list items for navbar
I am trying to recreate a custom navbar. The navbar has four buttons as shown in the image.
However, in my navbar, one of the buttons always seems to bunch down. I wanted to see if it is due to lack ...
0
votes
2
answers
2k
views
How to center the text vertically using bootstrap
I'm creating a portfolio using bootstrap. For some reasons i can't get the text vertically centered. i have tried align-items-center and justify-content-center with no luck. Here is the code:
<div ...
0
votes
1
answer
53
views
How to align text differently within same geom_-element in ggplot2 [duplicate]
I am encountering a problem when I want to label the starting and ending point of a line graph indicating a duration with ggplot2. Certain labels are aligned "outward", others "inward&...
1
vote
0
answers
127
views
How to set align to left or right in Python?
I'm a new here, and a new to Python.
In Python, how to move an align-self to left or right?
According to my codes below, how to move Atomic Number to upper on the left-hand side and Atomic Weight to ...
0
votes
0
answers
2k
views
How to set Youtube subtitles/close captions to be right alignment?
When I watch like tutorial in Youtube which the content mostly (if any explanation on white board or on a computer monitor) is in (our) left side. The Youtube subtitles also we may put left alignment ...
0
votes
2
answers
240
views
Flutter TextField set textAlign for each line separately
In flutter, Is there any way to set textAlign for each line separately?
I want something like telegram app text input:
In telegram, if the line starts with a rtl language, text align is right ...