Forums

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

Home Forums CSS [Solved] Media Queries + Headlines ?

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #167090
    Krsiak Daniel
    Participant

    Hi,

    so I am brushing off my MQ knowledge and learning new stuff.
    I came accros an issue with headlines in case they are too long.

    I know I could change font size but I was curious if there is a way to break the headline if consists of more than 2 words, 3, 4 words and prefferably on separate lines.

    http://www.pruzkumystaveb.cz/wordpress/reference/zeleznicni-a-dopravni-stavby/

    Resize to smaller and you will see how the headline just “piles on top” instead of rearangind like normal pargraph.

    #167092
    Atelierbram
    Participant

    The “piling on top” is caused by the small line-height. When you would change that to a small unit-less number like 1, than it’s problem solved I think.

    #title-page h2 {
        line-height: 1;
    }
    

    Eric Meyer on unit-less line-heights

    #167102
    Krsiak Daniel
    Participant

    ATELI . will try that, thanks

    WOLF . it is not but I bought theme client wanted , if I wrote the code it would be more semantic and way less cluttered

    #167114
    Krsiak Daniel
    Participant

    @Atelierbram
    this is one of those “wow, what the, seriously … new stuff” moments :)
    thanks man, you fixed it for any width with1 line, great !

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