Reece McMillin
Reece McMillin

Reputation: 577

Bottom few pixels of text cut off

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.

Upvotes: 29

Views: 48130

Answers (10)

KhanAJ
KhanAJ

Reputation: 31

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.

Upvotes: 1

Vinod Kumar
Vinod Kumar

Reputation: 1311

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)

.

Upvotes: 0

max
max

Reputation: 8667

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;
}

Upvotes: 0

MIA
MIA

Reputation: 431

This fix mine:

letter-spacing: normal;

Upvotes: 0

tradesouthwest
tradesouthwest

Reputation: 166

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.

Upvotes: 0

Tushar Shukla
Tushar Shukla

Reputation: 6605

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.

Upvotes: 3

C.M.
C.M.

Reputation: 1561

Setting

line-height: normal;

Worked for me.

Upvotes: 79

Doozer Blake
Doozer Blake

Reputation: 7797

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.

Upvotes: 1

Niche
Niche

Reputation: 967

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;
}

Upvotes: -1

Jason Gennaro
Jason Gennaro

Reputation: 34855

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.

Upvotes: 2

Related Questions