Questions tagged [baseline]

243 questions
104
votes
8 answers

How to vertically align 2 different sizes of text?

I know to vertically align text to the middle of a block, you set the line-height to the same height of the block. However, if I have a sentence with a word in the middle, that is 2em. If the entire sentence has a line-height the same as the…
JD Isaacks
  • 56,088
  • 93
  • 276
  • 422
42
votes
3 answers

What's the deal with vertical-align: baseline?

I thought I knew my way around CSS, but I needed to explain something to someone just now and I found I couldn't. My question basically boils down to: why is vertical-align:baseline ignored when there are other alignments in the same line? Example:…
Mr Lister
  • 45,515
  • 15
  • 108
  • 150
39
votes
5 answers

WPF: Aligning the base line of a Label and its TextBox

Let's say I have a simple TextBox next to a Label: MyText
Heinzi
  • 167,459
  • 57
  • 363
  • 519
17
votes
2 answers

iPhone - App Rejected again, HTTP Live Streaming 64kbps baseline feed

Thank you for submitting APPNAME_HERE. We have reviewed your application and have determined that it cannot be posted to the App Store at this time because it is not using a baseline stream of 64 kbps for the HTTP Live Streaming…
scud
  • 1,147
  • 1
  • 14
  • 25
15
votes
3 answers

Align flex-box items to baseline of last text line in a block

I am trying to achive the last example on the following image, using flex-box. From what I see, the align-items: baseline; property works great when the blocks only have 1 line. The property align-items: flex-end; creates some issues mainly…
14
votes
4 answers

tag makes height of paragraph larger

I have the following fiddle: http://jsfiddle.net/tompazourek/sn5jp/

some normal-sized text

some small-sized text

p { line-height: 20px } When I inspect the page in Chrome, I find out that the computed height of the…
Tom Pažourek
  • 9,582
  • 8
  • 66
  • 107
12
votes
1 answer

What is the difference between alphabetic and ideographic in Flutter's TextBaseline enum

The TextBaseline enum in Flutter has two options: alphabetic ideographic How do these values actually change the baseline?
Suragch
  • 484,302
  • 314
  • 1,365
  • 1,393
11
votes
0 answers

How to constrain a view to a UITextView's first baseline?

I'm desperately trying to constrain the first baselines of a UILabel and a UITextView in Interface Builder. From my understanding this should be quite easy by simply adding the following constraint (Pseudo-Code): label.firstBaseline =…
Mischa
  • 15,816
  • 8
  • 59
  • 117
11
votes
1 answer

Calculate UITextField baseline position

I'm trying to programmatically align the baseline of an instance of UITextField with an instance of UIButton. I'm currently handling this calculation similar way described here, but with UITextField there can be an offset to the content. Any ideas…
mkko
  • 4,262
  • 3
  • 25
  • 29
10
votes
1 answer

CSS vertical alignment and baseline position

I am new to CSS and recently reading the specification and having some problems in understanding the vertical-align property.
Yuan Li
  • 205
  • 1
  • 3
  • 7
10
votes
2 answers

How do I get the position of the text baseline in a Label and a NumericUpDown?

I'm trying to align a Label and a NumericUpDown by their text baselines. I'm doing it in code, rather than the designer. How do I get the position of the text baseline?
Simon
  • 25,468
  • 44
  • 152
  • 266
9
votes
2 answers

PHP imagettftext baseline workaround

I am writing to print text to an image using PHP. However, the function imagettftext() uses the baseline, whereas I need the text vertically centered. So, I either need a method to print text with y not the distance from top to baseline, but from…
arik
  • 28,170
  • 36
  • 100
  • 156
9
votes
4 answers

Any tools to export the whole Oracle DB as SQL scripts

Here is my problem, I wants to create a baseline on our development Dateabase (Oracle 10g), and check into our svn for version control, and after this we will use liquibase to help us manage the incremental database changes. My problem is how…
James Khoo
  • 1,209
  • 2
  • 14
  • 19
8
votes
3 answers

Align text baseline to bottom of div

I am trying to align the baseline of some text in a div to the very bottom edge of said div (such that characters like g and j would actually overflow the div) I can only seem to align the bottom edge of the text element to the bottom edge of the…
lux
  • 139
  • 2
  • 8
8
votes
1 answer

Aligning the baseline of field labels with the baseline of text in text inputs

I'm displaying text inputs next to some label text in a fieldset. I'd like the baseline of the text in the text inputs to line up with the baseline of the label text. I could set a fudge factor padding-top for my .label elements but the content of…
Simon Lieschke
  • 13,058
  • 6
  • 46
  • 60
1
2 3
16 17