Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS font, text height

  • This topic is empty.
Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #35184
    gd77
    Participant

    is their a way to control the font or text height’s? just the height not width not size

    #90717
    lyleyboy
    Member

    font-size: 12px;

    #90718
    SgtLegend
    Member

    Also ensure when using font-size to set a line-height that’s at least 2 pixels greater which helps to get a more consistent outcome in IE.

    #90727
    chrisburton
    Participant

    If you mean to stretch it height wise, no.

    #90759

    Unfortunately not.

    #90768
    gd77
    Participant

    ya to stretch It’s Height :( thanks for the help.

    #90770
    chrisburton
    Participant

    The only way to do it is using an image but even then it would look terrible.

    #90771

    It’s not ideal but you could use negative letter-spacing to help achieve the effect you are after. It will condense the text and you could adjust the font-size accordingly.

    Here is an example: http://jsfiddle.net/sl1dr/sucb5/

    #90772
    standuncan
    Member

    If you used a narrow font and also the negative letter-spacing like Joshua said, it would probably be as close as what you want. I think there may be some type of future way with text transform in 2d or 3d if I heard correctly, but even if it wouldn’t be cross-browser compatible.

    #90773
    chrisburton
    Participant

    There are plenty of typefaces in general that you could use without manipulation. What exactly is the design behind this @gd77 ?

    #91728

    You just taught me something @Hompimpa, I never looked into scale beyond what I had seen and had no idea you could declare the x and y value separately! That works well: http://jsfiddle.net/sl1dr/KurYd/

    #91795
    jeleyinte
    Member

    What is the best font for a website?

    #92401
    salmankhan
    Member

    there is no best font
    it’s just related with what is your website all about

    #246958
    trusktr
    Participant

    use CSS transform:scaleY(yValue) to stretch it vertically, on the Y axis. This might pixelate the text in some browsers. An alternative is to use SVG text, then apply transform="scale(0, yValue)" attribute, which will not pixelate (it’s a vector!).

Viewing 14 posts - 1 through 14 (of 14 total)
  • The forum ‘CSS’ is closed to new topics and replies.