Forums

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

Home Forums CSS relative letter spacing?

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #26667
    simto77
    Member

    Hello

    Is it possible to give the header tag an attribute that forces a width of e.g. 300px for both headers?

    Example: if I on one page have a header that says:

    "This is a very long header"

    and another header that says

    "short header"

    Can I make both headers the same width?

    Thank you
    Simon

    #66410
    TheDoc
    Member

    I’m going to go ahead and say it’s not possible, though saying that makes me feel a little wrong. There might be some crazy javascripting you can do, but I don’t know why you would want to do this in the first place.

    #66429
    TeMc
    Member

    Not letter but word spacing may help things in the right direction:

    Code:
    {
    text-align: justify;
    }
    #66437
    simto77
    Member

    @TeMc

    text-align justify only works with, I guess, anything longer than two-three words. In my above mentioned first example, it could work but I need it to work with e.g. two words.
    Whether or not it is a good solution graphically or not, I think it would be nice if I could get it to work.

    /Simon

    #66561
    Norman
    Member

    theres no way to do this in css.. (text-align:justify only works if you have more than one line of text)

    #66610
    AshtonSanders
    Participant
    "Norman" wrote:
    theres no way to do this in css.. (text-align:justify only works if you have more than one line of text)

    And it only works on the lines that wrap (never on the last line).

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