Bottom few pixels of text cut off
Asked Answered
M

10

29

I really can't figure out what's going on in this case. On the multiline pieces of text, the bottom few pixels are cut off.

Milklivered answered 13/10, 2011 at 20:42 Comment(5)
Looks fine to me on Firefox. Which browser are you seeing this problem in?Collegian
Looks good in Chrome too. Perhaps a screen cap will help?Hampden
i51.tinypic.com/n6faqg.png Letters like g and y, with bottoms that extend past a certain point.Milklivered
Only on the second line, by the way. The first line is fine.Milklivered
Please don't post a live link to your code or your question will become obsolete as long as you fix this. Instead, try to reproduce the issue with a narrowed down code in a fiddle or so and also place the code here in order to make your question "standalone"Madai
H
2

The quickest fix looks to be this:

Change the font-size here from 14px to 13px

#slidertext h3 {
font-size: 13px;
// other styles
}

Works for me in Chrome.

Hampden answered 13/10, 2011 at 20:55 Comment(2)
Using this. Text still looks nice, and doesn't have any complications. Also allows for longer submissions without added complications in the future. Thanks.Milklivered
this doesn't actually fix the problem, which is a line-height issue. As noted below setting line-height: normal; is the fixPartly
C
77

Setting

line-height: normal;

Worked for me.

Cornelius answered 3/12, 2012 at 17:54 Comment(1)
@Reece You should accept this answer so it gets more visibility. It solved my problemCaniff
C
3

Changing font-size and font-family is just a workaround. I had same issue. It works well in Firefox however not in Chrome. Check padding or margin of the input box. It was padding in my case. I changed padding:6px to padding:0px 6px; in my case.

Colic answered 21/8, 2015 at 13:33 Comment(0)
H
2

The quickest fix looks to be this:

Change the font-size here from 14px to 13px

#slidertext h3 {
font-size: 13px;
// other styles
}

Works for me in Chrome.

Hampden answered 13/10, 2011 at 20:55 Comment(2)
Using this. Text still looks nice, and doesn't have any complications. Also allows for longer submissions without added complications in the future. Thanks.Milklivered
this doesn't actually fix the problem, which is a line-height issue. As noted below setting line-height: normal; is the fixPartly
T
1

On #slidertext li you have overflow: hidden; set. You either need to adjust height of the li, you have inline styles setting it to height: 32px, turn off overflow, or adjust the font size inside of there.

Termless answered 13/10, 2011 at 20:58 Comment(0)
M
1

Try applying line-height to the paragraph so it fits whatever font-size you are trying to set. In my case font-size was 14px, so I set line-height to 15px.

Mcniel answered 19/9, 2022 at 22:42 Comment(0)
C
0

As per specific Browsers this kind of issue is related to the Font Family, very often. My solution for text being cut off is to change the font family to sans-serif and see if this has any effect. This worked infallibly on any browser I tried it in.

As from what the other threads above are stating... it just might help to adjust line-height and padding, sometimes, but for me, none of these worked in general:

max-width: 100%;
min-height: 1.62em;
padding: 2px 5px 2px 5px;    
vertical-align: initial;

font-family: initial, sans-serif, serif; is a good starting point and then you can find a font that plays nice with your theme/site.

Celeski answered 12/4, 2019 at 22:14 Comment(0)
C
0

This fix mine:

letter-spacing: normal;
Chapbook answered 12/12, 2019 at 8:12 Comment(0)
B
0

For me it was font-kerning. Its default value is auto which means it is using kerning information stored in a font. I changed it to normal and it fixed the issue.

input {
  font-kerning: normal;
}
Birdlime answered 10/2, 2021 at 16:9 Comment(0)
M
0

Most of the cases, if font is cutting off from the bottom, it's means, we are using, please try below if this helps overflow:hidden;

For fixing this issue, please use,

overflow-x:hidden;
line-height: according to your style-guide (1/1.5//normal);

// You can increase and decrease line depending on your style-guide)

.

Millur answered 21/4, 2021 at 0:22 Comment(0)
I
-1

Check the size of the sliderwrap, the height attribute may be in conflict with the total text size, and since your overflow is hidden, according to your css property, that might be your issue.

Perhaps fixing it like this:

#sliderwrap
{
    height:114;
}
Ignacioignacius answered 13/10, 2011 at 20:56 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.