Forums

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

Home Forums CSS How do I fix this simple problem?

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #144944
    Magikarp
    Participant

    http://jsfiddle.net/NQbKh/

    How do I get rid of the line breaks after the h1/h2 elements?

    #144945
    Paulie_D
    Member

    I’m not sure what you are trying to do in that there are no actual break tags in there.

    However, if you mean that you want the paragraph to immediately follow the h2 then just set it to inline-block as well.

    Frankly, I think this is an odd way to go as I think there are better methods of achieving the same effect.

    #144946
    Magikarp
    Participant

    if you think there are better methods, then please tell me.

    Using this as a tooltip of sorts for a content slider, but the description would fall off the slider.

    Edit: inline-block doesn’t fix it, because I want the description to still be under the title.

    #144947
    Paulie_D
    Member

    OK this isn’t exactly what I though it was.

    I thought you wanted to lose the ‘line break’ but you state that “I want the description to still be under the title.”.

    Do you have a link to the current version of the slider because I’m having a little trouble working out what exactly it is you are trying to do?

    Or perhaps another site where you have seen this working?

    #144951
    Magikarp
    Participant

    I apologize, I fixed it.

    I realized I was using line-height this whole time… facepalm

    #144953
    Paulie_D
    Member

    facepalm

    Been there…done that. :)

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